My code generates an nquad format through dotNetRDF. It seems valid when I validated in EasyRDF: EasyRdf - Converter.
When I insert it manually in Stardog through the Web UI, I can browse through the WebUI. However, a simple query such as
Select ?a ?b ?c
{
?a ?b ?c
}
Don't return any result.
When I take the same file and convert it to rdf/xml and then I insert the file manually through the WebU. I can browse it correctly and when I query Select ?a ?b ?c
{
?a ?b ?c
}
I have the expected results. output.nq (18.8 KB)
By default the query.all.graphs is set to false. I’m assuming that your nquads puts everything into named graphs and nothing into the default graph. rdf/xml doesn’t support named graphs so I’d also assume that it’s simply adding everything into the default graph.
The query you’re running only selects from the default graph so when you load the nquads you don’t see anything because there’s nothing in the default graph, it’s all in named graphs but when you load the rdf/xml everything goes into the default graph and you get results.
You should see your data with nquads if you run the following query
select * { graph ?g { ?s ?p ?o}}
or you can change query.all.graphs to true and you will see everything with your previous query.
Can you share your queries, query plans and possibly the data? The query.all.graphs may have an impact on the performance depending on your data and the queries but that should be expected as you are querying two different datasets. If you had 1 billion triples in named graphs but zero in the default graph a query against the default graph would go from querying nothing to querying a very large number of triples.