query-34eaa3956f30c9c5369f03c4ac995a25

rq turtle/ttl

Raster graphics editor software and the file formats they can open, option PRONOM id for the format SELECT DISTINCT ?item ?itemLabel ?format ?formatLabel ?puid WHERE { {?item wdt:P31 wd:Q2351962 ; wdt:P1072 ?format. OPTIONAL {?format wdt:P2748 ?puid}.} UNION {?item wdt:P31 wd:Q2351962 ; wdt:P1072 ?format. ?format wdt:P527 ?part. ?part wdt:P2748 ?puid. } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }

Use at

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#>
#Raster graphics editor software and the file formats they can open, option PRONOM id for the format
SELECT DISTINCT ?item ?itemLabel ?format ?formatLabel ?puid 
WHERE 
{
  {?item wdt:P31 wd:Q2351962 ;
        wdt:P1072 ?format. 
  OPTIONAL {?format wdt:P2748 ?puid}.}
  UNION
  {?item wdt:P31 wd:Q2351962 ;
        wdt:P1072 ?format. 
  ?format wdt:P527 ?part.
  ?part 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("?format"):::projected v1("?item"):::projected v4("?part") v3("?puid"):::projected c7(["bd:serviceParam"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal c2(["wd:Q2351962"]):::iri subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c2 v1 --"wdt:P1072"--> v2 v2 --"wdt:P527"--> v4 v4 --"wdt:P2748"--> v3 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 --"wdt:P31"--> c2 v1 --"wdt:P1072"--> v2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P2748".-> v3 end end union0r <== or ==> union0l end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end