query-57a25b2328ec1131e4a4f0130b657ea5
primarily used on Wikidata forms: (Q54275221)Wikidata property for lexicographic forms
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?itemDescription
(GROUP_CONCAT(?t) as ?classification) (GROUP_CONCAT(?c) as ?constraint) {
{ ?item wdt:P31/wdt:P279* wd:Q54275221 . BIND ('✓' AS ?t) }
UNION { BIND ('✓' AS ?c)
?item p:P2302 [ ps:P2302 wd:Q52004125 ; pq:P2305 wd:Q54285143 ].
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} GROUP BY ?item ?itemLabel ?itemDescription
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?c"):::projected
v4("?classification")
v5("?constraint")
v1("?item"):::projected
v2("?t"):::projected
a1((" "))
a2((" "))
c5(["wd:Q52004125"]):::iri
c10(["bd:serviceParam"]):::iri
c3(["wd:Q54275221"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c7(["wd:Q54285143"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
bind0[/"'✓'"/]
bind0 --as--o v3
a2 --"p:statement/P2302"--> c5
a2 --"p:qualifier/P2305"--> c7
v1 --"p:P2302"--> a2
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c3
bind1[/"'✓'"/]
bind1 --as--o v2
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end
bind4[/"?t"/]
v2 --o bind4
bind4 --as--o v4
bind5[/"?c"/]
v3 --o bind5
bind5 --as--o v5