GAIA-X4PLC-AAD / ontology-management-base

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
5 stars 3 forks source link

Define which information has to be provided per class, node or simple data types #83

Open robertschubert opened 2 months ago

robertschubert commented 2 months ago

Current situation

Our SHACL shapes define the attributes of the shapes they represent.

Most of our attributes with simple data types (here: unsignedInt in hdmap.QualityShape) are defined like this:

        [ skos:example "100" ;
            sh:datatype xsd:unsignedInt ;
            sh:description "Sum of all objects outlines in the map,  see ODR spec section 11.2"@en ;
            sh:maxCount 1 ;
            sh:message "Validation of numberOutlines failed!"@en ;
            sh:name "numberOutlines"@en ;
            sh:order 6 ;
            sh:path hdmap:numberOutlines ],

In Range2DShape we have for a float:

    sh:property [ sh:datatype xsd:float ;
            sh:message "Validation of max failed!"@en ;
            sh:name "max"@en ;
            sh:order 0 ;
            sh:path general:max ],

This is quite heterogen since attributes are defined differently.

Target situation There should be a definition in the Readme file as well as in the examples folder (example as well as template) which attributes have to be / should be used. With this we can achieve more homogeneity, comparability and it looks as if it comes from one single cast.

Proposal

note that example is removed here. The description field is also very important for embedded Shapes as well as for linked nodes.

note that example is removed here. The description field is also very important for embedded Shapes as well as for linked nodes.

robertschubert commented 2 months ago

Dear @lenasauermann and @pmai , as discussed on Friday here my proposal. Please feel free to comment / update it. Thanks! Best Robert