It's confusing when users don't know what success looks like. I have arc2 installed at sites/all/modules/rdf/vendor/arc, everything is as INSTALL.txt says it should be, there are no rdf errors, but all I get is "no success" with no indication where the problem is.

(Perhaps the endpoint could be at drupal.org?)

Comments

bkudrle’s picture

Here is an example. This query works to give a list of all people born in Berlin before 1900 that are listed in DBPedia:

PREFIX : <http://dbpedia.org/resource/>
PREFIX dbpedia2: <http://dbpedia.org/property/>
PREFIX dbo: <http://dbpedia.org/ontology/>

SELECT ?name ?birth ?death ?person WHERE {
?person dbpedia2:birthPlace <http://dbpedia.org/resource/Berlin> .
?person dbo:birthdate ?birth .
?person foaf:name ?name .
?person dbo:deathdate ?death
FILTER (?birth < "1900-01-01"^^xsd:date) .
}

With the SPARQL endpoint of:

http://dbpedia.org/sparql

SamRose’s picture

The above query does not seem to work as written.

See also:

http://dbpedia.org/snorql/?query=SELECT+%3Fname+%3Fbirth+%3Fdeath+%3Fper...{%0D%0A%3Fperson+dbpedia2%3AbirthPlace+%3Chttp%3A%2F%2Fdbpedia.org%2Fresource%2FBerlin%3E+.%0D%0A%3Fperson+dbo%3Abirthdate+%3Fbirth+.%0D%0A%3Fperson+foaf%3Aname+%3Fname+.%0D%0A%3Fperson+dbo%3Adeathdate+%3Fdeath%0D%0AFILTER+(%3Fbirth+%3C+%221900-01-01%22^^xsd%3Adate)+.%0D%0A}

SamRose’s picture

Turned out that it needed more prefixes

I was able to get this to work:


PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX : <http://dbpedia.org/resource/>
PREFIX dbpedia2: <http://dbpedia.org/property/>
PREFIX dbpedia: <http://dbpedia.org/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>

SELECT ?name ?birth ?death ?person WHERE {
?person foaf:name ?name.
?person dbpedia2:birthPlace <http://dbpedia.org/resource/Detroit> .
}