VladimirAlexiev created this task.
VladimirAlexiev added a project: Wikidata-Query-Service.
Restricted Application added a subscriber: Aklapper.
Restricted Application added a project: Wikidata.

TASK DESCRIPTION

I'm trying to get some WD data (science award winners) from another repo in order to insert it there.
I use this query, and it returns no labels (only the ?person URL).

prefix wd:   <http://www.wikidata.org/entity/>
prefix wdt:  <http://www.wikidata.org/prop/direct/>
prefix bd:   <http://www.bigdata.com/rdf#>
prefix wikibase: <http://wikiba.se/ontology#>

select ?person ?personLabel ?personDescription ?occupationLabel ?countryLabel ?fieldLabel ?RID ?ORCID
where {
  service <https://query.wikidata.org/sparql> {
    {select distinct ?person {
      ?award wdt:P31/wdt:P279* wd:Q11448906. # science award
      ?award wdt:P444 []. # review score
      ?person wdt:P166 ?award.
    }}
    optional {?person wdt:P106  ?occupation}
    optional {?person wdt:P27   ?country}
    optional {?person wdt:P101  ?field}
    optional {?person wdt:P1053 ?RID}
    optional {?person wdt:P496  ?ORCID}
    service wikibase:label {bd:serviceParam wikibase:language "en,fr,it,de,nl"}
  }
} limit 25

You can try the same query on WD (self-federation) with the same result.

If I comment out service <https://query.wikidata.org/sparql> and the respective closing brace, the query returns labels as expected.

I tried moving service wikibase:label to different spots, but no cigar.


TASK DETAIL
https://phabricator.wikimedia.org/T211107

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: VladimirAlexiev
Cc: Aklapper, VladimirAlexiev, Nandana, Lahi, Gq86, Lucas_Werkmeister_WMDE, GoranSMilovanovic, QZanden, EBjune, merbst, LawExplorer, _jensen, D3r1ck01, Jonas, Xmlizer, jkroll, Smalyshev, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Mbch331
_______________________________________________
Wikidata-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to