--
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 topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/18111a21-b9db-4574-8f62-053fc36d83ben%40googlegroups.com.
The external graph URI is an optional alias for the asset collection identifier, used when exporting an asset collection as serialized RDF graph. It can also be used on import of interconnected RDF files when they are loaded into different asset collections - to appropriately re-route their owl:imports references.
On 26 May 2022, at 12:06, Kai Liu <kai...@siemens.com> wrote:
--
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 topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/18111a21-b9db-4574-8f62-053fc36d83ben%40googlegroups.com.
Hello Kai,
Thanks for the links and the info.
I was talking about the EDG 7.2 feature "Commit Ontology to Git Repository". We found this feature extremely useful, and it saved us lots of tedious work of exporting, copying and renaming TTL files. With this feature, the "External Graph URI" of included sub-graph is not automatically persisted in the including sub-graph, however.
Back to the origin of my question: I need to find a way to resolve <urn:x-evn-master:b> to a local file b.ttl, which was exported to the same directory as a.ttl in the git repository. I need to run the SHACL validator (https://github.com/TopQuadrant/shacl), which can not understand "<urn:x-evn-master:a> owl:imports <urn:x-evn-master:b>", but does understand "<urn:x-evn-master:a> owl:imports <file:b.ttl>" . This is why I was thinking of populating an additional triple to import <file:b.ttl>. This might just be a workaround though.
If you are running the SHACL API programmatically, there are
various ways in which you can redirect owl:imports. For example
using something like (untested)
ontDocumentManager.addAltEntry("urn:x-evn-master:a",
"file:///c:/a.ttl")
inserted into some place like
Or just replace the owl:imports triples with file URIs as above.
You state the latter didn't quite work, but what error did you
get?
But these are more Jena API questions than TopBraid questions.
Holger
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/6716f6b5-49a6-4791-aa46-91bf58ae5a93n%40googlegroups.com.