Patafisik
Joined 21 November 2012
Babel user information | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
Users by language |
Wikipedian, commoner and wikimedian activist.
This user is a member of WikiProject Italy. |
To do edit
- Wikidata:Request_a_query#From_PetScan_to_sparql_query
- Ci sono due palazzi Bentivoglio a Bologna, d:Q3093956 da sistemare
- edificio porticato del quartiere Barca (Q108040853) credo sia il Palazzo del Pane, che pero' coincide con l'elemento del MamBO - Museo d'arte moderna di Bologna (Q3867868)
- valuta merge d:Q106061287 e d:Q3669793
- coordinate TourER: forse soluzione è mettere il qualificatore "si applica a: entrance"? senza creare una nuova proprietà?
Problema doppie coordinate per merge edit
- pista di soluzione
- centro geografico - coordinates of geographic center (P5140)
- pista soluzione 2 (mia preferita) es. Q28003511#P625
coordinate location |
| |||||||||||||||||||||||
add value |
Memo edit
- data di fine: "valore sconosciuto" si ottiene usando i quadratini (simili a "valore preferito")
- #sitelinks-wikipedia
- elemento di una persona, es. Vincenza Viganò Mombelli (Q21001598)
place of burial |
| |||||||||||||||||||||||||||
add value |
Storiaememoriadibologna.it ID |
| ||||||||||||||
add value |
- chiedersi se "convento e chiesa di" e "chiesa di" per stessa chiesa, li trattiamo come Q106083156 + Q55109321 (uso parzialmente coincidente con) oppure se facciamo dei merge
- cerca ID chiesa nel codice sorgente di WeWeb:
data-id=
osercd=
- Wikidata:Tools/Enhance user interface Tool
- per produrre grafica con i link visualizzati a un elemento, sono i tre puntini di fianco al Q123456.
- separa Q3867868
- unire Q3868111 e Q64822142
- Wikidata:Bar#Link_rotti_P9327
- Wikidata:Requests for comment/How to avoid to use male form as a generic form in property labels in French ?
- meta:Community Wishlist Survey 2021/Bots and gadgets/Bibliographic bot for Wikidata > Citoid, reFill, User:Aude/citoid.js
- Certosa di Bologna su Reasonator, con molte info accessibili direttamente senza Query)
- Wikidata Lexeme Forms (sostantivo femminile italiano - sostantivo maschile italiano - aggettivo qualificativo italiano)
- chiedi a Ruthven perché non tutti i dati
- Wikidata:WikiProject Visual arts
- Wikidata:WikiProject sum of all paintings
- catalogo beni culturali del MIBACT > luogo di conservazione: Certosa Monumentale - Bologna 499 oggetti d'arte catalogati - fonte della banca dati è PatER bbcc.ibc.regione.emilia-romagna.it
- smista foto e info tra museo ed erbario/orto botanico Q1145112 e Q3133893 ( Category:Orto botanico ed erbario (Bologna) )
- plan view image > piantina in un elemento
- Ultimi cambiamenti legati a storiaememoria di Bologna (1 settimana)
- tutorial QuickStatements version 2
- match inverso per Tourer.it fino p.21 > Tourer catalogue ID 4297 (ex 4273)
- Wikipedia and Wikidata tools for Google Sheets
- Wikidata:Data_Import_Guide
- test mix'n'match [1]
- Wikidata Missing Pictures (offline) (come WikishootMe ma offline)
- merge Q55107419 e Q55107373?
- Q55103240 e Q55088286?
- coord e senso del Q35431468
- Proporre di aggiungere "cimitero monumentale" tra elementi accettati da P6379, nota vedi anche [2] (es. per Cimitero della Certosa, indicato tra le collezioni anche qui, indicato tra le collezioni da Istituzione Bologna Musei, "cimitero come museo")
- proporre proprietà per Museo del Risorgimento (Cimitero della Certosa), Salaborsa sito in CC-BY-SA 4.0 (es per Cartigli di Bologna, con coordinate, indirizzo e nome edifici) o dati culturali ER come fonti, esite già identificativo Tourer.it (P4133) e Webgis del Patrimonio culturale dell'Emilia-Romagna in corso cfr. es., es di uso Palazzo Dal Monte (Q25112736): +P4133 e +coord da salaborsa
- designazione del patrimonio (P1435) bene tutelato
- PatER ID per bbcc.ibc.regione.emilia-romagna.it, portale PatER in CC BY-NC-ND 3.0 (catalogo del patrimonio dell'Emilia-Romagna)
- Bologna Welcome Open Data (non tanti) (cfrhttp://dati.comune.bologna.it/bolognaopenmap Bologna Openmap] anche Bologna Openmap
- Mix-n-Match per ID Patrimonioculturale-ER (P4133) non possibile Searching external ID is not supported ?
- Label Collector
- User:Epìdosis/Queries/Exp
- Wikidata:List of properties/art
- Wikidata:Sistema_Cultura (qui si può confrontare la diversa situazione sulle biblioteche fra Toscana e altre regioni)
- Wikidata:WikiProject_Italy/Toscana_WLM/Manuale_Wikidata_per_WLM
- Mappa musei WMCH
- Wikidata:WikiProject Cultural heritage/Reports/WLM on WD (Italy)
- The International Museum Day Wikidata Competition 2020 - 3–18 May 2020 (Comunicazione sul Bar di it.wiki, Attività svolta)
- Category:GLAM WikiProjects
- Wikidata:Gruppo Wikidata per Musei, Archivi e Biblioteche - Category:Alla scoperta di Wikidata
- Collegare Wikidata al mondo: come si usa Mix'n'match (Commons; Youtube)
- I gadget: una risorsa per semplificare il lavoro su Wikidata (Commons; Youtube)
- Proporre nuovi identificativi su Wikidata (Commons; Youtube)
- Le interazioni tra VIAF e Wikidata (Commons; Youtube)
- Come è fatto un identificativo esterno su Wikidata (Commons; Youtube)
- Come usare il query service su Wikidata (Youtube)
- WikiBridge: vedere su Wikidata l'incipit delle voci di Wikipedia (Youtube)
- Impostare le preferenze e il common.js su Wikidata (Youtube)
Queries edit
#defaultView:Map{"hide": "?coords"}
#mappa dei musei
SELECT DISTINCT ?museum ?museumLabel (SAMPLE(?coords) AS ?coords) #(SAMPLE(?image) AS ?image)
?url ?layer WHERE {
?museum wdt:P31 ?type .?type wdt:P279? wd:Q33506. ?museum wdt:P625 ?coords
#OPTIONAL {?museum wdt:P18 ?image}
OPTIONAL {?museum wdt:P856 ?url}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
?museum rdfs:label ?museumLabel. ?type rdfs:label ?layer }
} GROUP BY ?museum ?museumLabel ?url ?layer
ORDER BY UCASE(?layer)
in corso (vorrei più valori per 3 tipi di entità dei Cartigli? ES; * Query Service le biblioteche in E-R con coordinate su Wikidata, di cui quelle aderenti al NILDE in altro colore (mappa) )
#mappa dei Cartigli di Bologna
#defaultView:Map
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?comuneLabel ?itemcoord ?layer1 ?layer2 ?layer3 WHERE {
{?item wdt:P31/wdt:P279* wd:Q811979} UNION {?item wdt:P31 wd:Q1437299 .} UNION {?item wdt:P31 wd:Q12284 .} UNION {?item wdt:P31 wd:Q22746 .} UNION {?item wdt:P31 wd:Q1107656 .}
?item p:P9327 ?statement0.
?statement0 (ps:P9327) _:anyValueP9327.
?item wdt:P131 ?comune .
?comune wdt:P625 ?comunecoord .
?item wdt:P625 ?itemcoord .
OPTIONAL { ?item wdt:P31/wdt:P279* wd:Q1437299 . BIND("CANALI" as ?layer2) } .
OPTIONAL { ?item wdt:P31/wdt:P279* wd:Q12284 . BIND("CANALI" as ?layer2) } .
OPTIONAL { ?item wdt:P31/wdt:P279* wd:Q22746 . BIND("GIARDINI PUBBLICI" as ?layer3) } .
OPTIONAL { ?item wdt:P31/wdt:P279* wd:Q1107656 . BIND("GIARDINI PUBBLICI" as ?layer3) } .
OPTIONAL { ?item wdt:P31/wdt:P279* wd:Q41176 . BIND("EDIFICI STORICI" as ?layer1) } .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en, it, fr, es, de". }
}
Altro edit
- NB gli oggetti della collezione sono su una carta ma non hanno coordinate: le coordinate sono date dalla città di scoperta, le coordinate sono quelle della città.
#title: Lieux de découverte des objets des collections du musée de Bretagne
#defaultView:Map
SELECT ?q ?qLabel ?locLabel ?coord WHERE {
?q wdt:P195 wd:Q3329701 ;
wdt:P189 ?loc .
?loc wdt:P625 ?coord .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". ?q rdfs:label ?qLabel . ?depeint rdfs:label ?depeintLabel }
}
- Solo Valle d'Aosta, querybuilder
#aree naturali protette della Valle d'Aosta su Wikidata, con EUAP senza la proprietà OpenStreetMap relation ID (P402) con voce su itwiki
SELECT DISTINCT ?item ?itemLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it". }
{
SELECT DISTINCT ?item WHERE {
?item p:P31 ?statement0.
?statement0 (ps:P31/(wdt:P279*)) wd:Q473972.
?item p:P131 ?statement4.
?statement4 (ps:P131/(wdt:P131*)) wd:Q1222.
?item p:P4800 ?statement3.
?statement3 (ps:P4800) _:anyValueP4800.
}
}
MINUS {
?item p:P402 ?statement2.
?statement2 (ps:P402) _:anyValueP402.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it". }
FILTER EXISTS { ?sitelink_it schema:about ?item;
schema:isPartOf <https://it.wikipedia.org/> .
}
}
LIMIT 100
#idem per parchi regionali Lazio
SELECT DISTINCT ?item ?itemLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it". }
{
SELECT DISTINCT ?item WHERE {
?item p:P31 ?statement0.
?statement0 (ps:P31/(wdt:P279*)) wd:Q6063204.
?item p:P131 ?statement4.
?statement4 (ps:P131/(wdt:P131*)) wd:Q1282.
?item p:P4800 ?statement3.
?statement3 (ps:P4800) _:anyValueP4800.
}
}
MINUS {
?item p:P402 ?statement2.
?statement2 (ps:P402) _:anyValueP402.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it". }
FILTER EXISTS { ?sitelink_it schema:about ?item;
schema:isPartOf <https://it.wikipedia.org/> .
}
}
LIMIT 100
#aree naturali protette italiane su Wikidata con EUAP senza la proprietà OpenStreetMap relation ID (P402) con voce su itwiki
SELECT DISTINCT ?item ?itemLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it". }
{
SELECT DISTINCT ?item WHERE {
?item p:P31 ?statement0.
?statement0 (ps:P31/(wdt:P279*)) wd:Q473972.
?item p:P17 ?statement1.
?statement1 (ps:P17/(wdt:P279*)) wd:Q38.
?item p:P4800 ?statement3.
?statement3 (ps:P4800) _:anyValueP4800.
}
}
MINUS {
?item p:P402 ?statement2.
?statement2 (ps:P402) _:anyValueP402.
}
?item p:P131 ?statement4.
?statement4 (ps:P131/(wdt:P131*)) wd:Q1222.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it". }
FILTER EXISTS { ?sitelink_it schema:about ?item;
schema:isPartOf <https://it.wikipedia.org/> .
}
}
LIMIT 100
#aree naturali protette italiane su Wikidata con EUAP senza la proprietà OpenStreetMap relation ID (P402) e senza voce su itwiki
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?sitelink_it ?sitelink_en ?sitelink_fr WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en, it, fr, es, de". }
{
SELECT DISTINCT ?item WHERE {
?item p:P31 ?statement0.
?statement0 (ps:P31/(wdt:P279*)) wd:Q473972.
?item p:P4800 ?statement1.
?statement1 (ps:P4800) _:anyValueP4800.
MINUS {
?item p:P402 ?statement2.
?statement2 (ps:P402) _:anyValueP402.
?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/> .
}
}
ORDER BY DESC (?sitelinks)
}
}
LIMIT 100
#mappa dei Cartigli di Bologna senza voce su itwiki
#defaultView:Map
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?comuneLabel ?itemcoord ?sitelink_it ?sitelink_en ?sitelink_fr WHERE {
{?item wdt:P31/wdt:P279* wd:Q811979} UNION {?item wdt:P31 wd:Q1437299 .}
?item p:P9327 ?statement0.
?statement0 (ps:P9327) _:anyValueP9327.
?item wdt:P131 ?comune .
?comune wdt:P625 ?comunecoord .
?item wdt:P625 ?itemcoord .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en, it, fr, es, de". }
MINUS {
?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/> .
}
}
ORDER BY DESC (?sitelinks)
LIMIT 100
#mappa dei Cartigli di Bologna
#defaultView:Map
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?comuneLabel ?itemcoord WHERE {
{?item wdt:P31/wdt:P279* wd:Q811979} UNION {?item wdt:P31 wd:Q1437299 .}
?item p:P9327 ?statement0.
?statement0 (ps:P9327) _:anyValueP9327.
?item wdt:P131 ?comune .
?comune wdt:P625 ?comunecoord .
?item wdt:P625 ?itemcoord .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en, it, fr, es, de". }
}
#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
}
}
#Elenco di donne presenti nel catalogo BEIC e su Wikipedia in francese ma non in italiano per tradurre la voce. La lista è ordinata per numero di lingue in cui la voce è presente.
SELECT ?item (COUNT(?sitelink) AS ?linkcount) WHERE {
?item wdt:P1343 wd:Q51955019 .
?item wdt:P21 wd:Q6581072 .
?sitelink schema:about ?item .
FILTER NOT EXISTS { ?wiki schema:about ?item; schema:isPartOf <https://it.wikipedia.org/> . }
FILTER EXISTS { ?sitelink_fr schema:about ?item;
schema:isPartOf <https://fr.wikipedia.org/> .
}
}
GROUP BY(?item)
ORDER BY DESC(?linkcount)
LIMIT 200
#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)
#Artisti presenti in Certosa i cui diritti d'autore non sono scaduti e che abbiano categoria su Commons
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:P6379 ?statement1.
?statement1 (ps:P6379/(wdt:P279*)) wd:Q3671680.
?item p:P7763 ?statement2.
?statement2 (ps:P7763/(wdt:P279*)) wd:Q73555012.
?item p:P373 ?statement3.
?statement3 (ps:P373) _:anyValueP373.
}
LIMIT 300
}
}
#Artisti presenti in Certosa
SELECT DISTINCT ?item ?itemLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,it,fr,es,de,ja". }
{
SELECT DISTINCT ?item WHERE {
?item p:P31 ?statement0.
?statement0 (ps:P31/(wdt:P279*)) wd:Q5.
?item p:P6379 ?statement1.
?statement1 (ps:P6379/(wdt:P279*)) wd:Q3671680.
?item p:
}
}
}
#title:Paintings once owned by Red Flag Names
#defaultView:ImageGrid
SELECT DISTINCT ?pic ?painting ?paintingLabel ?location ?locationLabel
WHERE
{
?painting wdt:P31 wd:Q3305213; #painting
wdt:P127 [ wdt:P1840 wd:Q30335959 ]. #the painting is owned by someone who is a red flag name
OPTIONAL {?painting wdt:P276 ?location.}
?painting wdt:P18 ?pic.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
#Donne sepolte alla Certosa di Bologna con elemento Wikidata ma senza voce su it.wiki
SELECT ?persona ?personaLabel ?personaDescription ?sitelink_it ?sitelink_en ?sitelink_fr
WHERE {
?persona wdt:P31 wd:Q5 .
?persona wdt:P21 wd:Q6581072 .
?persona wdt:P119 wd:Q3671680 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,it,fr". }
MINUS {
?sitelink_it schema:about ?persona;
schema:isPartOf <https://it.wikipedia.org/> .
}
optional {
?sitelink_fr schema:about ?persona;
schema:isPartOf <https://fr.wikipedia.org/> .
}
optional {
?sitelink_en schema:about ?persona;
schema:isPartOf <https://en.wikipedia.org/> .
}
}
ORDER BY DESC (?sitelinks)
LIMIT 100
#Artisti presenti in Certosa 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:P31 ?statement0.
?statement0 (ps:P31/(wdt:P279*)) wd:Q5.
?item p:P6379 ?statement1.
?statement1 (ps:P6379/(wdt:P279*)) wd:Q3671680.
}
}
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/> .
}
}
#Conservatori in Italia con elementi Wikidata e voce su Wikipedia
SELECT ?item ?itemLabel ?itemDescription ?sitelink_it ?sitelink_en ?sitelink_fr ?sitelink_de ?sitelink_es ?sitelink_ja WHERE
{?item wdt:P31 wd:Q184644.
?item wdt:P17 wd:Q38.
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/> .
}
}
#castelli in Emilia-Romagna presenti su Wikidata e con coordinate
#defaultView:Map
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?comuneLabel ?coord WHERE {
{?item wdt:P31/wdt:P279* wd:Q23413 } UNION {?item wdt:P31 wd:Q856584 .} UNION {?item wdt:P31 wd:Q17715832 .}
?item (wdt:P131)* wd:Q1263 .
?item wdt:P131 ?comune .
?comune wdt:P625 ?comunecoord .
OPTIONAL { ?item wdt:P625 ?itemcoord . }
BIND(IF(BOUND(?itemcoord),?itemcoord,?comunecoord) AS ?coord)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en, it, fr, es, de". }
}
3 tipi di richiesta, v1 e v2 da 84 risultati, v3 da 40 risultati.
valuta se ?item wdt:P131/wdt:P131/wdt:P131* wd:Q1263. corrisponde a ?item (wdt:P131)* wd:Q1263 .
v1
#biblioteche in Emilia-Romagna presenti su Wikidata, di cui alcuni con coordinate geografiche
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?comuneLabel ?coord WHERE {
{?item wdt:P31/wdt:P279* wd:Q7075} UNION {?item wdt:P31 wd:Q856584 .}
?item wdt:P131/wdt:P131/wdt:P131* wd:Q1263 .
?item wdt:P131 ?comune .
?comune wdt:P625 ?comunecoord .
OPTIONAL { ?item wdt:P625 ?itemcoord . }
BIND(IF(BOUND(?itemcoord),?itemcoord,?comunecoord) AS ?coord)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en, it, fr, es, de". }
}
v2
#biblioteche in Emilia-Romagna presenti su Wikidata e aderenti al NILDE
#defaultView:Map
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?comuneLabel ?coord WHERE {
{?item wdt:P31/wdt:P279* wd:Q7075} UNION {?item wdt:P31 wd:Q856584 .}
?item (wdt:P131)* wd:Q1263 .
?item wdt:P463 wd:Q21272726 .
?item wdt:P131 ?comune .
?comune wdt:P625 ?comunecoord .
OPTIONAL { ?item wdt:P625 ?itemcoord . }
BIND(IF(BOUND(?itemcoord),?itemcoord,?comunecoord) AS ?coord)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en, it, fr, es, de". }
}
v3 (solo biblioteche e non sottoinsiemi es biblioteche specializzate)
#Biblioteche dell'Emilia-Romagna aventi le coordinate geografiche su Wikidata
#defaultView:Map
SELECT DISTINCT ?i ?iLabel ?iDescription ?coord ?inst ?instLabel
WHERE {
VALUES ?instance { wd:Q7075 }
?i wdt:P31 ?instance .
?i (wdt:P131)* wd:Q1263 .
?i wdt:P131 ?inst .
?inst wdt:P625 ?instcoord .
OPTIONAL { ?i wdt:P625 ?icoord . }
BIND(IF(BOUND(?icoord),?icoord,?instcoord) AS ?coord)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it,enit,fr,es,de". }
}
#biblioteche in Emilia-Romagna di NILDE presenti su Wikidata
SELECT DISTINCT ?item ?itemLabel ?itemDescription ?comuneLabel WHERE {
{?item wdt:P31/wdt:P279* wd:Q7075} UNION {?item wdt:P31 wd:Q856584 .}
?item wdt:P131/wdt:P131/wdt:P131* wd:Q1263 .
?item wdt:P463 wd:Q21272726 .
?item wdt:P131 ?comune .
?comune wdt:P625 ?comunecoord .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en, it, fr, es, de". }
}
#elementi Wikidata con TourER ID e voce su Wikipedia
SELECT ?item ?itemLabel ?itemDescription ?tourerid ?sitelink_it ?sitelink_en ?sitelink_fr WHERE {
?item wdt:P4133 ?tourerid.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
optional {
?sitelink_it schema:about ?item;
schema:isPartOf <https://it.wikipedia.org/> .
}
optional {
?sitelink_en schema:about ?item;
schema:isPartOf <https://en.wikipedia.org/> .
}
optional {
?sitelink_fr schema:about ?item;
schema:isPartOf <https://fr.wikipedia.org/> .
}
}
order by xsd:integer(?tourerid)
#Scrittrici italiane senza firma su Wikidata
SELECT ?author ?authorLabel ?sitelinks WHERE {
?author wdt:P21 wd:Q6581072;
wdt:P106 wd:Q36180;
wdt:P570 ?died;
wikibase:sitelinks ?sitelinks.
MINUS { ?author wdt:P109 ?signature. }
OPTIONAL { ?wikisourcePage schema:about ?author. }
SERVICE wikibase:label { bd:serviceParam wikibase:language "it". }
?author wdt:P27 wd:Q38.
}
GROUP BY ?author ?authorLabel ?sitelinks
ORDER BY DESC (?sitelinks)
LIMIT 100
#donne non presenti su it.wiki ma su altre wiki? da en:Wikipedia:WikiProject_Women_in_Red/Number_of_links
SELECT ?item ?linkcount
WHERE {
hint:Query hint:optimizer "None".
hint:Query hint:maxParallel 50 .
hint:Query hint:chunkSize 1000 .
hint:Query hint:queryEngineChunkHandler "Native" . # Native/Managed
hint:Query hint:filterExists "VectoredSubPlan" . # SubQueryLimitOne/VectoredSubPlan
?item wdt:P21 wd:Q6581072 . # gender is female
?item wikibase:sitelinks ?linkcount .
FILTER ( ?linkcount >= 7 )
FILTER( ?item NOT IN (wd:Q4617, wd:Q180807, wd:Q234649, wd:Q237119, wd:Q264096, wd:Q270980, wd:Q326474, wd:Q464944, wd:Q468313, wd:Q8265475, wd:Q17413110, wd:Q19940498, wd:Q15397819, wd:Q13406268, wd:Q4115189)) # don’t count those who are redirects or any sandboxes
FILTER NOT EXISTS { ?wen schema:about ?item . ?wen schema:isPartOf <https://it.wikipedia.org/>. }
FILTER NOT EXISTS { ?item wdt:P106 wd:Q488111 } # don’t include porn actors
?item wdt:P31 wd:Q5 . # human
}
ORDER BY DESC(?linkcount)
LIMIT 100
- es. di bella presentazione grafica delle queries Wikidata:WikiProject France/Monuments historiques
#Luoghi della cultura che hanno la voce su it.wiki
SELECT ?luogoCultura ?luogoCulturaLabel ?luogoCulturaDescription ?UnitAmmLabel ?DBUnicoMiBACT ?page_titleIT
WHERE {
?luogoCultura wdt:P17 wd:Q38 .
?luogoCultura wdt:P5782 ?DBUnicoMiBACT .
?luogoCultura wdt:P131 ?UnitAmm .
?article schema:about ?luogoCultura ; schema:isPartOf <https://it.wikipedia.org/> ; schema:name ?page_titleIT .
?luogoCultura rdfs:label ?LabelIT filter (lang(?LabelIT) = "it") .
SERVICE wikibase:label { bd:serviceParam wikibase:language "it,en". }
}
LIMIT 100
#Luoghi della cultura senza voce su it.wiki (occhio ai falsi positivi)
SELECT ?luogoCultura ?luogoCulturaLabel ?luogoCulturaDescription ?UnitAmmLabel ?DBUnicoMiBACT ?page_titleIT
WHERE {
?luogoCultura wdt:P17 wd:Q38 .
?luogoCultura wdt:P5782 ?DBUnicoMiBACT .
?luogoCultura wdt:P131 ?UnitAmm .
MINUS { ?article schema:about ?luogoCultura ; schema:isPartOf <https://it.wikipedia.org/> ; schema:name ?page_titleIT .
?luogoCultura rdfs:label ?LabelIT filter (lang(?LabelIT) = "it") .
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "it,en". }
}
LIMIT 100
#Persone con opere nella collezione Certosa di Bologna
SELECT ?persona ?CertosaBo ?personaLabel ?personaDescription ?haopere
WHERE {
{?persona wdt:P31 wd:Q5 .}
?persona wdt:P6379 wd:Q3671680 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "it,en". }
}
LIMIT 500
#Luoghi della cultura del comune di Bologna senza voce su it.wiki (occhio ai falsi positivi)
SELECT ?luogoCultura ?luogoCulturaLabel ?luogoCulturaDescription ?UnitAmmLabel ?DBUnicoMiBACT ?page_titleIT
WHERE {
?luogoCultura wdt:P131 wd:Q1891 .
?luogoCultura wdt:P5782 ?DBUnicoMiBACT .
?luogoCultura wdt:P131 ?UnitAmm .
MINUS { ?article schema:about ?luogoCultura ; schema:isPartOf <https://it.wikipedia.org/> ; schema:name ?page_titleIT .
?luogoCultura rdfs:label ?LabelIT filter (lang(?LabelIT) = "it") .
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "it,en". }
}
LIMIT 100
#Cartigli di Bologna
SELECT ?edificio ?edificioLabel ?edificioDescription ?cartigli
WHERE {
{?edificio wdt:P31 wd:Q41176 .} UNION {?edificio wdt:P31 wd:Q16560 .} UNION {?edificio wdt:P31 wd:Q16970 .} UNION {?edificio wdt:P31 wd:Q2651004 .} UNION {?edificio wdt:P31 wd:Q12518 .} UNION {?edificio wdt:P31 wd:Q24398318 .} UNION {?edificio wdt:P31 wd:Q35112127 .}
?edificio wdt:P131 wd:Q1891 .
?edificio wdt:P9327 ?cartigli .
SERVICE wikibase:label { bd:serviceParam wikibase:language "it,en". }
}
#Doppioni Tourer.it > Unique value constraint report for P4133: report listing each item
SELECT DISTINCT ?item1 ?item1Label ?item2 ?item2Label ?value
{
?item1 wdt:P4133 ?value .
?item2 wdt:P4133 ?value .
FILTER( ?item1 != ?item2 && STR( ?item1 ) < STR( ?item2 ) ) .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } .
}
LIMIT 100
# Doppioni Tourer.it a Bologna > Unique value constraint report for P4133: report listing each item
SELECT DISTINCT ?item1 ?item1Label ?item2 ?item2Label ?value
{
?item1 wdt:P4133 ?value .
?item2 wdt:P4133 ?value .
?item1 (wdt:P131)* wd:Q1891
FILTER( ?item1 != ?item2 && STR( ?item1 ) < STR( ?item2 ) ) .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,it,fr" } .
}
LIMIT 100
#Palazzi, chiese ed edifici di Bologna presenti nel catalogo Tourer
SELECT ?edificio ?edificioLabel ?edificioDescription ?tourer
WHERE {
{?edificio wdt:P31 wd:Q41176 .} UNION {?edificio wdt:P31 wd:Q16560 .} UNION {?edificio wdt:P31 wd:Q16970 .} UNION {?edificio wdt:P31 wd:Q2651004 .} UNION {?edificio wdt:P31 wd:Q12518 .} UNION {?edificio wdt:P31 wd:Q24398318 .}
?edificio wdt:P131 wd:Q1891 .
?edificio wdt:P4133 ?tourer .
SERVICE wikibase:label { bd:serviceParam wikibase:language "it,en". }
}
LIMIT 100
#foto su commons per elementi WLM su wikidata (elementi di WLM che hanno una categoria connessa in Commons ma nessuna P18, e per cui almeno un'immagine in Commons riporta lo stesso ID WLM)
SELECT DISTINCT ?item ?imagelink WHERE {
?item wdt:P17 wd:Q38 .
?item wdt:P2186 ?wlmid .
?item wdt:P373 ?commons .
MINUS { ?item wdt:P18 ?image } .
BIND(CONCAT('"Wiki Loves Monuments Italia" insource:', ?wlmid) AS ?needle ) .
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:endpoint "commons.wikimedia.org" .
bd:serviceParam wikibase:api "Search" .
bd:serviceParam mwapi:srnamespace "6" .
bd:serviceParam mwapi:srsearch ?needle .
bd:serviceParam mwapi:srlimit "1" .
?image wikibase:apiOutput mwapi:title .
}
BIND(IRI(CONCAT('https://commons.wikimedia.org/wiki/', ?image)) AS ?imagelink ) .
}
LIMIT 100
- Musei dell'Emilia-Romagna
- cfr con 92 + 9 [3]
#Musei dell'Emilia-Romagna
#defaultView:Map
SELECT DISTINCT ?i ?iLabel ?iDescription ?coord ?inst ?instLabel
WHERE {
VALUES ?instance { wd:Q33506 }
?i wdt:P31 ?instance .
?i (wdt:P131)* wd:Q1263 .
?i wdt:P131 ?inst .
?inst wdt:P625 ?instcoord .
OPTIONAL { ?i wdt:P625 ?icoord . }
BIND(IF(BOUND(?icoord),?icoord,?instcoord) AS ?coord)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it,en". }
}
- Musei nella città metropolitana di Bologna
- cfr con 92 + 9 [4]
#Musei della città metropolitana di Bologna
#defaultView:Map
SELECT DISTINCT ?i ?iLabel ?iDescription ?coord ?inst ?instLabel
WHERE {
VALUES ?instance { wd:Q33506 }
?i wdt:P31 ?instance .
?i (wdt:P131)* wd:Q18288145 .
?i wdt:P131 ?inst .
?inst wdt:P625 ?instcoord .
OPTIONAL { ?i wdt:P625 ?icoord . }
BIND(IF(BOUND(?icoord),?icoord,?instcoord) AS ?coord)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it,en". }
}
- Musei di Bologna
- cfr con 41 [5]
- cfr con QAnswer museums in Bologna
#Musei di Bologna
#defaultView:Map
SELECT DISTINCT ?i ?iLabel ?iDescription ?coord ?inst ?instLabel
WHERE {
VALUES ?instance { wd:Q33506 }
?i wdt:P31 ?instance .
?i (wdt:P131)* wd:Q1891 .
?i wdt:P131 ?inst .
?inst wdt:P625 ?instcoord .
OPTIONAL { ?i wdt:P625 ?icoord . }
BIND(IF(BOUND(?icoord),?icoord,?instcoord) AS ?coord)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it,en". }
}
- Palazzi di Bologna
- cfr. 100 QAnswer Palaces in Bologna
- 261 risultati in Tourer.it
#Palazzi di Bologna
#defaultView:Map
SELECT DISTINCT ?i ?iLabel ?iDescription ?coord ?inst ?instLabel
WHERE {
VALUES ?instance { wd:Q16560 }
?i wdt:P31 ?instance .
?i (wdt:P131)* wd:Q1891 .
?i wdt:P131 ?inst .
?inst wdt:P625 ?instcoord .
OPTIONAL { ?i wdt:P625 ?icoord . }
BIND(IF(BOUND(?icoord),?icoord,?instcoord) AS ?coord)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it,en". }
}
- Certosa di Bologna
#Personaggi enciclopedici sepolti alla Certosa di Bologna
SELECT ?persona ?CertosaBo ?personaLabel ?personaDescription ?luogosepoltura
WHERE {
{?persona wdt:P31 wd:Q5 .}
?persona wdt:P119 wd:Q3671680 .
?luogosepoltura wdt:P119 ?CertosaBo .
SERVICE wikibase:label { bd:serviceParam wikibase:language "it,en". }
}
LIMIT 100
#Artisti con opere alla Certosa di Bologna
SELECT ?persona ?CertosaBo ?personaLabel ?personaDescription
WHERE {
{?persona wdt:P31 wd:Q5 .}
?persona wdt:P6379 wd:Q3671680 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "it,en,fr". }
}
LIMIT 500
#Artisti con opere alla Certosa di Bologna senza voce su it.wiki, e n. voci in altre lingue o progetti Wikimedia
SELECT ?item ?itemLabel ?cnt WHERE {
{
SELECT ?item (COUNT(?sitelink) AS ?cnt) WHERE {
?item wdt:P31 wd:Q5 .
?item wdt:P6379 wd:Q3671680 .
?sitelink schema:about ?item .
FILTER NOT EXISTS {
?article schema:about ?item .
?article schema:isPartOf <https://it.wikipedia.org/> . #Targeting Wikipedia language where subjects has no article.
}
} GROUP BY ?item ORDER BY DESC (?cnt) LIMIT 1000 #Sorted by amount of articles in other languages. Result limited to 1000 lines to not have a timeout error.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,fr,it,es,de" } #Service to resolve labels in (fallback) languages: automatic user language, English, French, Spanish, German.
} ORDER BY DESC (?cnt)
#Opere nalla collezione Certosa di Bologna
SELECT ?item ?itemLabel ?itemDescription
WHERE {
?item wdt:P195 wd:Q3671680.
{?item wdt:P31 wd:Q4989906 .} UNION {?item wdt:P31 wd:Q381885 .} UNION {?item wdt:P31 wd:Q173387 .} UNION {?item wdt:P31 wd:Q179700 .} UNION {?item wdt:P31 wd:Q6023295 .} UNION {?edificio wdt:P31 wd:Q219423 .}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,it,fr" } .
}
LIMIT 10
#Opere nalla collezione Certosa di Bologna - versione 2
SELECT DISTINCT ?item ?itemLabel ?itemDescription
WHERE {
?item wdt:P195/wdt:P361* wd:Q3671680
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,it,fr" } .
}
#Sepolti in Certosa di Bologna con immagini della tomba nell'elemento wikidata
#Domanda: perché non posso selezionare image grid a sx in alto alla lista dei risultati?
SELECT DISTINCT ?item ?itemLabel WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
{
SELECT DISTINCT ?item WHERE {
?item wdt:P119 wd:Q3671680.
?item p:P1442 ?statement0.
?statement0 (ps:P1442) _:anyValueP1442.
}
LIMIT 100
}
}
#Liste des petits monuments ayant un lien vers des catégories de Commons (soit un lien de site ou P373)
SELECT ?item ?comm ?p373 ?cat WHERE {
?item wdt:P131* wd:Q1891. # ... municipality ...
optional {?comm schema:about ?item ; schema:isPartOf <https://commons.wikimedia.org/> .}
BIND(replace(wikibase:decodeUri(SUBSTR(STR(?comm), 45)),"_"," ") AS ?comm_decode)
optional {?item wdt:P373 ?p373 .}
bind(COALESCE(?comm_decode, ?p373) as ?cat) .
VALUES ?trida { wd:Q1746392 wd:Q108325 wd:Q4989906 wd:Q10861631 wd:Q15077340 wd:Q1516537 wd:Q47008262 wd:Q179700} # chapel, small monument, memorial, belltower, memorial monument, technical monument, group of small monuments
?item wdt:P31/wdt:P279* ?trida. # small monument
}
#Lista di biblioteche con coordinate geografiche e accessibili ai disabili
#defaultView:Map
SELECT ?biblioth_que ?coordonn_es_g_ographiques WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?biblioth_que (wdt:P31/(wdt:P279*)) wd:Q7075.
OPTIONAL { }
OPTIONAL { ?biblioth_que wdt:P625 ?coordonn_es_g_ographiques. }
?biblioth_que wdt:P2846 wd:Q24192067.
OPTIONAL { }
}
LIMIT 100
Tools edit
- QuickStatements (Q20084080) https://tools.wmflabs.org/quickstatements/#/batch
- Mix'n'match (Q28054658) https://tools.wmflabs.org/mix-n-match/#/
- Crotos: opere nella collezione della Certosa di Bologna
#idem
SELECT DISTINCT ?item ?itemLabel ?statement1 WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],it,en". }
{
SELECT DISTINCT ?item WHERE {
?item p:P276 ?statement0.
?statement0 (ps:P276/(wdt:P279*)) wd:Q3671680.
?item p:P18 ?statement1.
?statement1 (ps:P18) _:anyValueP18.
}
LIMIT 100
}
}