I created my data file containing the following data(try.nq):
<http://dbpedia.org/data/Plasmodium_hegneri.xml> <
http://code.google.com/p/ldspider/ns#headerInfo>
_:header16125770191335188966549 <a> .
<a> <b> <http://dbpedia.org/data/Plasmodium_hegneri.xml> <id_1> .
_:header16125770191335188966549 <http://www.w3.org/2006/http#responseCode>
"200"^^<http://www.w3.org/2001/XMLSchema#integer> <c> .
<c> <b> <http://dbpedia.org/data/Plasmodium_hegneri.xml> <id_3> .
_:header16125770191335188966549 <http://www.w3.org/2006/http#date> "Mon,
23 Apr 2012 13:49:27 GMT" <d> .
<d> <b> <http://dbpedia.org/data/Plasmodium_hegneri.xml> <id_5> .
After that I entered the following command for loading data into Jena-TDB:
root@server:/home/apache-jena-2.10.0/bin# ./tdbloader --loc=/home/Jena/try
-v /home/try.nq
Then I fired the following SPARQL command:
root@server:/home/apache-jena-2.10.0/bin# ./tdbquery --time
--loc=/home/Jena/try "select ?a?b?c where{ graph ?j1{?a ?b <
http://dbpedia.org/data/Plasmodium_hegneri.xml>} }"
I got the following output:
-----------------
| a | b | c |
=================
| <a> | <b> | |
| <c> | <b> | |
| <d> | <b> | |
-----------------
Time: 0.104 sec
After this I tried another SPARQL query(given below) for which I obtained
an incorrect output:
SPARQL query:
root@server:/home/apache-jena-2.10.0/bin# ./tdbquery --time
--loc=/home/Jena/try "select ?a?b?c where{ graph ?j1{?a <b> <
http://dbpedia.org/data/Plasmodium_hegneri.xml>} }"
Output:
-------------
| a | b | c |
=============
-------------
Time: 0.095 sec
This output seems to be incorrect. Can someone please help me as to where
am I going wrong?
Cheers,
Rose