Skip to content
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

German FIFA 2014 World Cup Team does not work #609

Closed
WolfgangFahl opened this issue Feb 19, 2022 · 2 comments
Closed

German FIFA 2014 World Cup Team does not work #609

WolfgangFahl opened this issue Feb 19, 2022 · 2 comments

Comments

@WolfgangFahl
Copy link

WolfgangFahl commented Feb 19, 2022

sparqlquery -qp wikidata.yaml -qn GermanFIFA2014WorldCupTeam -f github     

see https://qlever.cs.uni-freiburg.de/wikidata/BGoE0M

Exception: ParseException, cause: Expected 'union' but got '}' in the input at pos 653 : } ORDER BY(?playerLabel)

German FIFA 2014 World Cup Team

German football players participating in the FIFA World GermanFIFA2014WorldCupTeam

query

# German FIFA 2014 Worldcup Team
#
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT  ?player ?playerLabel
WHERE
  {
    #SERVICE  <https://query.wikidata.org/bigdata/namespace/wdq/sparql>
    #SERVICE  <http://sun.bitplan.com:7001/>
    {                           #a working example query for wikidata:
      ?player wdt:P31 wd:Q5.         #humans
      ?player wdt:P54 wd:Q43310.     #germans
      ?player wdt:P1344 wd:Q79859.   #part of world cup 2014
      ?player rdfs:label ?playerLabel.
      FILTER(LANG(?playerLabel) = "en")
    }
}
ORDER BY(?playerLabel)

result

player playerLabel
Q58377 André Schürrle
Q44298 Bastian Schweinsteiger
Q152897 Benedikt Höwedes
Q1085348 Christoph Kramer
Q823064 Erik Durm
Q280829 Jermaine Jones
Q315697 Julian Draxler
Q151260 Jérôme Boateng
Q158367 Kevin Großkreutz
Q134976 Lukas Podolski
Q104454 Mario Götze
Q110053 Mats Hummels
Q129109 Matthias Ginter
Q80471 Miroslav Klose
Q70550 Per Mertesacker
Q43682 Philipp Lahm
Q154397 Roman Weidenfeller
Q155049 Ron-Robert Zieler
Q54094 Sami Khedira
Q694014 Shkodran Mustafi
@hannahbast
Copy link
Member

Remove the spurious { ... } and the (...) around the argument of the ORDER BY, then it works: https://qlever.cs.uni-freiburg.de/wikidata/VgHqGB

@hannahbast
Copy link
Member

Moved to #615

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants