Dear Virtuoso Community,
I am using the DBpedia SPARQL endpoint http://dbpedia.org/sparql which
is using Virtuoso SPARQL and I can't seem to get a result for some
select queries with data type properties (which are not strings).
An example:
The city http://dbpedia.org/resource/Benidoleig has the following
entry for its geographical latitude:
The query:
SELECT ?lat,datatype(?lat) where
{<http://dbpedia.org/resource/Benidoleig>
<http://www.w3.org/2003/01/geo/wgs84_pos#lat> ?lat}
The result:
lat callret-1
38.79166793823242 http://www.w3.org/2001/XMLSchema#float
The construct query gives the same result.
Query:
construct {<http://dbpedia.org/resource/Benidoleig>
<http://www.w3.org/2003/01/geo/wgs84_pos#lat> ?lat} where
{ <http://dbpedia.org/resource/Benidoleig>
<http://www.w3.org/2003/01/geo/wgs84_pos#lat> ?lat}
Result:
@prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> .
@prefix dbpedia: <http://dbpedia.org/resource/> .
dbpedia:Benidoleig geo:lat 38.79166793823242 .
But when I want to get the city with this position I get an empty result.
The query:
SELECT * where {?s <http://www.w3.org/2003/01/geo/wgs84_pos#lat>
"38.79166793823242"^^<http://www.w3.org/2001/XMLSchema#float>}
Without the datatype I also get an empty result:
SELECT * where {?s <http://www.w3.org/2003/01/geo/wgs84_pos#lat>
"38.79166793823242"}
The following query works, however:
PREFIX dbpediaprop: <http://dbpedia.org/property/>
SELECT DISTINCT *
WHERE {
{?s0 dbpediaprop:runtime "6300.0"^^<http://dbpedia.org/datatype/second>.
?s0 ?p0 ?o0.
?o0 bif:contains "Batman".
}}
Another problem I have is that bif:contains only works with letters
but not with numbers, is there a manual where I can read, which
letters are allowed for bif:contains and which are not? I did a google
search but I could not find a manual for it.
Sincerely,
Konrad Höffner
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.