International-Data-Spaces-Association / InformationModel

The Information Model of the International Data Spaces implements the IDS reference architecture as an extensible, machine readable and technology independent data model.
Apache License 2.0
64 stars 37 forks source link

Metadata in Shapes #281

Open sebbader opened 4 years ago

sebbader commented 4 years ago

A lot of our Shapes have ontology metadata, for instance at: https://github.com/International-Data-Spaces-Association/InformationModel/blob/33426b25cf6074c6513af48b34550600930dff8e/testing/contract/ActionShape.ttl#L11

Do we really need those? I just came up with an approach to collect all Shapes through owl:imports in one TTL file, similar to the Ontology.ttl appraoch we already have. However, Protege has troubles collecting the Shapes caused by these metadata statements.

JohannesLipp commented 2 years ago

Good point indeed! This is only required if the same shapes also use SPARQL queries (cf. https://www.w3.org/TR/shacl/#sparql-prefixes). Task = Remove all sh:declare statements that are not used in SPARQL queries.