query-7f43cd76659aab4b526731d70a6620fc

rq turtle/ttl

artisti nati o morti a Bologna, le cui opere siano nel Pubblico Dominio al 1° gennaio 2024 SELECT DISTINCT ?item ?itemLabel WHERE { SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". } { SELECT DISTINCT ?item WHERE { ?item p:P31 ?statement0. ?statement0 (ps:P31/(wdt:P279)) wd:Q5. ?item p:P570 ?statement_1. ?statement_1 psv:P570 ?statementValue_1. ?statementValue_1 wikibase:timePrecision ?precision_1. FILTER(?precision_1 >= 11 ) ?statementValue_1 wikibase:timeValue ?P570_1. FILTER(?P570_1 < "+1953-12-31T00:00:00Z"^^xsd:dateTime) { ?item p:P19 ?statement2. ?statement2 (ps:P19/(wdt:P279)) wd:Q1891. } UNION { ?item p:P20 ?statement3. ?statement3 (ps:P20/(wdt:P279)) wd:Q1891. } { ?item p:P106 ?statement4. ?statement4 (ps:P106/(wdt:P279)) wd:Q483501. } UNION { ?item p:P106 ?statement5. ?statement5 (ps:P106/(wdt:P279)) wd:Q1281618. } UNION { ?item p:P106 ?statement6. ?statement6 (ps:P106/(wdt:P279)) wd:Q1028181. } } LIMIT 100 } }

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 psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#artisti nati o morti a Bologna, le cui opere siano nel Pubblico Dominio al 1° gennaio 2024
SELECT DISTINCT ?item ?itemLabel WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
  {
    SELECT DISTINCT ?item WHERE {
      ?item p:P31 ?statement0.
      ?statement0 (ps:P31/(wdt:P279*)) wd:Q5.
      ?item p:P570 ?statement_1.
      ?statement_1 psv:P570 ?statementValue_1.
      ?statementValue_1 wikibase:timePrecision ?precision_1.
      FILTER(?precision_1 >= 11 )
      ?statementValue_1 wikibase:timeValue ?P570_1.
      FILTER(?P570_1 < "+1953-12-31T00:00:00Z"^^xsd:dateTime)
      {
        ?item p:P19 ?statement2.
        ?statement2 (ps:P19/(wdt:P279*)) wd:Q1891.
      }
      UNION
      {
        ?item p:P20 ?statement3.
        ?statement3 (ps:P20/(wdt:P279*)) wd:Q1891.
      }
      {
        ?item p:P106 ?statement4.
        ?statement4 (ps:P106/(wdt:P279*)) wd:Q483501.
      }
      UNION
      {
        ?item p:P106 ?statement5.
        ?statement5 (ps:P106/(wdt:P279*)) wd:Q1281618.
      }
      UNION
      {
        ?item p:P106 ?statement6.
        ?statement6 (ps:P106/(wdt:P279*)) wd:Q1028181.
      }
    }
    LIMIT 100
  }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?P570_1") v3("?item"):::projected v2("?precision_1") v4("?statement0") v7("?statement2") v8("?statement3") v9("?statement4") v10("?statement5") v11("?statement6") v6("?statementValue_1") v5("?statement_1") a1((" ")) a2((" ")) a3((" ")) a4((" ")) a5((" ")) a6((" ")) c22(["wd:Q483501"]):::iri c24(["wd:Q1028181"]):::iri c2(["bd:serviceParam"]):::iri c4(["#91;AUTO_LANGUAGE#93;"]):::literal c10(["wd:Q5"]):::iri c17(["wd:Q1891"]):::iri c23(["wd:Q1281618"]):::iri subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end f0[["?P570_1 < '+1953-12-31T00:00:00Z^^xsd:dateTime'"]] f0 --> v1 f1[["?precision_1 >= '11^^xsd:integer'"]] f1 --> v2 v3 --"p:P31"--> v4 v4 --"p:statement/P31"--> a1 a1 --"p:direct/P279"--> c10 v3 --"p:P570"--> v5 v5 --"p:statement/value/P570"--> v6 v6 --"wikibase:timePrecision"--> v2 v6 --"wikibase:timeValue"--> v1 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v3 --"p:P20"--> v8 v8 --"p:statement/P20"--> a3 a3 --"p:direct/P279"--> c17 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v3 --"p:P19"--> v7 v7 --"p:statement/P19"--> a2 a2 --"p:direct/P279"--> c17 end union0r <== or ==> union0l end subgraph union1[" Union "] subgraph union1l[" "] style union1l fill:#abf,stroke-dasharray: 3 3; subgraph union2[" Union "] subgraph union2l[" "] style union2l fill:#abf,stroke-dasharray: 3 3; v3 --"p:P106"--> v11 v11 --"p:statement/P106"--> a6 a6 --"p:direct/P279"--> c24 end subgraph union2r[" "] style union2r fill:#abf,stroke-dasharray: 3 3; v3 --"p:P106"--> v10 v10 --"p:statement/P106"--> a5 a5 --"p:direct/P279"--> c23 end union2r <== or ==> union2l end end subgraph union1r[" "] style union1r fill:#abf,stroke-dasharray: 3 3; v3 --"p:P106"--> v9 v9 --"p:statement/P106"--> a4 a4 --"p:direct/P279"--> c22 end union1r <== or ==> union1l end