Dear Andra, special thanks! One might, perhaps change this also in the Wikidata selection of Sample queries (I do not know eher one would do it...)
very useful for us, a good day from Gotha! Olaf > Andra Waagmeester <[email protected]> hat am 5. März 2020 um 12:03 geschrieben: > > > Is the https://database.factgrid.de/wiki/Item:Q969 the only result you are > expecting? > > I have rewritten the query a bit, since the wdt prefix is a bit redundant > if you you are iterating over qualifiers and references, but in those > results https://database.factgrid.de/wiki/Item:Q969 exists. > > This is the query: > > https://tinyurl.com/rg8w2nz > > Regards Andra > > > On Thu, Mar 5, 2020 at 11:31 AM Olaf Simons <[email protected]> > wrote: > > > Dear list, > > > > I was trying to run a Sample query from Wikidata on our page but I do not > > get the result I was hoping for. Can anybody give me an idea what I am > > doing wrong? > > > > This is Wikidata's original Script: > > > > > > https://query.wikidata.org/#%23Content%20of%20a%20reference%20for%20a%20specific%20statement%0A%23%20See%20also%20the%20SPARQL%20manual%0A%23%20https%3A%2F%2Fen.wikibooks.org%2Fwiki%2FSPARQL%2FWIKIDATA_Qualifiers%2C_References_and_Ranks%0A%23%20In%20this%20example%20we%20look%20for%20statements%20which%20assign%20a%20specific%20value%20%28Q51955019%29%0A%23%20to%20the%20property%20P1343%20and%20then%20look%20for%20references%20of%20that%20property%2C%20specifically%0A%23%20the%20string%20associated%20to%20P958%20for%20the%20reference.%20May%20actually%20bring%20up%20references%0A%23%20for%20other%20P1343%20statements%3B%20uses%20the%20shortened%20expression%20syntax%20with%20brackets.%0ASELECT%20%3Fitem%20%3Freference%0AWHERE%20%7B%0A%20%20%3Fitem%20wdt%3AP1343%20wd%3AQ51955019%20.%0A%20%20%3Fitem%20p%3AP1343%20%5B%20prov%3AwasDerivedFrom%20%5B%20pr%3AP958%20%3Freference%20%5D%20%5D%20.%0A%7D > > > > > > this is my adaptation for FactGrid: > > > > > > https://database.factgrid.de/query/#%23Content%20of%20a%20reference%20for%20a%20specific%20statement%0A%23%20See%20also%20the%20SPARQL%20manual%0A%23%20https%3A%2F%2Fen.wikibooks.org%2Fwiki%2FSPARQL%2FWIKIDATA_Qualifiers%2C_References_and_Ranks%0A%23%20In%20this%20example%20we%20look%20for%20statements%20which%20assign%20a%20specific%20value%20%28Q38779%29%0A%23%20to%20the%20property%20P91%20and%20then%20look%20for%20references%20of%20that%20property%2C%20specifically%0A%23%20the%20string%20associated%20to%20P51%20for%20the%20reference.%20May%20actually%20bring%20up%20references%0A%23%20for%20other%20P1343%20statements%3B%20uses%20the%20shortened%20expression%20syntax%20with%20brackets.%0ASELECT%20%3Fitem%20%3Freference%20%3FreferenceLabel%0AWHERE%20%7B%0A%20%20%3Fitem%20wdt%3AP91%20wd%3AQ38779%20.%0A%20%20%3Fitem%20p%3AP91%20%5B%20prov%3AwasDerivedFrom%20%5B%20pr%3AP51%20%3Freference%20%5D%20%5D%20.%0A%7D > > > > > > and this is a FactGrid Item where this should work: > > > > https://database.factgrid.de/wiki/Item:Q969 > > > > the man is proposed for an Illuminati Membership P91+Q38779. I want the > > query service to fetch the answer on the reference statement P51 primary > > source (and realise that my searches do not pay respect to the Q38779 > > focus). (Maybe the scripted focus does not even work on Wikidata...) > > > > Thanks for the clue, > > > > Olaf > > > > > > > > > > Dr. Olaf Simons > > Forschungszentrum Gotha der Universität Erfurt > > Schloss Friedenstein, Pagenhaus > > 99867 Gotha > > > > Büro: +49-361-737-1722 > > Mobil: +49-179-5196880 > > > > Privat: Hauptmarkt 17b/ 99867 Gotha > > > > _______________________________________________ > > Wikidata mailing list > > [email protected] > > https://lists.wikimedia.org/mailman/listinfo/wikidata > > > _______________________________________________ > Wikidata mailing list > [email protected] > https://lists.wikimedia.org/mailman/listinfo/wikidata Dr. Olaf Simons Forschungszentrum Gotha der Universität Erfurt Schloss Friedenstein, Pagenhaus 99867 Gotha Büro: +49-361-737-1722 Mobil: +49-179-5196880 Privat: Hauptmarkt 17b/ 99867 Gotha _______________________________________________ Wikidata mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata
