Hi,

I am starting to experiment with D2RQ, and I created an example very 
similar to the one in the D2RQ-Jena walkthrough. When I do 
listStatements() with no arguments, I get these triples out of my MySQL 
database:

[http://localhost:2020/vocab/resource/example_age, 
http://www.w3.org/2000/01/rdf-schema#label, "example age"]
[http://localhost:2020/vocab/resource/example_age, 
http://www.w3.org/1999/02/22-rdf-syntax-ns#type, 
http://www.w3.org/1999/02/22-rdf-syntax-ns#Property]
[http://localhost:2020/vocab/resource/example, 
http://www.w3.org/2000/01/rdf-schema#label, "example"]
[http://localhost:2020/vocab/resource/example, 
http://www.w3.org/1999/02/22-rdf-syntax-ns#type, 
http://www.w3.org/2000/01/rdf-schema#Class]
[http://localhost:2020/vocab/resource/example_id, 
http://www.w3.org/2000/01/rdf-schema#label, "example id"]
[http://localhost:2020/vocab/resource/example_id, 
http://www.w3.org/1999/02/22-rdf-syntax-ns#type, 
http://www.w3.org/1999/02/22-rdf-syntax-ns#Property]
[http://localhost:2020/vocab/resource/example_name, 
http://www.w3.org/2000/01/rdf-schema#label, "example name"]
[http://localhost:2020/vocab/resource/example_name, 
http://www.w3.org/1999/02/22-rdf-syntax-ns#type, 
http://www.w3.org/1999/02/22-rdf-syntax-ns#Property]
[http://www.w3.org/2000/01/rdf-schema#label, 
http://www.w3.org/1999/02/22-rdf-syntax-ns#type, 
http://www.w3.org/1999/02/22-rdf-syntax-ns#Property]
[file:///homes/elenius/projects/vitis/svn/kms/onistt_mapping.ttl#example/1, 
http://localhost:2020/vocab/resource/example_age, 
"23"^^http://www.w3.org/2001/XMLSchema#int]
[file:///homes/elenius/projects/vitis/svn/kms/onistt_mapping.ttl#example/1, 
http://localhost:2020/vocab/resource/example_name, "Timmy Mellowman"]
[file:///homes/elenius/projects/vitis/svn/kms/onistt_mapping.ttl#example/1, 
http://localhost:2020/vocab/resource/example_id, 
"1"^^http://www.w3.org/2001/XMLSchema#int]
[file:///homes/elenius/projects/vitis/svn/kms/onistt_mapping.ttl#example/1, 
http://www.w3.org/2000/01/rdf-schema#label, "example #1"]
[file:///homes/elenius/projects/vitis/svn/kms/onistt_mapping.ttl#example/1, 
http://www.w3.org/1999/02/22-rdf-syntax-ns#type, 
http://localhost:2020/vocab/resource/example]
[file:///homes/elenius/projects/vitis/svn/kms/onistt_mapping.ttl#example/2, 
http://localhost:2020/vocab/resource/example_age, 
"21"^^http://www.w3.org/2001/XMLSchema#int]
[file:///homes/elenius/projects/vitis/svn/kms/onistt_mapping.ttl#example/2, 
http://localhost:2020/vocab/resource/example_name, "Sandy Smith"]
[file:///homes/elenius/projects/vitis/svn/kms/onistt_mapping.ttl#example/2, 
http://localhost:2020/vocab/resource/example_id, 
"2"^^http://www.w3.org/2001/XMLSchema#int]
[file:///homes/elenius/projects/vitis/svn/kms/onistt_mapping.ttl#example/2, 
http://www.w3.org/2000/01/rdf-schema#label, "example #2"]
[file:///homes/elenius/projects/vitis/svn/kms/onistt_mapping.ttl#example/2, 
http://www.w3.org/1999/02/22-rdf-syntax-ns#type, 
http://localhost:2020/vocab/resource/example]

(The mapping file was generated with the generate-mapping tool and left 
alone).


However, when I try

listStatements(null, RDF.type, 
"http://localhost:2020/vocab/resource/example";);

I get nothing. There should be 3 matching triples as far as I can tell.


Another problem I had was that concurrent.jar was missing (problem 
solved by downloading it, but I thought you'd like to know).


Daniel Elenius

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
d2rq-map-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/d2rq-map-devel

Reply via email to