First, when I load a model from TDB, I will need to get the baseURI of the
model with OntModel.getNsPrefixURI(""), but I always get null. I can only get
four prefixes of the model with OntModel.getNsPrefixMapping(), which are rdfs,
rdf, owl and xsd.
second, I read the source code of TDB, when it create the dataset or graph, it
does create the prefixes of the graph according to reading the prefixes.dat,
but the prefixes.dat is empty.
finally, according to the source code of TDB, I did not find the code about
processing and storing the prefixes in my input file, such as owl file and N3
file. If TDB does processing the prefixes in the input file while loading
data, can you tell me which classes are related?
--------------------------------------------------
From: "Chris Dollin" <[email protected]>
Sent: Tuesday, December 06, 2011 11:21 PM
To: <[email protected]>
Subject: Re: prefixes problem about tdb
> xh-zh said:
>
>> ok, I download timezone.owl from internet and then load it into tdb, with
>> tdbloader --loc=/home/tdb/ontology /home/timezone.owl
>>
>> the prefixes.dat in the /home/tdb/ontology/ are empty, why? is it normal?
>
> There are other prefix files than prefixes.dat; perhaps they live in there.
>
> But anyway, /why do you care/? What matters isn't what's in what
> files, but whether the TDB model has the correct prefix mapping in
> it. You don't need to look at the TDB files to find the prefixes: just
> ask the model (or graph, if you're at the graph level).
>
> Chris
>
> --
> "I know it was late, but Mountjoy never bothers, /Archer's
> Goon/
> so long as it's the full two thousand words."
>
> Epimorphics Ltd, http://www.epimorphics.com
> Registered address: Court Lodge, 105 High Street, Portishead, Bristol BS20 6PT
> Epimorphics Ltd. is a limited company registered in England (number 7016688)
>