because I need to store the owl file into TDB, and then the prefixes would be 
lost when I create the OntModel form tdb.
I read the source code of TDB, it convert all the formats of rdf data into 
n-triples, the there was no source code dealing with the prefixes when TDB load 
a owl file. is it right?

--------------------------------------------------
From: "Dave Reynolds" <[email protected]>
Sent: Monday, December 05, 2011 4:38 PM
To: <[email protected]>
Subject: Re: a problem about TDB

> On Mon, 2011-12-05 at 08:47 +0800, xh-zh wrote: 
>> the prefixes does exist in the owl file where the model o was created from, 
>> but when we convert the owl file into n-triple, the prefixes will be lost.
> 
> Quite. Why do you need to convert the n-triples at all?
> 
>> I know the prefixes are merely syntax, but we will need to get the default 
>> URI of one OntModel witl OntModel.getNsPrefixURI().
>> 
>> I think the loss of prefix information was caused by the difference of 
>> syntax between the OWL format and N-Triple. right?
> 
> Yes, n-triples do not have any notion of prefix.
> 
> If you really only have access to n-triples then you can
> programmatically add prefixes back into your Jena Model use the
> setNsPrefix(es) calls.
> 
> Dave
> 
> 
> 

Reply via email to