[Palantir Defense Ontology] A named geographic location such as a base, depot, or area of operations.
[Palantir Defense Ontology] Point geometry of the named location.
[Palantir Defense Ontology] Area geometry of the named location.
[Palantir Defense Ontology] Links this named location to locations it is geographically within, including immediate and broader enclosing locations. For example, Desiderio Army Airfield (Airfield) is geographically within Camp Humphreys (Base), South Korea (Country), and the U.S. Indo-Pacific Command area of responsibility (COCOM).
[Palantir Defense Ontology] Links this named location to all named locations it geographically contains, at every level of containment. For example, the area of responsibility (AOR) of U.S. Indo-Pacific Command, a Combatant Command, geographically contains all countries (such as South Korea and Japan), bases (such as Camp Humphreys), airfields (such as Desiderio Army Airfield), ports (such as the Port of Yokohama), and more in that AOR.
[Palantir Defense Ontology] Links a named location to the organizations permanently assigned there.
[Palantir Defense Ontology] Links a named location to the deployed location assignment events that reference it.
[Palantir Defense Ontology] Links a named location to its assigned materiel (items).
[Palantir Defense Ontology] A named location can link to many materiel change events.
[Palantir Defense Ontology] A named location can link to many materiel status events.
[Palantir Defense Ontology] A named location can link to many materiel (item) status events.
[Palantir Defense Ontology] A named location can link to many materiel requirements.
[Palantir Defense Ontology] Links a materiel (item) to its assigned named location.
[Palantir Defense Ontology] Links an organization to the named location that is its permanent assigned location.
[Palantir Defense Ontology] Links a deployed location assignment to the named location where the organization is deployed.
[Palantir Defense Ontology] Links a materiel (item) status event to its named location.
[Palantir Defense Ontology] Links a materiel requirement to its named location.
[Palantir Defense Ontology] Links this named location to locations it is geographically within, including immediate and broader enclosing locations. For example, Desiderio Army Airfield (Airfield) is geographically within Camp Humphreys (Base), South Korea (Country), and the U.S. Indo-Pacific Command area of responsibility (COCOM).
[Palantir Defense Ontology] Links this named location to all named locations it geographically contains, at every level of containment. For example, the area of responsibility (AOR) of U.S. Indo-Pacific Command, a Combatant Command, geographically contains all countries (such as South Korea and Japan), bases (such as Camp Humphreys), airfields (such as Desiderio Army Airfield), ports (such as the Port of Yokohama), and more in that AOR.
[Palantir Defense Ontology] Links a materiel change event to its named location.
[Palantir Defense Ontology] Links a materiel status event to its named location.
1
2
3
4
5
6
7
8
import { com.palantir.ontology.defense-types.namedLocation } from "@defense-ontology/sdk";
// Edit this import if your client location differs
import { client } from "./client";
const interfaceTypeMetadata = await client.fetchMetadata(com.palantir.ontology.defense-types.namedLocation);
const implementingObjectTypes = interfaceTypeMetadata.implementedBy;
const interfaceRid = interfaceTypeMetadata.rid;1
2
3
4
5
6
7
8
9
10
11
import { com.palantir.ontology.defense-types.namedLocation } from "@defense-ontology/sdk";
// Edit this import if your client location differs
import { client } from "./client";
import type { Osdk } from "@osdk/client";
const interfaces: Osdk<com.palantir.ontology.defense-types.namedLocation>[] = [];
for await(const int of client(com.palantir.ontology.defense-types.namedLocation).asyncIter()) {
interfaces.push(int);
}
const interface1 = interfaces[0];1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { com.palantir.ontology.defense-types.namedLocation } from "@defense-ontology/sdk";
// Edit this import if your client location differs
import { client } from "./client";
import { isOk, type Osdk, type PageResult, type Result } from "@osdk/client";
const page: Result<PageResult<Osdk<com.palantir.ontology.defense-types.namedLocation>>> = await client(com.palantir.ontology.defense-types.namedLocation)
.where({
$and:[
{ $not: { someProperty: { $isNull: true }}},
{ someProperty: { $eq: "foo" }}
]
})
.fetchPageWithErrors({
$pageSize: 30
});
if (isOk(page)) {
const interfaces = page.value.data;
const interface1 = interfaces[0];
}1
2
3
4
5
6
7
8
9
10
11
import { com.palantir.ontology.defense-types.namedLocation } from "@defense-ontology/sdk";
// Edit this import if your client location differs
import { client } from "./client";
import { type Osdk, type PageResult, type Result } from "@osdk/client";
const response: Result<PageResult<Osdk<com.palantir.ontology.defense-types.namedLocation>>>
= await client(com.palantir.ontology.defense-types.namedLocation).fetchPageWithErrors({ $pageSize: 30 });
// To fetch a page without a result wrapper, use fetchPage instead
const responseNoErrorWrapper: PageResult<Osdk<com.palantir.ontology.defense-types.namedLocation>>
= await client(com.palantir.ontology.defense-types.namedLocation).fetchPage({ $pageSize: 30 });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
32
33
34
35
36
import { com.palantir.ontology.defense-types.namedLocation } from "@defense-ontology/sdk";
// Edit this import if your client location differs
import { client } from "./client";
// A map of primary keys to objects loaded through the SDK
const objects: { [key: string]: com.palantir.ontology.defense-types.namedLocation.OsdkInstance } = ...
const subscription = client(com.palantir.ontology.defense-types.namedLocation).subscribe( {
onChange(update) {
if (update.state === "ADDED_OR_UPDATED") {
// An object has received an update or an object was added to the object set
const currentObject = objects[update.object.$primaryKey];
if (currentObject !== undefined) {
currentObject["<propertyName>"] = update.object["<propertyName>"] ?? currentObject["<propertyName>"];
}
}
else if (update.state === "REMOVED") {
// The object was removed from the object set, which could mean it was deleted or no longer meets the filter criteria
delete objects[update.object.$primaryKey];
}
},
onSuccessfulSubscription() {
// The subscription was successful and you can expect to receive updates
},
onError(err) {
// There was an error with the subscription and you will not receive any more updates
console.error(err);
},
onOutOfDate() {
// We could not keep track of all changes. Please reload the objects in your set.
},
},
{ properties: [ "location", "geometry", ]}
);
subscription.unsubscribe();1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { com.palantir.ontology.defense-types.namedLocation } from "@defense-ontology/sdk";
// Edit this import if your client location differs
import { client } from "./client";
import { isOk, type Osdk, type PageResult, type Result } from "@osdk/client";
const page: Result<PageResult<Osdk<com.palantir.ontology.defense-types.namedLocation>>> = await client(com.palantir.ontology.defense-types.namedLocation)
.fetchPageWithErrors({
$orderBy: {"someProperty": "asc"},
$pageSize: 30
});
if (isOk(page)) {
const interfaces = page.value.data;
const interface1 = interfaces[0];
}