query-8e7f3249cc33d125c8b0121413901d65
William Avery Bot 5) logs • contribs • talk (William Avery Operator: )xtools • User rights • User rights log • Block log • SUL • new lexemes • new items • contribs • talk (William Avery Bot Wikidata:Bot requests#reference URL (P854) → Holocaust.cz person ID (P9109) (2021-02-05), as requested at (P9109)Holocaust.cz person ID will be changed to to use (P854)reference URL that use (Q104074149)The Database of Victims of the Nazi Persecution References to facts stated in Task/s: https://bitbucket.org/WilliamAvery/wikipythonics/src/master/urlRefToID.py Code: Function details:This is a pywikibot script, which will use the following SPARQL as a generator.
Use at
- https://query.wikidata.org/sparql
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
SELECT DISTINCT ?item ?id WHERE {
?item ?prop ?claim.
?claim prov:wasDerivedFrom [ pr:P248 wd:Q104074149 ; pr:P854 ?url ]
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?claim")
v1("?item"):::projected
v2("?prop")
v4("?url")
a1((" "))
c2(["wd:Q104074149"]):::iri
v1 -->v2--> v3
a1 --"pr:P248"--> c2
a1 --"pr:P854"--> v4
v3 --"prov:wasDerivedFrom"--> a1