timrdf/DataFAQs — Issue #89: % sparql select bindings
Author: timrdf
Created: 2012-02-28 14:27:31+00:00
State: open

logd data catalog use case

```
PREFIX conversion:
PREFIX dcterms:
PREFIX void:
PREFIX catalog:
SELECT *
WHERE {
GRAPH {
?dataset a conversion:Dataset .
?dataset conversion:dataset_identifier ?identifier .
?dataset dcterms:contributor ?contrib .
?dataset void:subset [
a conversion:VersionedDataset ;
void:subset ?layer
] .
{
?layer conversion:num_triples ?triples .
?layer void:dataDump ?dump_file.
} UNION {
?layer void:subset [ conversion:num_triples ?triples ] .
?layer void:dataDump ?dump_file.
}
}
GRAPH {
?dataset dcterms:title ?name .
?dataset dcterms:description ?description .
OPTIONAL { ?dataset catalog:source_agency [ rdfs:label ?agency ] . }
OPTIONAL { ?dataset catalog:dataset_category ?category . }
}
}
```