query-8d25facad1b37ed315e7d092eda5ffdf
Self-referencingHi all, From time to time, I'm checking the self-referencing links (?itemA ?propertyX ?itemA). Most of the time, I just revert the wrong edit and if it's possible and convenient, I add a correct value instead, but in some rare cases I'm not sure what to do. , the mistake is obvious and the confusion can easily be fixed. (P735)given name (and all or (P40)child For example for ? What should we dot here? (P36)capital or (P17)country But what cases about (or similar situation) where the statement could (should?) be kept(Q133442)city-state , most of the selflinks are about (P36)capital For ). I'll leave it be for the moment.Property talk:P17/Archive and Property talk:P17, for some strange reasons I don't really agree with, it has been decided to put a self-referencing link on purpose (see (P17)country For
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?x ?xLabel WHERE {
?x wdt:P36 ?x.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}