-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Demo query is incompatible with Wikidata Query Services and Apache Jena #604
Comments
# Mountains higher than 8000 m
# fixes:
# https://qlever.cs.uni-freiburg.de/wikidata/F7JXq3
# see https://github.com/ad-freiburg/qlever/issues/604
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX psn: <http://www.wikidata.org/prop/statement/value-normalized/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?mountain ?mountain_label (MAX(?elevationValues) AS ?elevation) (SAMPLE(?coordinateValues) AS ?coordinates) WHERE {
?mountain wdt:P31 wd:Q8502 .
?mountain p:P2044/psn:P2044/wikibase:quantityAmount ?elevationValues .
?mountain wdt:P625 ?coordinateValues .
?mountain rdfs:label ?mountain_label .
FILTER(?elevationValues >= 8000.0) .
FILTER (LANG(?mountain_label) = "en")
}
GROUP BY ?mountain ?mountain_label
ORDER BY DESC(?elevation) try it! works |
using the sparqlquery command line from https://github.com/WolfgangFahl/pyLoDStorage sparqlquery -qp sampledata/wikidata.yaml -qn MountainsHigher8000m -f github Mountains higher than 8000 mhttps://qlever.cs.uni-freiburg.de/wikidata/F7JXq3 query# Mountains higher than 8000 m
# fixes:
# https://qlever.cs.uni-freiburg.de/wikidata/F7JXq3
# see https://github.com/ad-freiburg/qlever/issues/604
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX psn: <http://www.wikidata.org/prop/statement/value-normalized/>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?mountain ?mountain_label (MAX(?elevationValues) AS ?elevation) (SAMPLE(?coordinateValues) AS ?coordinates) WHERE {
?mountain wdt:P31 wd:Q8502 .
?mountain p:P2044/psn:P2044/wikibase:quantityAmount ?elevationValues .
?mountain wdt:P625 ?coordinateValues .
?mountain rdfs:label ?mountain_label .
FILTER(?elevationValues >= 8000.0) .
FILTER (LANG(?mountain_label) = "en")
}
GROUP BY ?mountain ?mountain_label
ORDER BY DESC(?elevation)
result
|
Closed
Just tried the query again on QLever, it works fine. The WDQS gives a |
Indeed sparqlquery -qp sampledata/wikidata.yaml -qn MountainsHigher8000m -f github -en qlever-wikidata-proxy now works result
on my computer the wikidata query service endpoint responds just fine with the same result. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
leads to a stackoverflow error in the WikidataQuery Service and and an error message in Apache Jena.
The text was updated successfully, but these errors were encountered: