query-a1690c5f1a994505be55de97887b3fec
Updating data that was imported in 2018/ adding referencesGreetings, I hope this message finds you well. Being an intern at Kunstenpunt, an organization that imported its database in 2018, I am to update some of that data and add references to some of the properties that have been created in 2018. To do so, I need to make sure those properties were not edited by someone else to make sure of the integrity of the data that I want to make changes to. I have been trying to do this using schema: dateModified feature of sparql language in Wikidata query service. However, the data that I receive is in conflict with the items's Wikidata history page. Here is the query I have been trying out:
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?itemLabel ?countryLabel ?change
WHERE {
?item wdt:P5164 ?id ;
wdt:P17 ?country.
?country schema:dateModified ?change .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],nl,en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?change"):::projected
v3("?country")
v2("?id")
v1("?item")
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,nl,en"]):::literal
v1 --"wdt:P5164"--> v2
v1 --"wdt:P17"--> v3
v3 --"schema:dateModified"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end