query-66b8f00ce6fdbc06bcf78e1f6ce75192

rq turtle/ttl

William Avery Bot 10) logs • contribs • talk (William Avery Operator: )xtools • User rights • User rights log • Block log • SUL • new lexemes • new items • contribs • talk (William Avery Bot Task/s:Wikidata:Bot requests § Request to fix certain instances of imported from Wikimedia project (P143) (2022-09-25) as requested at (Q106600690)Minor Planet Center Database (P248)stated in to (Q522039)Minor Planet Center (P143)imported from Wikimedia project Fix instances of Code:https://bitbucket.org/WilliamAvery/wikipythonics/src/master/switchProvenance.py Function details:Items in need of attention can be found with a SPARQL query such as the following:

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT  ?item ?itemLabel ?property ?object
WHERE
{
    ?item ?property  ?object .
    ?object prov:wasDerivedFrom ?provenance .
    ?provenance pr:P143 wd:Q522039 .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected v3("?object"):::projected v2("?property"):::projected v4("?provenance") c5(["bd:serviceParam"]):::iri c3(["wd:Q522039"]):::iri c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal v1 -->v2--> v3 v3 --"prov:wasDerivedFrom"--> v4 v4 --"pr:P143"--> c3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end