query-84fb2e73608c43ba36c4fe15abf9dc35
Propertiesinstance of (P31)subclass of (P279)has use (P366)readable file format (P1072)file extension (P1195)PRONOM file format ID (P2748)Library of Congress Format Description Document ID (P3266)
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 bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?format ?formatLabel ?ext ?puid ?fdd
WHERE
{
{?item wdt:P31/wdt:P279* wd:Q2115026.}
UNION {?item wdt:P366 wd:Q2115026.}
?item wdt:P1072 ?format.
OPTIONAL {?format wdt:P1195 ?ext.}
OPTIONAL {?format wdt:P2748 ?puid.}
OPTIONAL {?format wdt:P3266 ?fdd.}
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;
v3("?ext"):::projected
v5("?fdd"):::projected
v2("?format"):::projected
v1("?item")
v4("?puid"):::projected
a1((" "))
c3(["wd:Q2115026"]):::iri
c10(["bd:serviceParam"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P366"--> c3
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
end
union0r <== or ==> union0l
end
v1 --"wdt:P1072"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P1195".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P2748".-> v4
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P3266".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end