Similar to how you can add data from the Ontology to a Gaia map, you can also create Ontology objects from a shape you draw on a map by tagging the object within a type-mapped object type which implements the Gaia Geocreatable interface.
To create Ontology objects from a Gaia map, your enrollment must use both Foundry and Gotham.
The sections below outline the end-to-end process to integrate Gaia shapes with the Ontology:
Marketplace is Foundry's storefront for published data products or collections of platform resources made available for user installation. You can access Marketplace through the Search... bar or the Applications portal on your home screen.
Once you launch Marketplace, install the following products:
To install the Core Property Types product from the Core Ontology Store:
Core Ontology Store
using the Search stores... bar on the right side of your screen.Core Property Types
product from the store menu.If you cannot locate the Core Property Types
product within the Core Ontology Store
, then you can install it by launching Foundry DevOps under the Publish to Marketplace section at the bottom of the Marketplace home screen.
Core Property Types
product, which may vary based on the product's version, before you select Next.You can search for your newly installed and suffixed Core Property Types
product using Quicksearch.
You will next install the Gaia Geocreatable interface from the Gaia App Store in Marketplace.
In Foundry, interfaces exist within your Ontology to describe an object type's shape as well as its capabilities, enabling consistent modeling and interaction between object types of a common shape. You can implement an interface on multiple object types, and interfaces may extend any number of other interfaces. Once implemented on an object type, the Gaia Geocreatable interface enables you to create objects in your Ontology from shapes drawn on a Gaia map.
To install the Gaia Geocreatable interface from Marketplace:
Gaia App Store
in Search stores....Gaia Geocreatable
product.Classification
, Geoshape
, and Map ID
.Classification
, Geoshape
, and Map ID
before you select Next to launch the installation window's Content page.Gaia can discover object types backed by a restricted view in your Ontology after they implement the Gaia Geocreatable interface. In the following sections, you will:
To create an object type that can integrate with Gaia, you will first need to create a restricted view from a dataset that contains, at a minimum, the following columns:
Name
, which you will set as a string
to enable a user to title their shape as an object.Classification
, which you will set as an array
to capture your object's classification.Geoshape
, which you will set as a string
for Gaia to automatically populate with your drawn object's shape.Map ID
, which you will set as a string
for Gaia to automatically populate with your drawn object's map ID.Object ID
, which you will set as a string
for Foundry to automatically populate with a unique ID for each Gaia shape you create as an object.Select the New button in your Project to upload an existing file, such as a .csv
, or use Fusion to create the dataset which backs your restricted view.
You can reference additional restricted view creation instructions in Foundry's security and object permissions documentation.
Your restricted view should contain a granular policy that restricts user access to the data contained in the view based on their classification access. Compose the granular policy as the second step in the Create restricted view window.
You can reference an example policy in JSON below.
Copied!1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
{ "condition": { "type": "and", "and": { "conditions": [ { "type": "markings", "markings": { "value": { "type": "field", "field": { "fieldName": "classification", "nestedField": null } }, "filters": [ { "type": "markingTypes", "markingTypes": { "markingTypes": [ "CBAC" ] } } ] } } ] } } }
Once you configure your restricted view, launch Ontology Manager and follow the steps below to create your object type and type-map it to enable integration with Gotham:
Object ID
as the Primary Key and Name
as the Title.Classification
's Property is an array of strings and Geoshape
's Property is geoshape.With your draft object type viewable in Ontology Manager, you will next select the Classification
, Geoshape
, and Map ID
properties as shared property types in your Ontology. Select the Properties panel beneath Overview and follow the steps below to complete the shared property type selection process:
Classification
from your list of properties to launch the Property editor window on the right side of your screen.Marking
and CBAC Marking
, respectively.Contact your Palantir Support if you are unable to select Marking as the base type for Classification
, as Markings are not generally available across all Foundry enrollments.
Classification
as a shared property in the Select a shared property dropdown menu.Repeat steps one and four above for your Geoshape
and Map ID
properties, as you will not need to configure their Markings or classification. Select the green Save button at the top of the screen to publish incremental changes to your Ontology before proceeding.
Next, you will render objects within your object type as discoverable from Gotham applications by completing the type mapping process. Select the Capabilities panel beneath Datasources and follow the steps below to type-map your object type's properties:
By default, Ontology Manager does not type-map a property. Creating a property clone will configure an application-compatible duplicate of the selected property in Gotham.
Ontology Manager automatically type-maps Geoshape
and populates your other shared property types, such as Classification
and Map ID
, in the Property types dropdown menu to the right of each property type.
Additionally, Ontology Manager provides an optional interface to configure intrinsic values on Gotham objects derived from properties you type-map from your Ontology. Gotham's object model enables you to set property types in your Ontology that contain geotemporal data as metadata of an object in Gotham. As an example, if you create a Vessel
object type in your Ontology whose object instances contain a geohash
property type that records the object's location, then you can set the geohash
property type as an object-level intrinsic in Gotham.
Intrinsic values must be timestamp
, geohash
, or string
types.
Once the properties of your object type are configured to enable Gotham integration, you can navigate back to the Overview window in Ontology Manager. Here, you will modify your Create {object type name} Action type to enable users to create objects from shapes and configure their properties, such as Name
and Category
, from Gaia. Follow the steps below to configure your Action type:
Geoshape
property as a string type by selecting the arrow icon next to Configure parameter.
String
from the Type dropdown menu on the right side of the screen.Geoshape
.Classification
property's Configure parameter arrow icon to verify its Type is Marking
.Map Id
from the Form content panel on the left side of your screen and toggle on Disabled in the General panel to ensure a user cannot manually configure a Map Id
.Object Id
from Form content by selecting the X
icon on the far right side of the Object Id
panel. Foundry will automatically generate a unique ID for each object created from Gaia.The final step in creating and configuring your object type in Ontology Manager is to implement the Gaia Geocreatable interface that you previously installed from Marketplace. Navigate back to your object type's Overview page and follow the steps below to implement the interface before saving changes to your Ontology:
Gaia Geocreatable
before choosing Next.Classification
and Geoshape
properties. Map ID
will map automatically.Now, you have an object type that implements the Gaia Geocreatable interface and contains an Action type to enable a user to configure objects they create from shapes drawn on a Gaia map. Next, you will register the object and Action type in Gaia's admin application.
To register an object type for Gaia discovery, you will need access to Gaia's admin application. Contact Palantir Support to request access to Gaia's admin application.
To register your object and Action type, launch the Gaia admin application and follow the steps below:
You can access your object type's RID from the Overview window in Ontology Manager. Select the clipboard icon to copy the RID. Additionally, you can access your Action type's RID by selecting Create {object type name} in the Action types section of the Overview window. The Action type's RID can also be copied through the clipboard icon.
Next, you will launch Gotham's Gaia application to create objects from shapes you draw on a map using its Create annotation layer menu.
With your Gaia map open, select a shape to draw from the Create annotation layer menu in the top left region of your map. When you finish drawing your shape, the Create shape window will appear in Gaia's left panel. Follow the steps below to configure your shape and save it to your Ontology as an object:
Category
and Name
for your object type before you select Finish.Once you save your shape as an object, it will render as a Map layer in Gaia's left panel. You can select the object's name to launch the Selection panel on the right side of your screen, where you can view its properties and customize its appearance.
You can also view your object in Foundry's Object Explorer.
To learn more about the various methods you can use to add data from your Ontology to Gotham, review the existing geospatial data integration documentation.