SPARQL - Query Editor
Query di esempio
Con questa query è possibile ottenere la lista di tutti i dataset presenti nel catalogo
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX dct: <http://purl.org/dc/terms/>
SELECT ?dataset ?title
WHERE {
?catalog dcat:dataset ?dataset .
?dataset dct:title ?title .
}
Con questa query è possibile ottenere la lista di tutti gli editori che hanno partecipato alla pubblicazione dei datasets.
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
SELECT DISTINCT ?publisher ?name
WHERE {
?dataset dct:publisher ?publisher .
?publisher foaf:name ?name .
}
Con questa query è possibile ottenere la lista di tutti i datasets pubblicati nell'anno corrente
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?dataset ?modified
WHERE {
?dataset dct:modified ?modified .
FILTER (YEAR(?modified) = 2025)
}
Con questa query è possibile ottenere gli ultimi 10 datasets che sono stati pubblicati e/o hanno ricevuto aggiornamenti.
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?dataset ?modified
WHERE {
?dataset dct:modified ?modified .
}
ORDER BY DESC(?modified)
LIMIT 10
Con questa query è possibile ottenere tutti i datasets del catalogo a cui è stato attribuito il tema Governo e settore pubblico (GOVE). In questa pagina è possibile consultare la lista di tutti i temi di dati promossi da Docs Italia.
I temi utilizzati per classificare i dati si basano sull’uso del vocabolario controllato come indicato nella sezione «Temi del dataset dcat:theme».
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX dct: <http://purl.org/dc/terms/>
SELECT ?dataset ?title
WHERE {
?dataset dcat:theme ?theme .
FILTER (STRENDS(STR(?theme), "GOVE")) .
?dataset dct:title ?title .
}
Query Editor
xxxxxxxxxx
PREFIX dcat: <http://www.w3.org/ns/dcat#>
PREFIX dct: <http://purl.org/dc/terms/>