Our implementation for an open automated ontology management process for GAIA-X interoperable ecosystems. Please use a community agreed domain specific class or if not yet available please create a new class and submit it for review.
Other
2
stars
0
forks
source link
Add a Ontology-Class for every Shape into the ontology.ttl #57
Current situation:
We have Shapes in our *_shape.ttl which have a targetClass set but this is not defined in the ontology file.
Example:
hdmap_shacl.ttl has a DataSourceShape which points to a DataSource via targetClass:
hdmap:DataSourceShape a sh:NodeShape ;
sh:property [ skos:example "3DMS system, Trimble xyz, Riegl xyz" ;
sh:datatype xsd:string ;
sh:description "Main acquisition device"@en ;
sh:maxCount 1 ;
sh:message "Validation of measurementSystem failed!"@en ;
sh:name "measurementSystem"@en ;
sh:order 1 ;
sh:path hdmap:measurementSystem ],
[ skos:example "scanner, camera, osm network, aerial images, ..." ;
sh:datatype xsd:string ;
sh:description "Basic data for the creation of the map"@en ;
sh:message "Validation of usedDataSources failed!"@en ;
sh:name "usedDataSources"@en ;
sh:order 0 ;
sh:path hdmap:usedDataSources ] ;
sh:targetClass hdmap:DataSource .
But the class DataSource is not defined in the hdmap_ontology.ttl file. Only HdMap is defined as a class
Target situation
For every shape defined in a *_shape.ttl file there should be an OWL class in the *_ontology.ttl file. Note that this nested class does not have to derive from 'DataResource' since it is not a class used at top level as HdMap for example.
Example for given DataSourceShape (please find good labels and comments):
Add a DataSource OWL class to the ontology.
hdmap:DataSource a owl:Class ;
rdfs:label "class definition for a DataSource" ;
rdfs:comment "Attributes for DataSource of a HdMap"@en .
@all (CODEOWNERS): Please comment if you want to do in in one branch or one branch per directory.
Current situation: We have Shapes in our
*_shape.ttl
which have atargetClass
set but this is not defined in the ontology file.Example:
hdmap_shacl.ttl
has aDataSourceShape
which points to aDataSource
viatargetClass
:But the class DataSource is not defined in the
hdmap_ontology.ttl
file. OnlyHdMap
is defined as a classTarget situation For every shape defined in a
*_shape.ttl
file there should be an OWL class in the*_ontology.ttl
file. Note that this nested class does not have to derive from 'DataResource' since it is not a class used at top level asHdMap
for example.Example for given
DataSourceShape
(please find good labels and comments): Add aDataSource
OWL class to the ontology.@all (CODEOWNERS): Please comment if you want to do in in one branch or one branch per directory.