Skip to content

Commit

Permalink
Implemented Georeference
Browse files Browse the repository at this point in the history
  • Loading branch information
hammar committed Sep 5, 2022
1 parent aa9a8e7 commit d51548f
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 0 deletions.
64 changes: 64 additions & 0 deletions Ontology/DTDLv2/RealEstateCore/Information/Georeference.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{
"@id": "dtmi:org:w3id:rec:Georeference;1",
"@type": "Interface",
"contents": [
{
"@type": "Property",
"description": {
"en": "Altitude"
},
"displayName": {
"en": "alt"
},
"name": "alt",
"schema": "float",
"writable": true
},
{
"@type": "Property",
"description": {
"en": "The angle between local coordinate system and a north-south meridian."
},
"displayName": {
"en": "bearing"
},
"name": "bearing",
"schema": "float",
"writable": true
},
{
"@type": "Property",
"description": {
"en": "Latitude"
},
"displayName": {
"en": "lat"
},
"name": "lat",
"schema": "float",
"writable": true
},
{
"@type": "Property",
"description": {
"en": "Longitude"
},
"displayName": {
"en": "long"
},
"name": "long",
"schema": "float",
"writable": true
}
],
"description": {
"en": "Encapsulates a georeference globally placing a spatially located entity in terms of latitude, longitude, altitude, and bearing."
},
"displayName": {
"en": "Georeference"
},
"extends": "dtmi:org:w3id:rec:Information;1",
"@context": [
"dtmi:dtdl:context;2"
]
}
11 changes: 11 additions & 0 deletions Ontology/DTDLv2/RealEstateCore/Space/Space.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@
"@id": "dtmi:org:w3id:rec:Space;1",
"@type": "Interface",
"contents": [
{
"@type": "Component",
"description": {
"en": "A fixed point for, e.g., a building structure. Commonly refered to as \"insertion point\" in CAD-programs. Used as origo for locally defined geometries."
},
"displayName": {
"en": "georeference"
},
"name": "georeference",
"schema": "dtmi:org:w3id:rec:Georeference;1"
},
{
"@type": "Property",
"displayName": {
Expand Down
51 changes: 51 additions & 0 deletions Ontology/SHACL/RealEstateCore/rec.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -1004,6 +1004,48 @@ rec:Garage
rdfs:label "Garage" ;
rdfs:subClassOf rec:Room ;
.
rec:Georeference
a <dtmi:dtdl:class:Component> ;
a rdfs:Class ;
a sh:NodeShape ;
rdfs:comment "Encapsulates a georeference globally placing a spatially located entity in terms of latitude, longitude, altitude, and bearing." ;
rdfs:label "Georeference" ;
rdfs:subClassOf rec:Information ;
sh:property [
a sh:PropertyShape ;
sh:path rec:alt ;
sh:datatype xsd:float ;
sh:description "Altitude" ;
sh:maxCount 1 ;
sh:name "alt" ;
] ;
sh:property [
a sh:PropertyShape ;
sh:path rec:bearing ;
sh:datatype xsd:float ;
sh:description "The angle between local coordinate system and a north-south meridian." ;
sh:maxCount 1 ;
sh:name "bearing" ;
] ;
sh:property [
a sh:PropertyShape ;
sh:path rec:lat ;
sh:datatype xsd:float ;
sh:description "Latitude" ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:name "lat" ;
] ;
sh:property [
a sh:PropertyShape ;
sh:path rec:long ;
sh:datatype xsd:float ;
sh:description "Longitude" ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:name "long" ;
] ;
.
rec:GroupRoom
a rdfs:Class ;
a sh:NodeShape ;
Expand Down Expand Up @@ -1797,6 +1839,15 @@ rec:Space
sh:maxCount 1 ;
sh:name "geometry" ;
] ;
sh:property [
a sh:PropertyShape ;
sh:path rec:georeference ;
sh:class rec:Georeference ;
sh:description "A fixed point for, e.g., a building structure. Commonly refered to as \"insertion point\" in CAD-programs. Used as origo for locally defined geometries." ;
sh:maxCount 1 ;
sh:name "georeference" ;
sh:nodeKind sh:IRI ;
] ;
sh:property [
a sh:PropertyShape ;
sh:path rec:hasPart ;
Expand Down

0 comments on commit d51548f

Please sign in to comment.