Relation between datasets and Named Graphs in the Triple Store
Named Graphs provide a mechanism to organise RDF triples into meaningful groups, since a Named Graph is a collection of RDF statements identified by a URI. Named Graphs are useful to organise the data in a Triple Store, and they also offer the possibility of recording the provenance of data in triples, since the URI of the named Graph can be the subject of more (metadata) triples.
The Named Graph and metadata mechanism is used at Open Data Euskadi to add provenance information to the RDF datasets generated from Open Data Euskadi datasets. Those datasets already have DCAT metadata, so the DCAT is "recycled" to obtain the metadata of the datasets that are created by converting existing Open Data Euskadi datasets to RDF (normally from CSV).
This excerpt from a DCAT file shows the appropriate triples (Not all the triples are shown):
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix dc: <http://purl.org/dc/terms/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix schema: <http://schema.org/> .
@prefix void: <http://rdfs.org/ns/void#> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .
# The main dataset has two distributions: a CSV file and the RDF stored in the Triple Store
<http://id.euskadi.eus/dataset/calidad-aire-en-euskadi-2017/> dcat:distribution
<http://id.euskadi.eus/distribution/calidad-aire-en-euskadi-2017/es/csv>,
<http://id.euskadi.eus/distribution/calidad-aire-en-euskadi-2017/lod> .
# CSV distribution
<http://id.euskadi.eus/distribution/calidad-aire-en-euskadi-2017/es/csv>
a dcat:Distribution ;
dc:format [
a dc:IMT ;
rdfs:label "CSV" ;
rdf:value "text/csv"
] ;
dcat:byteSize 0.0 ;
dcat:accessURL "http://id.euskadi.eus/contenidos/ds_informes_estudios/calidad_aire_2017/es_def/adjuntos/datos_diarios_csv.zip"^^xsd:anyURI ;
dc:title "Calidad del aire"@es .
# Linked Data distribution
<http://id.euskadi.eus/distribution/calidad-aire-en-euskadi-2017/lod> a dcat:Distribution, void:Dataset, schema:Distribution ;
sd:namedGraph <http://id.euskadi.eus/graph/calidad-aire-en-euskadi-2017>;
void:sparqlEndpoint <http://api.euskadi.eus/sparql/> ;
dc:modified "2008-11-17"^^xsd:date ;
dc:title "Calidad del aire Linked Data"@es .
This means that SPARQL can be used to query data and metadata.