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