transcribe

Deep Dive: Advanced Ontology | DevCon 5

Palantir Developers · 24m · transcribed Oct 2026
More from Palantir Developers Business
𝕏 Share ▶ YouTube 📥 PDF 🤖 .md

Section Insights

# 0:00

Introduction to Advanced Ontology Features

What are the advanced features of the ontology and their purpose?

The session introduces advanced ontology features at Palantir, focusing on mastering underlying primitives. It outlines the journey of the ontology from data integration to operational decision-making and the integration of AI.

  • The ontology has evolved from basic data integration to incorporating AI.
  • Understanding the intention behind new features is crucial for effective use.
  • The session aims to demonstrate how problems are transformed into products.
# 4:55

Core Ontology Design Principles

What are the key design principles for ontology development?

The ontology design principles include being open for extension but closed for modification, and utilizing producer extends consumer concepts. These principles ensure core workflows remain intact while allowing for flexibility and extension.

  • Core workflows should be protected from accidental modifications.
  • Flexibility in extending workflows is essential for collaborative development.
  • The ontology serves as a software backbone for organizational processes.
# 9:51

Importance of Interfaces and Composition

How do interfaces and composition enhance ontology functionality?

Interfaces prevent duplication of workflows and allow for multi-inheritance, favoring composition over inheritance. This approach enables more flexible and scalable ontology designs.

  • Interfaces help avoid redundancy in workflow design.
  • Composition allows for more adaptable ontology structures.
  • Multi-inheritance supports complex relationships without rigid hierarchies.
# 14:47

Metadata and New Features in Ontology

How does metadata fit into ontology design principles?

While metadata may seem non-semantic, it is crucial for capturing relevant information. New features like reducers and struct main fields are introduced to manage metadata effectively while adhering to semantic principles.

  • Metadata is essential for contextualizing data within the ontology.
  • Reducers help prioritize relevant data in user interfaces.
  • Struct main fields enhance the organization of historical data.
# 19:43

Security Levels in Ontology Properties

How can security levels be applied to ontology properties?

Ontology properties can have multiple values with varying security levels, allowing for granular control over data access. Techniques like row-wise and cell-level security enable tailored access to sensitive information.

  • Different security levels can be applied to individual data elements.
  • Row-wise and cell-level security enhance data protection.
  • Derived properties allow for even more detailed security configurations.

Transcript

0:05 Hi everyone. Thanks for coming. I'm Landon. I'm a group lead there and I work on the ontology here at Palantir. Hopefully you've heard of it. today we're going to be talking about some advanced ontology features, but really we're going to be talking about mastering the underlying primitives. We've been adding a lot of new features to the ontology lately. Some you may be aware of and have seen at DevCon launches. Some you might not have seen yet. you also might not understand the intention behind these features or quite how they all fit together. This session is going to walk through the features, why we've built them, and how we are putting them together. this is going to be a deep look at some of our problem-solving, showing how we are turning problems into products.

0:46 Sweet. Let's talk a little bit about the journey of the ontology. We started with golden tables. This is about getting your data integrations right, pulling all of your data from the disparate sources, collecting it in one place, making it easy to use, and eventually getting it into the ontology. Next, we step to operational decision-making. This is about capturing the kinetics of your organization through things like actions, logic, functions, et cetera, and integrating all of the models as well.

1:16 It's about taking data into the system, doing compute inside the system, making those operational decisions, and then getting it out of the system into the real world where it can have real effects. And finally, we moved to AI first. Now we're starting to integrate LLMs into the system. We're starting to layer on automation that is going to be mechanizing all of those kinetics that you've already captured in your actions, functions, et cetera. Now, before we dive into the features, I also want to take a look back in history towards Gotham, which was Palantir's original product. Gotham is used to power all of our Intel and defense applications. Still is.

1:58 and we have a long history of developing the Gotham product. In the past, a lot of the intelligence workflows made very, very heavy use of unstructured data. Right? You can think about reports coming in, PDFs, documents, etc. and analysts sitting, toiling for hours trying to extract that data out of them. And Gotham was built to help them ontologize that data, help them capture that value. So, my point here is that we've been at this for a long time and we're very good at helping you capture that nuggets of information out of your unstructured data. And with the advent of AI-first workflows, LLMs themselves are very good at capturing this unstructured data.

2:41 Overall, the ontology that we've built out through Gotham and now through Foundry and then AIP has been battle-tested and has a huge amount of depth of features, as you've seen throughout this presentation and in prior DevCons. We don't really think that any AI lab is going to magic an ontology into existence that's as deep, well-built, or battle-tested as this one. Okay. As we go into the features, I'm going to be hitting on these four ontology design principles and this is really the crux of what I want you to take away from this presentation.

3:13 These ontology design principles are lessons that we've learned from the field over many years of tradecraft. These are the things that our forward-deployed engineers are using and thinking about when they're helping you to design to design your ontologies. we've broken this down into four principles for this presentation. First and most importantly, we have domain-driven design. This is about capturing the semantic intent of your data. It's about the fact that most of your real-world objects should be represented one-to-one in the virtual twin that is your ontology. Right? This is not a virtual twin of your data sets into the ontology. This is a virtual twin of what really exists out in the world.

3:53 By structuring your data and your ontology to capture all of this semantic information with objects that make sense, links that make sense, you're going to find it much more intuitive to use and also your agents are going to find it much more intuitive to use. Next we have don't repeat yourself using the rule of three which is to say if you've built the same thing three times, you should probably try to refactor and capture that common workflow or that common data.

4:24 again, this is going to help both you to navigate your ontology and your agents to navigate your ontology. So this is going to help a lot with context management rather than having to sift through 12 object types that all look more or less identical but maybe are used for slightly different niches of data or like by slightly different teams at your organization. If you capture all of that into one object type or into interfaces as we'll see later, you can avoid repetition and it'll be much easier for you to manage and figure out like what is the canonical representation of this What is the canonical workflow? And again, this will help your agents with context management.

5:02 These next two are going to borrow some language from Java. I'm a Java bit developer so bear with me for a second here. We have open for extension and closed for modification typically shortened to open closed. What this means is that you are capturing the nuggets of your workflow in a way that you you've kind of like locked away this like most critical core pieces, right? That's closed for modification. No one's going to like accidentally break your core workflows.

5:32 At the same time, you want that to be open for extension so that other developers in your enterprise can build off of your core data model. So they're going to extend it with new workflows, with new types of data that fit into common interfaces as we'll cover to that Next we have producer extends consumer super, packs, also known as covariance and contravariance. Again, is a bit of a Java term, so bear with me, but basically what that means is that you can have a plug-and-play ontology, which is to say if you've designed things on interfaces, you can extend them and you can consume from things that you know, you you can use superclasses to consume them as well.

6:14 You'll also see a couple of books down here that I would recommend on the topic overall. And for all of the software developers, what you're probably realizing is that these four ontology design principles that I've just laid out are in fact software design principles. This is really one of the key insights you should take away. The ontology is effectively the software that's powering your organization. Because of this, we can borrow lessons from the long history of programming language research, software engineering research. I've read actually some really exciting papers about it, and those are the types of open-source projects and places that we see this, you know, not just in Palantir's ontology, but elsewhere in the world, and we can draw lessons from all of this open-source intelligence, everything else that people have been trying.

7:01 In summary, over the time and battle testing of all of our various deployments, all of our various enterprises across government, across commercial, across lots of different regions of the world, these are the four principles that I wanted to focus on today. they've been, as I said, proven themselves over time, they've been battle-tested, and they're the principles that we found the most success with when designing the most functional ontologies in the world. I wanted to start with interfaces, which we've talked about at a couple of previous DevCons.

7:31 The idea of interfaces is that you can have interface-powered workflows that then work off of any of the object types that implement those interfaces, either all together or one at a time. So in this example here, we've got some interface powered workflow that's going to be built on the building interface, and you can see that we've got restaurants, office buildings, and arenas as three different object types that implement the building interface. And so, either we can apply our workflow across all three of them all at once, or we can kind of have a a picker maybe when we go into this workflow about, "Oh, I'm going to be looking at restaurants today, and I don't need to build three copies of the same app for each of these three workflows or each of these three data environments.

8:15 You can also see that over on the right there, arena also extends schedulable resource. This is important. The Foundry ontology is multi-inheritance. So, you can use the arena in both workflows built around buildings or workflows built around schedulable resources. Say that you're trying to schedule a game, you might need to schedule you know, some events as well as a building, you can use the arena for both of those. not really shown here, but I also wanted to highlight that interfaces are multi-level. So, you can have interfaces that extend other interfaces for more complex workflows.

8:54 Okay, let's tie that back to our ontology design principles. First and most importantly, we have domain-driven designs. Interfaces are going to let you think abstractly without hyper-fixating on any specific data set quirks that you might have. One of the worst patterns that I see not to call out anyone that's done this before, but is to go through pipeline builder and just kind of click next next next, ontologize, and click map all of my properties. That's going to result in you effectively just copying whatever your upstream data set is, which is fine as a starting point, great as a starting point, but it doesn't allow you the time to actually like step back from the problem and think through your workflows from first principles.

9:38 Overall, the goal is that with a well-designed ontology, using it should feel very intuitive. You should be able to enter a flow state when you're trying to work with it, as well as your agents. You should have API names that make sense. You should have links that make sense. The more that your ontology represents what you're actually dealing with in the real world, the more flexible and scalable you'll find it to be. Next, interfaces help you to not repeat yourself, right? I've talked about how this buildings interface lets us build a buildings workshop, and then that can be used for our three different object types, right? So, interfaces make it much easier to avoid workflow duplication.

10:18 Next, open for extension and closed for modification. So, you can imagine that this building interface is something that's like core to our enterprise. It's been battle-tested. It's been refined over time. We figured out like, what are the critical properties here? What are the critical links that it might have? We want to lock those down, so we're going to you know, close that interface for modification so that no one accidentally messes it up, while still leaving it open for extension. So, new other builders in your organization can extend it with new workflows, new object types, etc.

10:53 Because the ontology is multi-inheritance, you also can favor composition over inheritance. Again, this is a really common software debate, composition versus inheritance. and for our example of the sports arena, you can see that it extended both building and schedulable independently, effectively composing those two topics, rather than trying to inherit this weird schedulable building object or interface that you might have otherwise.

11:25 Finally, we have producer extends consumer super, again called covariance and contravariance. You go look that up on Wikipedia, you'll find that this is a pretty common programming language term. effectively what this means is that you have flexibility when you use interfaces. So, if you've built an OS GK app or a workshop for example that works off of object sets of things that extend event, so like {question mark} extends event, then you can safely pass in an object set of NBA games or an object set of DevCon keynotes.

11:55 on the other side of that, for super, this is a bit of a Java terminology, but if you're trying to call a function on DevCon keynote, which is to say like consume a DevCon keynote object, you can safely call reschedule DevCon keynote or you can call a function whose signature is reschedule {question mark} super event, right? So, you can call it because DevCon keynote has a superclass of event. Again, Java terminology, if that doesn't make sense, that's fine.

12:24 Basically, what this means is that interfaces gives you flexibility with your workflows and flexibility with your functions. Next, I want to talk about structs. this is a pretty old UI. and I basically just wanted to hammer home again that like we've been at this for a long time. This is our original Gotham Palantir dynamic ontology manager, Pedom. and this is the address struct property that we have there. and this is how the address struct shows up in in the Gotham front end.

12:52 So, you can see that the address is made up of multiple fields even though it's a single property. So, we have Nørrebrogade 42, which is the street address, with Copenhagen, which is the city. So, these are two different fields on our struct. We're also capturing metadata. So, you can see that under the sources, you can see that this is manually entered data as opposed to coming from one of our upstream data sources. You can see who created it, when it was created, when it was last modified, etc. and all of this is metadata that we've captured directly alongside the property value as effectively additional struct fields.

13:26 How does this show up in Foundry? you see something very similar now, right? You can define a struct property. In this case, we have our same address on our office building example. You can see that the address has a street address, city, state, and postal code. And then this also shows up in actions where you get this fancy little drop-down that kind of indicates you that these are grouped together. We've also found that structs are very useful in the advent of LLMs, right? As Colton was showing in his demo earlier, AIP Logic does does kind of behind the scenes capture some of the reasoning for you.

14:00 but sometimes it's really useful to ontologize that for further processing. So, this is a real-world example of a Slack helper bot basically that we've set up on one of our help ontology channels where people ask questions. And you can see that out of this AIP Logic, we're capturing both the response that we want to pass along to the user. We're capturing some metadata, like the most relevant Slack message, if this question has been asked before, the most relevant doc URL. this is linked to our public docs page. as well as the reasoning that the LLM had behind its answer. And we can use that for downstream processing.

14:36 So, if I actually go run this example, I ask, "How do I make a new object type?" It gives me a response, and I'm capturing both, again, the response, most relevant Slack message. It didn't need one because this is a very straightforward question. We're capturing the most relevant doc URL, which is probably our page about object types. And we're also capturing the reasoning if we wanted to look at that later as well. Now, you might be asking, "This metadata, it kind of goes against some of our ontology design principles where we really want to focus on semantically relevant information. That metadata is relevant, but it's not semantic, right?"

15:13 To bridge this gap, we're going to also introduce two new features, reducers and struct main fields. One of the most powerful features of Gotham is that every property can have multiple values. Could be coming from different data sources, could have different securities, could just be something that's been updated over time. So, for example, if you look at a person object and they have an address, everyone moves around, every person is going to have multiple addresses over time. So, you're going to be capturing that history of the address property by just basically capturing it as a list.

