same as yesterday's
https://stackoverflow.com/questions/49801630/jena-doesnt-use-locationmapper-on-owl-imports
Please provide a complete, minimal, debuggable example, and also say
which version of Jena you are using.
Andy
PS redirecting to a file with an extension that does not indicate the
RDF syntax will not work.
On 13/04/18 10:21, r. r. wrote:
Hello!
I have a ttl file with owl-imports clause like
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>
<http://test/data.ttl>
a owl:Ontology ;
owl:imports <file:///Users/tht/workspace/jenatest/test_course.ttl> ;
owl:versionInfo "tht testing owl:imports"^^xsd:string .
When test_course.ttl file exists, FileManager.get().readModel loads
the model, the other ttl is imported and sparql queries work fine. But
if I remove the file and use
FileManager.get().setLocationMapper().addAltEntry() to redirect to
another existing file, the model is not what i expect and the sparql
queries return no results.
So owl-imports works fine, but it seems like Jena is not using
LocationMapper when importing? or could it be my mapping uris are
incorrect? I'm using something like
mapper.addAltEntry("file:///Users/tht/workspace/jenatest/test_course.ttl",
"file:///Users/tht/workspace/jenatest/test_course.ttl.redirected")
Thanks for any hints!