Hi,

Both the domain and the range of owl:imports are supposed to be named graph 
URIs (technically “ontology documents” in the OWL2 spec), not file names in a 
filesystem. 

See 

https://www.w3.org/TR/owl2-syntax/#Imports 
<https://www.w3.org/TR/owl2-syntax/#Imports>

where is says:

The IRIs identifying the ontology documents of the directly imported ontologies 
can be redirected as described in Section 3.2 
<https://www.w3.org/TR/owl2-syntax/#Ontology_Documents>. For example, in order 
to access the above mentioned ontology document from a local cache, the IRI 
<http://www.example.com/my/2.0> might be redirected to 
<file:///usr/local/ontologies/imported.v20.owl>. Note that this can be done 
without changing the ontology document of the importing ontology. 

So basically, you’re “perverting” what owl:imports is supposed to do but 
nothing to stop you doing it I guess.

There is a checkbox to “Include inferred statements from SHACL rules” in Export 
to RDF so I guess if you can write rules to generate the triple you want it 
would be added to the TTL file when saved. BTW if you bring that back into EDG 
it will complain about the missing import but will let the import work, you’d 
just need to go clean up the Includes.

Cheers,
David

> On 26 May 2022, at 12:06, Kai Liu <[email protected]> wrote:
> 
> Hi,
> 
> I have now a requirement to automatically add "owl:imports" lines for all 
> turtle file persisted in git repository. For example:
> 
> The asset colletion "a" includes the asset collection "b", and the resulting 
> a.ttl in the git repository has the following triple:
> 
> <urn:x-evn-master:a> owl:imports <urn:x-evn-master:b>.
> 
> I'd like to add an additional triple automatically:
> 
> <urn:x-evn-master:a> owl:imports <file:b.ttl>.
> 
> This should be done for all included asset collections. Could you please 
> suggest me how to do that? What script should be adapted and how? Thanks.
> 
> Regards, Kai
> 
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TopBraid Suite Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/topbraid-users/18111a21-b9db-4574-8f62-053fc36d83ben%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/topbraid-users/18111a21-b9db-4574-8f62-053fc36d83ben%40googlegroups.com?utm_medium=email&utm_source=footer>.

UK +44 (0) 7788 561308
US +1 (336) 283-0808‬

-- 
You received this message because you are subscribed to the Google Groups 
"TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/topbraid-users/8BEA158E-5CA2-4E59-B98E-4948DC5C70E3%40topquadrant.com.

Reply via email to