query-8d25facad1b37ed315e7d092eda5ffdf

rq turtle/ttl

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

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". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?x"):::projected a1((" ")) c3(["bd:serviceParam"]):::iri c5(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["sameterm(?x,)"]] f0 --> v1 f0 --> a1 v1 --"wdt:P36"--> a1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c3 --"wikibase:language"--> c5 end