Sparql 杰娜没有';不要在owl导入上使用LocationMapper

Sparql 杰娜没有';不要在owl导入上使用LocationMapper,sparql,jena,owl,Sparql,Jena,Owl,我有一个带有owl imports子句的ttl文件,如 @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子句的ttl文件,如

@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 .

OntModel
s有自己的
FileManager
来处理owl:imports

此文件和LocationMapper可通过OntModel的DocumentManager访问:

model.getDocumentManager().addAltEntry(..., ...)

和其他API调用。

谢谢Andy-基于此提示,我成功地将自定义映射器用作model.getDocumentManager().getFileManager().setLocationMapper(映射器);
model.getDocumentManager().addAltEntry(..., ...)