Replies: 3 comments 1 reply
-
Hi Mats, thank you for using qendpoint! About your issue. One can split it into 2 problems:
Let us know about point 2) : ) Cordially |
Beta Was this translation helpful? Give feedback.
-
Apparently Wikimedia added just a few SPARQL syntax: https://en.wikibooks.org/wiki/SPARQL namely: SERVICE Labels and Descriptions We already implemented part of SERVICE Labels. |
Beta Was this translation helpful? Give feedback.
-
Hi Mats, sorry I think I did not explain well. I was asking if you are willing to translate your original query to a standard geoSPARQL query. Which apparently you are : ) This query will not work on the public wikidata SPARQL endpoint since it is not following the standard on this. We follow the standard, but on the original docker that we provide we do not deliver the geoSPARQL index that allows this type of request. So this is on us. I opened an issue for this: we will check internally how much bandwith we have for this currently. Please check the issue : ) |
Beta Was this translation helpful? Give feedback.
-
Hi
I am new to this. I have this SPARQL query that works on the Wikidata Query Service but it does not work on the qEndpoint. What can I do about it? It throws this exception:
org.eclipse.rdf4j.query.QueryEvaluationException: Server responded with an unsupported file format: application/rdf+xml
This is the query. It find a number of places within a bounding box and returns their names and locations
PREFIX wd: http://www.wikidata.org/entity/
PREFIX wdt: http://www.wikidata.org/prop/direct/
PREFIX rdfs: http://www.w3.org/2000/01/rdf-schema#
PREFIX geo: http://www.opengis.net/ont/geosparql#
PREFIX wikibase: http://wikiba.se/ontology#
PREFIX bd: http://www.bigdata.com/rdf#
SELECT ?place ?placeLabel ?location
WHERE {
SERVICE wikibase:box {
?place wdt:P625 ?location.
bd:serviceParam wikibase:cornerWest "Point(14.808774623316117 56.877338602443515)"^^geo:wktLiteral.
bd:serviceParam wikibase:cornerEast "Point(14.813474019683593 56.8800030629281)"^^geo:wktLiteral.
}
?place wdt:P31/wdt:P279* wd:Q2221906.
SERVICE wikibase:label { bd:serviceParam wikibase:language "sv". }}
Beta Was this translation helpful? Give feedback.
All reactions