Project:SPARQL/examples: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 18: | Line 18: | ||
<sparql tryit="1"> | <sparql tryit="1"> | ||
#title: Tutti i subfield creati | #title: Tutti i subfield creati | ||
SELECT ?tagLabel ?subfield ?subfieldLabel ?subfieldAltLabel ?occurrenceLabel ?repeatabilityLabel | |||
SELECT ?tagLabel ?subfield ?subfieldLabel ?subfieldAltLabel | |||
WHERE | WHERE | ||
{ | { | ||
?subfield uni2bfwdt:P1 uni2bfwd:Q2059 . | ?subfield uni2bfwdt:P1 uni2bfwd:Q2059 . | ||
OPTIONAL {?subfield uni2bfwdt:P6 ?occurrence ; uni2bfwdt:P7 ?repeatability .} | |||
?subfield uni2bfwdt:P4 ?tag . | ?subfield uni2bfwdt:P4 ?tag . | ||
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } | SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } |
Revision as of 12:23, 12 February 2024
Tag UNIMARC che non hanno istanza di tag bibliografico
#title:item di tag UNIMARC che non hanno istanza di tag bibliografico
PREFIX uni2bfwd: <https://unimarc2bibframe.wikibase.cloud/entity/>
PREFIX uni2bfwdt: <https://unimarc2bibframe.wikibase.cloud/prop/direct/>
SELECT ?item ?itemLabel ?blockLabel
WHERE
{
?item uni2bfwdt:P4 ?block .
MINUS {?item uni2bfwdt:P1 uni2bfwd:Q125 .}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ?block
Tutti i sottocampi creati
#title: Tutti i subfield creati
SELECT ?tagLabel ?subfield ?subfieldLabel ?subfieldAltLabel ?occurrenceLabel ?repeatabilityLabel
WHERE
{
?subfield uni2bfwdt:P1 uni2bfwd:Q2059 .
OPTIONAL {?subfield uni2bfwdt:P6 ?occurrence ; uni2bfwdt:P7 ?repeatability .}
?subfield uni2bfwdt:P4 ?tag .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ?subfieldAltLabel ?subfieldLabel
Tutti gli elementi che contengono P5(aggiornamento utilizzato) ordinati per numero di dichiarazioni
#title: Tutti gli elementi che contengono P5(aggiornamento utilizzato) ordinati per numero di dichiarazioni decrescente
PREFIX uni2bfwd: <https://unimarc2bibframe.wikibase.cloud/entity/>
PREFIX uni2bfwdt: <https://unimarc2bibframe.wikibase.cloud/prop/direct/>
select ?item ?itemLabel ?itemDescription ?itemAltLabel ?update_year ?statements
WHERE
{
?item uni2bfwdt:P5 ?update_used .
?item wikibase:statements ?statements .
BIND(YEAR(?update_used) as ?update_year)
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
ORDER BY DESC (?statements)
Tag senza Aggiornamento utilizzato (P5)
#title: Tag che non contengono P5(aggiornamento utilizzato)
PREFIX uni2bfwd: <https://unimarc2bibframe.wikibase.cloud/entity/>
PREFIX uni2bfwdt: <https://unimarc2bibframe.wikibase.cloud/prop/direct/>
select ?item ?itemLabel
WHERE
{
?item uni2bfwdt:P1 uni2bfwd:Q125 .
MINUS {?item uni2bfwdt:P5 ?update_used .}
SERVICE wikibase:label { bd:serviceParam wikibase:language "it,fr,en". }
}
Tag del blocco 5-- senza Aggiornamento utilizzato (P5)
#title: Tag blocco 5-- senza Aggionramento utilizzato (P5)
PREFIX uni2bfwd: <https://unimarc2bibframe.wikibase.cloud/entity/>
PREFIX uni2bfwdt: <https://unimarc2bibframe.wikibase.cloud/prop/direct/>
SELECT ?item ?itemLabel ?itemDescription
WHERE
{
?item uni2bfwdt:P4 uni2bfwd:Q89 .
MINUS {?item uni2bfwdt:P5 ?update .}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,fr,it". }
}
ORDER BY ?item
Tutti i tag non ripetibili con relativa occorrenza(P6)
#title: Tutti i tag non ripetibili con relativa occorrenza(P6)
PREFIX uni2bfwd: <https://unimarc2bibframe.wikibase.cloud/entity/>
PREFIX uni2bfwdt: <https://unimarc2bibframe.wikibase.cloud/prop/direct/>
SELECT ?item ?itemLabel ?itemDescription ?occurrenceLabel
WHERE
{
?item uni2bfwdt:P7 uni2bfwd:Q22 ;
uni2bfwdt:P6 ?occurrence .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Tutti i tag del blocco 1--
#title: Tutti i tag del blocco 1--
PREFIX uni2bfwd: <https://unimarc2bibframe.wikibase.cloud/entity/>
PREFIX uni2bfwdt: <https://unimarc2bibframe.wikibase.cloud/prop/direct/>
SELECT ?item ?itemLabel ?itemDescription ?occurrenceLabel ?repeatabilityLabel ?update_year
WHERE
{
?item uni2bfwdt:P4 uni2bfwd:Q11 .
OPTIONAL {?item uni2bfwdt:P6 ?occurrence .}
OPTIONAL {?item uni2bfwdt:P7 ?repeatability .}
OPTIONAL {?item uni2bfwdt:P5 ?update_used .}
BIND(YEAR(?update_used) as ?update_year)
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,fr,it". }
}
ORDER BY ?item
Tutti i subfield del tag 210
#title: Tutti i subfield del tag 210 (Q2029)
PREFIX uni2bfwd: <https://unimarc2bibframe.wikibase.cloud/entity/>
PREFIX uni2bfwdt: <https://unimarc2bibframe.wikibase.cloud/prop/direct/>
SELECT ?tag ?tagLabel ?subfield ?subfieldLabel ?repeatabilityLabel
WHERE
{
?subfield uni2bfwdt:P4 uni2bfwd:Q2029;
uni2bfwdt:P7 ?repeatability.
?tag uni2bfwdt:P3 ?subfield .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Aggiornamenti dei tag del blocco 2-- come timeline
#defaultView:Timeline
#title: Timeline aggiornamenti dei tag del blocco 2--
PREFIX uni2bfwd: <https://unimarc2bibframe.wikibase.cloud/entity/>
PREFIX uni2bfwdt: <https://unimarc2bibframe.wikibase.cloud/prop/direct/>
SELECT ?itemLabel ?update_used
WHERE
{
?item uni2bfwdt:P4 uni2bfwd:Q12 .
OPTIONAL {?item uni2bfwdt:P6 ?occurrence .}
OPTIONAL {?item uni2bfwdt:P7 ?repeatability .}
OPTIONAL {?item uni2bfwdt:P5 ?update_used .}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,fr,it". }
}
ORDER BY ?item