On 11/07/14 15:31, Julien Plu wrote:
Hi,
I try to read a N-QUAD file to load it in a model but unfortunalety nothing
is loaded. Here what I do :
Model m = RDFDataMgr.loadModel("data.nq", Lang.NQUADS);
RDFDataMgr.write(System.out, m, RDFFormat.NQUADS_UTF8);
At the end nothing is displayed on the console. And I have just one line
inside my file :
<http://example.com/Toto> <http://xmlns.com/foaf/0.1/name> "Toto" <
http://example.com> .
Do-I something wrong ? Or is-there another way to do that ?
Thanks in advance for your answer.
Best.
Julien.
A model is a single graph. It can't hold named graphs.
If you read N-quads (default and named graphs) into a Model (a single
graph) only the default graph goes into the model.
Use a dataset to get the set of all graphs in the n-quads files.
Andy