query-bf4596bd4ac568b643e87100fcf5dba4
TODO
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?woven_fabric ?woven_fabricLabel (group_concat(distinct ?fabrication_method;separator=", ") as ?fm) (group_concat(distinct ?fabrication_methodLabel;separator=", ") as ?fmL) (group_concat(distinct ?material_used;separator=", ") as ?mu) (group_concat(distinct ?material_usedLabel;separator=", ") as ?mul) (group_concat(distinct ?described_by_source;separator=", ") as ?dbs) (group_concat(distinct ?described_by_sourceLabel;separator=", ") as ?dbsL)
WHERE
{
?woven_fabric wdt:P279 wd:Q5295538.
OPTIONAL { ?woven_fabric wdt:P2079 ?fabrication_method. }
OPTIONAL { ?woven_fabric wdt:P186 ?material_used. }
OPTIONAL { ?woven_fabric wdt:P1343 ?described_by_source. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
?fabrication_method rdfs:label ?fabrication_methodLabel .
?material_used rdfs:label ?material_usedLabel .
?described_by_source rdfs:label ?described_by_sourceLabel .}
} group by ?woven_fabric ?woven_fabricLabel
LIMIT 1000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v12("?dbs")
v13("?dbsL")
v4("?described_by_source"):::projected
v7("?described_by_sourceLabel"):::projected
v2("?fabrication_method"):::projected
v5("?fabrication_methodLabel"):::projected
v8("?fm")
v9("?fmL")
v3("?material_used"):::projected
v6("?material_usedLabel"):::projected
v10("?mu")
v11("?mul")
v1("?woven_fabric"):::projected
c7(["bd:serviceParam"]):::iri
c2(["wd:Q5295538"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P279"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P2079".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P186".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1343".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
v2 --"rdfs:label"--> v5
v3 --"rdfs:label"--> v6
v4 --"rdfs:label"--> v7
end
bind6[/"?fabrication_method"/]
v2 --o bind6
bind6 --as--o v8
bind7[/"?fabrication_methodLabel"/]
v5 --o bind7
bind7 --as--o v9
bind8[/"?material_used"/]
v3 --o bind8
bind8 --as--o v10
bind9[/"?material_usedLabel"/]
v6 --o bind9
bind9 --as--o v11
bind10[/"?described_by_source"/]
v4 --o bind10
bind10 --as--o v12
bind11[/"?described_by_sourceLabel"/]
v7 --o bind11
bind11 --as--o v13