On 2014-06-29 09:52:22 Parisa Noorishad <p.noorishad@es...> wrote: > Hello, > > I found your project a great work! Thanks for working hard on that > to get it this far. > > I am very new to DBpedia and SPARQL. I would like to use it to make > a database of all visualization tools available: > I run this simple query: > > PREFIX dbpedia0: <http://dbpedia.org/ontology/>; > > SELECT ?Tool WHERE{ > ?Tool a dbpedia0:Work.Software . > ?Tool dbpedia2:genre "Visualization" . > } > > I get no result?!!! I know at least one tool to have been set for > dbpprop:genre to "Visualization" (it is Gephi)... So my question is > what Am I doing wrong? > > Many many thanks for taking some time to answer this. > Parisa
Parisa, You might have already solved your problem by now, but I will answer anyway. Maybe it will help. There are a couple of problems with your query. The first problem is on this line: ?Tool a dbpedia0:Work.Software With the prefix dbpedia0 you've set, this is short for: ?Tool <rdf:Type> <http://dbpedia.org/ontology/Work.Software> There are no matches for the combined "Work.Software" but there is one match for "Work" and one match for "Software". (In DBpedia, "Software" is a kind of "Work".) The second problem with your query is on this line: ?Tool dbpedia2:genre "Visualization" . With RDF and SPARQL, there are different kinds of literals -- they can have types or language tags. That means that "Visualization"@en is not the same as plain "Visualization" (without the language tag). If you include the language tag in your query, you will see different results. Good luck! -- Rob Hunter Generalist with one or more specialties ------------------------------------------------------------------------------ Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft _______________________________________________ Dbpedia-discussion mailing list Dbpedia-discussion@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion