query-5d7cdb03aa508bbbbfd2079d9c154840
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?property ?en_label ?engb_label ?enca_label ?en_desc ?engb_desc ?enca_desc
WHERE
{
?property rdf:type wikibase:Property .
optional { ?property rdfs:label ?en_label. FILTER(LANG(?en_label) = "en") }
optional { ?property rdfs:label ?engb_label. FILTER(LANG(?engb_label) = "en-gb") }
optional { ?property rdfs:label ?enca_label. FILTER(LANG(?enca_label) = "en-ca") }
optional { ?property schema:description ?en_desc . FILTER(LANG(?en_desc) = "en") }
optional { ?property schema:description ?engb_desc . FILTER(LANG(?engb_desc) = "en-gb") }
optional { ?property schema:description ?enca_desc . FILTER(LANG(?enca_desc) = "en-ca") }
filter(str(?en_label) = str(?engb_label)). filter(str(?en_label) = str(?enca_label)).
filter(str(?en_desc) = str(?engb_desc)). filter(str(?en_desc) = str(?enca_desc)).
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?en_desc"):::projected
v4("?en_label"):::projected
v2("?enca_desc"):::projected
v5("?enca_label"):::projected
v3("?engb_desc"):::projected
v6("?engb_label"):::projected
v7("?property"):::projected
c5(["wikibase:Property"]):::iri
f0[["str(?en_desc) = str(?enca_desc)"]]
f0 --> v1
f0 --> v2
f1[["str(?en_desc) = str(?engb_desc)"]]
f1 --> v1
f1 --> v3
f2[["str(?en_label) = str(?enca_label)"]]
f2 --> v4
f2 --> v5
f3[["str(?en_label) = str(?engb_label)"]]
f3 --> v4
f3 --> v6
v7 --"a"--> c5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v7 -."rdfs:label".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v7 -."rdfs:label".-> v6
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v7 -."rdfs:label".-> v5
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v7 -."schema:description".-> v1
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v7 -."schema:description".-> v3
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v7 -."schema:description".-> v2
end