-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 07/03/11 14:26, AL-Hanoof AL-Thnian wrote:
> Hi!
> 1- How can I store RDF data? I have my data in rdf file but I dont know
> where to put this file, and whether I need to put the ontology in the same
> place. here what I did:
> String directory = "MyDB/rdf" ; //here I put my rdf data file.
> Model model= TDBFactory.createModel(directory) ;
Here is your problem. TDB is a database that stores data and indexes on
disk, but in a form optimised for searching and size. It doesn't use rdf
files.
Try:
import com.hp.hpl.jena.util.FileManager;
...
Model model = FileManager.get().loadModel("path/to/file.rdf");
instead.
> I am looking forward to your help.
> Alhanoof.
Hope this helps.
Damian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk11CcwACgkQAyLCB+mTtylwmQCgmHLP8bsrvrUy2JiTyXEdStGi
PoUAoKiAJ6SX/VNixb850pSC1sB/OWnk
=+h0m
-----END PGP SIGNATURE-----