/
Deployment.ts
62 lines (55 loc) · 1.39 KB
/
Deployment.ts
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import { SerializableMember, SerializableObject } from '@openhps/core';
import { rdfs, ssn, ogc, vcard } from '../vocab';
import { PolygonGeometry } from './Geometry';
import { Platform } from './Platform';
import { Address } from './Address';
import { SerializableNamedNode } from './SerializableNamedNode';
import { applyMixins } from './utils';
import { SymbolicSpace } from '@openhps/geospatial';
@SerializableObject({
rdf: {
type: [ssn.Deployment, ogc.SpatialObject],
},
})
export class Deployment extends SerializableNamedNode {
@SerializableMember({
rdf: {
predicate: rdfs.label,
language: 'en',
},
})
label?: string;
@SerializableMember({
rdf: {
predicate: rdfs.comment,
language: 'en',
},
})
comment?: string;
@SerializableMember({
rdf: {
predicate: ssn.deployedOnPlatform,
language: 'en',
},
})
platform?: Platform;
@SerializableMember({
rdf: {
predicate: ogc.hasGeometry,
},
})
geometry?: PolygonGeometry;
@SerializableMember({
rdf: {
predicate: vcard.hasAddress,
},
})
address?: Address;
@SerializableMember({
rdf: {
predicate: ogc.sfWithin,
},
})
within?: Deployment;
}
applyMixins(Deployment, [SymbolicSpace]);