15:45 And the metadata about when they lived at each address is going to be metadata fields on the address struct. So, what we're doing with reducers is we're pulling from that list of different addresses. In this case, we've set it as like we're going to pull the most recent the struct which has a most recent last modified on metadata property and basically bubble that one to the top. And what that means is that in many of our UIs, you'll see just that one address, right? That's the one that you want to focus on. And if you hover on it or in some UIs, there's like a expand or like a show more type of button, you'll see the rest of the addresses. You can search across all of them, but when you don't need to think about the full history, you just get to look at the single one.

16:32 A similar concept applies for struct main fields. In this case, we've got a geolocation and the main field is just going to be that single geo point property. But, we also want to capture metadata like when it was created, who created it, and so on. And so, what we've defined here is that we've defined the value which is the geo point property as the only struct main field. So, we can actually use this property, even though it's a struct, we can use it as if it was just a geo point, right? We can use it in all of our geo point workflows, it will show up as just a geo point in the UI. And again, on hover or if you need to, you can look through the additional metadata fields to to see that additional information.

17:12 Bringing this back again to our ontology design principles, how do you structs, reducers, and struct main fields fit into those? First, we have domain-driven design. Objects should represent semantically meaningful concepts, and this is perfect to do with structs. You don't have to separate each of the fields of the struct into different properties, right? This is a more semantic way to capture that data. And again, don't repeat yourself. Structs can also help capture the most important metadata in the most proximate location, which is associated with the rest of those properties. Otherwise, you might have to go pile those metadata fields onto a sidecar or onto some other hidden properties.

17:50 Okay. next, I want to talk about derived properties. This is a very powerful feature. in this example here, we've got basically an org chart. so, we've got my object up there, Landon Carter, group lead, right? Team ontology. but, we want to add some additional fields, right? Peeps is basically our internal term for like people that report to me. so, let's say in this example, I have three peeps, and their peep names are one, two, and three, right?

18:16 I could capture that data by adding additional properties to the worker object to just write them there. That would be called denormalizing the data. I'm copying it around so that it's very useful to use in place. However, that can make the data very brittle, right? If one of my peeps decides to update their name, if I get a new peep, that data is already represented in the rest of the ontology through the links and the linked objects.

18:40 With derived properties, I can leave my data in a normalized format, which is to say, I leave all of the data where it normally would live, and I can define the semantic business logic around how I would infer those property values. So, in this case, I've got my peep names is I'm going to search around to my peep objects, and then I'm going to collect a list of the worker name property. So, that's the names of all of my peeps. For the peep count, I'm just going to count the number of linked worker objects where I have a lead peep relationship with them, right? So, we're defining the business logic in our ontology to capture that in a very useful and productive way.

19:16 Again, hammering home our ontology design principles, this is capturing domain-driven design, right? Derived properties make it much easier to avoid data duplication and represent your objects in a semantic way without having to deal with the brittleness of denormalizing your data. Okay, this last section I'm going to kind of fly through. This is a lot of very complicated ways to combine all of the features that we've talked about so far as well as a few additional ones.

19:43 And what I really want you to take home from this is the depth that you can reach with the ontology when you layer all of these features together. You don't really need to understand these examples. I'm just trying to show you the depth that you can achieve. So, one of the more powerful features of Gotham, as I said, is that properties can have multiple values at different security levels. Let's talk about where you might want that in Foundry.

20:05 We're going to have now skipping to a different example, patients, and data about them, right? So, we've got a few patients here and at our level zero of security, we've just got data set back security, right? All of these have the same security applied to them. With row-wise security, which you can achieve through restricted views or with object security policies that Kevin and Laura were launching earlier, you can now say this row is secret, right? Alex Karp is a VIP, not everyone at the hospital needs to know that he's there.

20:38 But, you see some additional information that might need to be restricted. You can step this up into cell-level security by combining row-wise security and column-wise security, which again is what Kevin and Laura were talking about earlier. With OSPs, this is very easy. You could also achieve this in the past with restricted views plus multi-dataset objects, MDOs. And now you can see that the patient notes section has different security for different objects, and you can see that that has a different security from other columns in our dataset.

21:08 You can set this up a level further though with derived properties to achieve sub cell security. So, in this case we've split the array of patient notes so that each element of the array has its own unique security level. And you can see that some of our more sensitive patient notes like this patient suspects the spouse is poisoning him can be locked away with a a more secret marking applied to it. And then you can go a level further.

