query-80a7becd3331a37cb27dec49e3d14d78

rq turtle/ttl

item con identificativo dei Cartigli di Bologna nelle edizioni linguistiche SELECT DISTINCT ?item ?itemLabel ?sitelink_it ?sitelink_en ?sitelink_fr ?sitelink_de ?sitelink_es ?sitelink_ja WHERE { SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,it,fr,es,de,ja". } { SELECT DISTINCT ?item WHERE { ?item p:P9327 ?statement0. ?statement0 (ps:P9327) _:anyValueP9327. } } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,it,fr,es,de,ja". } optional { ?sitelink_it schema:about ?item; schema:isPartOf https://it.wikipedia.org/ . } optional { ?sitelink_fr schema:about ?item; schema:isPartOf https://fr.wikipedia.org/ . } optional { ?sitelink_en schema:about ?item; schema:isPartOf https://en.wikipedia.org/ . } optional { ?sitelink_de schema:about ?item; schema:isPartOf https://de.wikipedia.org/ . } optional { ?sitelink_ja schema:about ?item; schema:isPartOf https://ja.wikipedia.org/ . } optional { ?sitelink_es schema:about ?item; schema:isPartOf https://es.wikipedia.org/ . } } ORDER BY DESC (?sitelinks)

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX schema: <http://schema.org/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#item con identificativo dei Cartigli di Bologna nelle edizioni linguistiche
SELECT DISTINCT ?item ?itemLabel ?sitelink_it ?sitelink_en ?sitelink_fr ?sitelink_de ?sitelink_es ?sitelink_ja WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,it,fr,es,de,ja". }
  {
    SELECT DISTINCT ?item WHERE {
      ?item p:P9327 ?statement0.
      ?statement0 (ps:P9327) _:anyValueP9327.
    }
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,it,fr,es,de,ja". }
  optional {
      ?sitelink_it schema:about ?item;
                schema:isPartOf <https://it.wikipedia.org/> .
    }
  optional {
      ?sitelink_fr schema:about ?item;
                schema:isPartOf <https://fr.wikipedia.org/> .
    }
  optional {
      ?sitelink_en schema:about ?item;
                schema:isPartOf <https://en.wikipedia.org/> .
    }
  optional {
      ?sitelink_de schema:about ?item;
                schema:isPartOf <https://de.wikipedia.org/> .
    }
  optional {
      ?sitelink_ja schema:about ?item;
                schema:isPartOf <https://ja.wikipedia.org/> .
    }
  optional {
      ?sitelink_es schema:about ?item;
                schema:isPartOf <https://es.wikipedia.org/> .
    }
  }
  ORDER BY DESC (?sitelinks)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?item"):::projected v7("?sitelink_de"):::projected v6("?sitelink_en"):::projected v9("?sitelink_es"):::projected v5("?sitelink_fr"):::projected v4("?sitelink_it"):::projected v8("?sitelink_ja"):::projected v1("?sitelinks") v3("?statement0") a1((" ")) c12([https://de.wikipedia.org/]):::iri c10([https://fr.wikipedia.org/]):::iri c9([https://it.wikipedia.org/]):::iri c11([https://en.wikipedia.org/]):::iri c2(["bd:serviceParam"]):::iri c14([https://es.wikipedia.org/]):::iri c13([https://ja.wikipedia.org/]):::iri c4(["#91;AUTO_LANGUAGE#93;,en,it,fr,es,de,ja"]):::literal subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end v2 --"p:P9327"--> v3 v3 --"p:statement/P9327"--> a1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v4 -."schema:about".-> v2 v4 --"schema:isPartOf"--> c9 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v5 -."schema:about".-> v2 v5 --"schema:isPartOf"--> c10 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v6 -."schema:about".-> v2 v6 --"schema:isPartOf"--> c11 end subgraph optional3["(optional)"] style optional3 fill:#bbf,stroke-dasharray: 5 5; v7 -."schema:about".-> v2 v7 --"schema:isPartOf"--> c12 end subgraph optional4["(optional)"] style optional4 fill:#bbf,stroke-dasharray: 5 5; v8 -."schema:about".-> v2 v8 --"schema:isPartOf"--> c13 end subgraph optional5["(optional)"] style optional5 fill:#bbf,stroke-dasharray: 5 5; v9 -."schema:about".-> v2 v9 --"schema:isPartOf"--> c14 end