query-a2059d83c86031bc4af28ea82d194101

rq turtle/ttl

VIAF single value constraint violation SELECT ?item ?itemLabel (GROUP_CONCAT(?viafID;SEPARATOR=" | ") AS ?viafIDs) WHERE { ?item p:P214 [ wikibase:hasViolationForConstraint wds:P214-F98CC03E-A180-4F15-B3C9-5C6097F40A57; psn:P214 ?viafID ] . SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } GROUP BY ?item ?itemLabel ORDER BY DESC(COUNT(DISTINCT ?viafID))

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wds: <http://www.wikidata.org/entity/statement/>
PREFIX psn: <http://www.wikidata.org/prop/statement/value-normalized/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# VIAF single value constraint violation
SELECT ?item ?itemLabel (GROUP_CONCAT(?viafID;SEPARATOR=" | ") AS ?viafIDs)
WHERE {
  ?item p:P214 [
    wikibase:hasViolationForConstraint wds:P214-F98CC03E-A180-4F15-B3C9-5C6097F40A57;
                                                   psn:P214 ?viafID
  ] .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?item ?itemLabel 
ORDER BY DESC(COUNT(DISTINCT ?viafID))

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?_anon_d00291b7e9a143df8ec0be8c8ebd714c45753") v2("?item"):::projected v1("?viafID"):::projected v4("?viafIDs") a2((" ")) a1((" ")) c6(["bd:serviceParam"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal c2(["wds:P214-F98CC03E-A180-4F15-B3C9-5C6097F40A57"]):::iri a2 --"wikibase:hasViolationForConstraint"--> c2 a2 --"p:statement/value-normalized/P214"--> v1 v2 --"p:P214"--> a2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end bind2[/"count(?viafID)"/] v1 --o bind2 bind2 --as--o v3 bind3[/"?viafID"/] v1 --o bind3 bind3 --as--o v4