Hi Daniel, On 4 May 2012, at 23:22, Daniel Elenius wrote: > 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.
The Jena API call as you wrote it lists only triples with literals, and not URIs, in the object position. So you can use it to find the triples with object "Sandy Smith", but not with object <http://localhost:2020/vocab/resource/example>. To list statements with URIs in them, do something like: Model myD2RQ = new ModelD2RQ(...); Resource exampleClass = myD2RQ.createResource( "http://localhost:2020/vocab/resource/example"); StmtIterator it = listStatements(null, RDF.type, exampleClass); This should return two statements, as your table contains two records AFAICT. > Another problem I had was that concurrent.jar was missing (problem > solved by downloading it, but I thought you'd like to know). Right — Jena contains a couple more jars that D2RQ doesn't need, and hence they are not included in the D2RQ download. The cleanest way to avoid this is to download the version of ARQ that D2RQ uses, as indicated by the name of D2RQ's /lib/arq-X.Y folder, and take all jars from there. I've updated the docs at http://d2rq.org/jena to reflect this. The page there had some outdated information on other issues as well (e.g., the logging subsection) that I've fixed too. Best, Richard > > > 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 ------------------------------------------------------------------------------ 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
