query-789f5cf9c6e0baee8858589d2d3ea477

rq turtle/ttl

Elenco di romanzieri italiani nati nel 900 in ordine di data di nascita, con eventuale pagina di Wikipedia SELECT ?item ?itemLabel ?ddn ?cc WHERE {

?item wdt:P31 wd:Q5 . ?item wdt:P106 wd:Q6625963 . ?item wdt:P569 ?ddn . ?item wdt:P27 wd:Q38 . OPTIONAL { ?item wdt:P8248 ?cc . }

OPTIONAL { ?wkp schema:about ?item. FILTER(REGEX(STR(?wkp), "it.wikipedia.org")) }

FILTER((?ddn >= "1900-01-01T00:00:00Z"^^xsd:dateTime) && (?ddn<="1999-12-31T00:00:00Z"^^xsd:dateTime)) SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } ORDER BY ?ddn

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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#>
# Elenco di romanzieri italiani nati nel 900 in ordine di data di nascita, con eventuale pagina di Wikipedia
SELECT ?item ?itemLabel ?ddn ?cc WHERE {

  ?item wdt:P31 wd:Q5 .
  ?item wdt:P106 wd:Q6625963 .
  ?item wdt:P569 ?ddn .
  ?item wdt:P27 wd:Q38 .
  OPTIONAL { ?item wdt:P8248 ?cc . }

  OPTIONAL {
    ?wkp schema:about ?item.
    FILTER(REGEX(STR(?wkp), "it.wikipedia.org"))
  }

  FILTER((?ddn >= "1900-01-01T00:00:00Z"^^xsd:dateTime) && (?ddn<="1999-12-31T00:00:00Z"^^xsd:dateTime))
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ?ddn

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?cc"):::projected v1("?ddn"):::projected v3("?item"):::projected v2("?wkp") c7(["wd:Q6625963"]):::iri c10(["wd:Q38"]):::iri c14(["bd:serviceParam"]):::iri c5(["wd:Q5"]):::iri c16(["#91;AUTO_LANGUAGE#93;,en"]):::literal f0[["?ddn >= '1900-01-01T00:00:00Z^^xsd:dateTime'?ddn <= '1999-12-31T00:00:00Z^^xsd:dateTime'"]] f0 --> v1 v3 --"wdt:P31"--> c5 v3 --"wdt:P106"--> c7 v3 --"wdt:P569"--> v1 v3 --"wdt:P27"--> c10 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wdt:P8248".-> v4 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v2 -."schema:about".-> v3 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c14 --"wikibase:language"--> c16 end