Closed spetrac closed 3 years ago
Thanks for pointing this out; however, we might actually not have a problem at all. The reason for our relative-file imports such as
is our internal maintenance process. We would like to keep the ontology modular by splitting it into many files. However, to generate the publishable, one-file ontology, we need to feed all these modules to the Widoco tool, which generates a one-file version of the ontology and also the HTML documentation. I just confirmed that the published ontology (source, published version) does not contain imports.
Thanks for the clarification @clange . If there are still questions or need for discussion, feel free to reopen the issue.
To understand better the importing of multiple ttl-files, like the Ontology suggests, I found that the current way of using owl:imports might not be allright and in practise introduces some errors for rdf-stores:
I would suggest using named imports in the main ontology and defining sub-ontologies with their own unique id. Obviously that way it is definitly harder to get the actual file for the sub-ontology, which is another problem. I understand that the owl:imports are currently very useful to merge all necessary ttl-files to one infomodel, but alternatively at least I would like to see something like file-URLs as location imports to indicate a relative file to the current one, e.g.
ids: owl:imports <file:./model/infrastructure/Connector.ttl>
(I know, technically relative file-URL does not exist either). At least for me it would be a quick-fix, so that the common js-rdf-stores do not through errors like "NamedNode IRI "model/infrastructure/Connector.ttl" must be absolute.". (Although this would not resolve any semantic issues with sub-ontologies.)