Some of the code (at least OntDocumentManager) is still using
FileManager I believe.

The proper way IMO is to have a location-mapping and read ontology
(namespace) URI, not physical file URIs, and let LocationMapper take
care of the rest.
https://jena.apache.org/documentation/notes/file-manager.html

On Fri, Mar 31, 2017 at 8:38 PM, Donald Smith <donald.sm...@argodata.com> wrote:
> RDFDataMgr does fine while loading a given RDF file, but what I'm trying to 
> do is to use OntModel to read an ontology from local disk which would intern 
> fetch the imported ontologies. For any imported ontology that is fetched via 
> HTTP that is returned as RDF/XML works fine. For any imported ontology that 
> is of any other type, such as turtle, it fails.
>
> Does OntModel.read(InputStream stream, String Lang) not use RDFDataMgr itself 
> to load imported ontologies?
>
> -----Original Message-----
> From: Dave Reynolds [mailto:dave.e.reyno...@gmail.com]
> Sent: Thursday, March 30, 2017 2:57 AM
> To: users@jena.apache.org
> Subject: Re: Ontology Imports
>
> On 29/03/17 20:54, Donald Smith wrote:
>>
>> Given I have an ontology that imports one or more other ontologies, when I 
>> read that ontology:
>>
>> model.read("http://example.com/ExampleOntology.owl";, "TURTLE");
>
> That should be "Turtle" or, better, RDFLanguages.strLangTurtle or better 
> still use RDFDataMgr and let it work out the language.
>
> Dave
> --------------------------------------------------- Confidentiality Notice: 
> This electronic mail transmission is confidential, may be privileged and 
> should be read or retained only by the intended recipient. If you have 
> received this transmission in error, please immediately notify the sender and 
> delete it from your system.

Reply via email to