query-80274eadf30373d1077a7c85df9a58f2
Propertiesinstance of (P31)file extension (P1195)media type (P1163)PRONOM file format ID (P2748)
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 ?item ?itemLabel ?ext ?media ?puid WHERE {
{ ?item wdt:P31 wd:Q18359031. }
UNION
{ ?item wdt:P31 wd:Q10715094. }
?item wdt:P1195 ?ext.
OPTIONAL { ?item wdt:P1163 ?media. }
OPTIONAL { ?item wdt:P2748 ?puid. }
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;
v2("?ext"):::projected
v1("?item"):::projected
v3("?media"):::projected
v4("?puid"):::projected
c3(["wd:Q10715094"]):::iri
c8(["bd:serviceParam"]):::iri
c2(["wd:Q18359031"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P31"--> c3
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P31"--> c2
end
union0r <== or ==> union0l
end
v1 --"wdt:P1195"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1163".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P2748".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end