21:31 Gotham has a really powerful tool called entity resolution where if you notice in your data that actually I have two objects, I realize this was a data integration error or or I've just learned some new things, I want to resolve them to be a single object. You can do that as well. So, in this case we've seen that we have a Diana Mercer and we have a Diane Mercer. We've realized actually this is actually just a single person. We should resolve them together. With derived properties, if you link it up in just the right ways, you can achieve this entity resolution concept so that when you open up either the Diana Mercer object or the Diane Mercer object, you see properties from both and they carry with them their individual original securities.

22:12 This is a very complex data model. You don't need to understand it, but this is how that works under the hood basically. We've got basically two layers of objects which is in this example like equipment and then equipment observations. You can see a bunch of links between them about what's been resolved to what and you can see a three-step chain on the derived properties for how to ensure that whether you're looking at equipment A or equipment B, you see the same data in either case. And if you were to resolve in a third equipment C, you would see that that immediately updates with all of the data from all three equipments.

22:44 Levels of security again, ontology design principles empower you to do domain-driven design. You're expressing your security in a semantically precise way, right? Especially with object security policies as you saw from Kevin Laura's demo earlier, you could see that directly in the ontology you have security policies with names that make sense and which protect specific properties or specific rows of your data. Finally, I'd like to introduce object-backed link types. It's another one of our more complex features. In this returning to our like org chart example, we have employees and we have ventures, which is the team that they're working on. And we also have a venture staffing, which connects them. So, this venture staffing object captures some metadata about when the employee worked on a particular venture.

23:29 Now, this is a kind of special case because sometimes in some workflows, you don't really care about the venture staffing. You just want to see what are all of the teams that this person has ever worked on. For that, you want to take a link directly from the employee to the venture. And with object-backed link types, you can implement that link with the venture staffing object. On the other hand, in some workflows, you do want to step through the venture staffing object and filter based on those properties. For example, if you want to find the current venture, that's the process that you would use to do that.

23:59 How do object-backed links fit into our ontology design principles? Once again, domain-driven design, our most important principle. Objects should represent semantically meaningful concepts, and the links between them should represent semantically meaningful concepts. Sometimes the venture staffing is semantically meaningful. Sometimes it's just a helper object and it needs to be hidden. With object-backed link types, you can achieve both. All right. I'd like to conclude by hammering again our four ontology design principles, which is domain-driven design, don't repeat yourself, open closed, and producer extends consumer super.

24:33 I think with that, I will close it out and take any questions. Thank you.

Summary

Landon from Palantir discusses advanced ontology features and principles that enhance data integration and operational decision-making. He emphasizes the importance of mastering the foundational elements of ontology design, which have evolved from traditional data management to AI-driven workflows, leveraging lessons from software engineering to create intuitive and flexible systems.

- The ontology journey began with golden tables for data integration, progressed to operational decision-making, and now incorporates AI-first approaches.
- Four key ontology design principles are highlighted: domain-driven design, avoiding repetition, open for extension and closed for modification, and producer extends consumer super.
- Interfaces allow for flexible workflows and reduce duplication by enabling multiple object types to implement the same interface.
- Structs capture related fields as single properties, enhancing semantic clarity and usability.
- Derived properties maintain normalized data while allowing for useful, dynamic representations based on linked objects.
- Object-backed link types facilitate context-sensitive connections between objects, enhancing semantic meaning in workflows.
- The ontology is positioned as a powerful software tool for organizations, drawing on extensive battle-tested experience across various sectors.

Questions Answered

What are the advanced features of the ontology and their purpose?

The session introduces advanced ontology features at Palantir, focusing on mastering underlying primitives. It outlines the journey of the ontology from data integration to operational decision-making and the integration of AI.

What are the key design principles for ontology development?

The ontology design principles include being open for extension but closed for modification, and utilizing producer extends consumer concepts. These principles ensure core workflows remain intact while allowing for flexibility and extension.

How do interfaces and composition enhance ontology functionality?

Interfaces prevent duplication of workflows and allow for multi-inheritance, favoring composition over inheritance. This approach enables more flexible and scalable ontology designs.

How does metadata fit into ontology design principles?

While metadata may seem non-semantic, it is crucial for capturing relevant information. New features like reducers and struct main fields are introduced to manage metadata effectively while adhering to semantic principles.

How can security levels be applied to ontology properties?

Ontology properties can have multiple values with varying security levels, allowing for granular control over data access. Techniques like row-wise and cell-level security enable tailored access to sensitive information.

© transcribe · For agents Built with care and craft by Gokul Rajaram