query-343a7846a0ef582b095658754023fa29

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT distinct ?item ?itemLabel ?itemdesc ?creat  ?dissolution  WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en,fr". }
#  values ?item {wd:Q101104073}
  ?item wdt:P31/wdt:P279* wd:Q3024240.
  OPTIONAL { ?item wdt:P571 ?creat. }
  OPTIONAL { ?item wdt:P576 ?dissolution. }
  OPTIONAL {?item schema:description ?itemdesc . FILTER((LANG(?itemdesc)) = "fr") BIND (TRUE as ?true) }
  OPTIONAL {?item schema:description ?itemdesc2 . FILTER((LANG(?itemdesc2)) = "en") BIND (TRUE as ?true) }
  OPTIONAL { FILTER NOT EXISTS {?item schema:description ?itemdesc .} BIND (TRUE as ?true)}
  filter(BOUND(?true))
} order by ?creat

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?creat"):::projected v6("?dissolution"):::projected v3("?item"):::projected v4("?itemdesc"):::projected v5("?itemdesc2") v7("?true") a1((" ")) c10(["wd:Q3024240"]):::iri c5(["bd:serviceParam"]):::iri c7(["en,fr"]):::literal f0[["bound(?true)"]] f0 --> v7 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end v3 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c10 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P571".-> v1 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P576".-> v6 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v3 -."schema:description".-> v4 bind1[/"'true^^xsd:boolean'"/] bind1 --as--o v7 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v3 -."schema:description".-> v5 bind2[/"'true^^xsd:boolean'"/] bind2 --as--o v7 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; bind3[/"'true^^xsd:boolean'"/] bind3 --as--o v7 end