query-66d37d213290cd14f9ba000ae4a76113

rq turtle/ttl

Propertiesinstance of (P31)subclass of (P279)readable file format (P1072)inception (P571)publication date (P577)

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#>
SELECT DISTINCT ?format ?formatLabel ?time 
WHERE {
  ?format wdt:P31/wdt:P279* wd:Q235557.
  ?app wdt:P1072 ?format.
  OPTIONAL {?format wdt:P571 ?date}.
  OPTIONAL {?format wdt:P577 ?pub}.
  BIND (?date AS ?time)
  BIND (?pub AS ?time)
  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("?app") v3("?date") v1("?format"):::projected v4("?pub") v6("?time"):::projected a1((" ")) c3(["wd:Q235557"]):::iri c8(["bd:serviceParam"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v2 --"wdt:P1072"--> v1 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P571".-> v3 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P577".-> v4 end bind0[/"?date"/] v3 --o bind0 bind0 --as--o v6 bind1[/"?pub"/] v4 --o bind1 bind1 --as--o v6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end