-
Notifications
You must be signed in to change notification settings - Fork 7
Use Case: Does DBpedia use PROV?
This page describes how to use DataFAQs to determine which -- if any -- PROV-O terms are asserted in DBPedia's SPARQL endpoint. It shows how to reuse existing Linked Data and [SADI](SADI Semantic Web Services framework) services to answer the question. BTW, the answer is that DBPedia only uses http://www.w3.org/ns/prov#wasDerivedFrom, and it uses it 11,547,302 times.
First, we need to find out where DBPedia's SPARQL endpoint is, and we can find that out using Linked Data. Dereference DBPedia's URI to find out:
$ curl -H "Accept: text/turtle" -L http://datahub.io/dataset/dbpedia
<dcat:Dataset rdf:about="http://datahub.io/dataset/dbpedia">
...
<dcat:distribution>
<dcat:Distribution>
<dcat:accessURL rdf:resource="http://dbpedia.org/sparql"></dcat:accessURL>
<dct:format>
<dct:IMT>
<rdf:value>api/sparql</rdf:value>
<rdfs:label>api/sparql</rdfs:label>
</dct:IMT>
</dct:format>
</dcat:Distribution>
</dcat:distribution>
...
Because CKAN doesn't always provide the best structured RDF, we can POST DBPedia's URI (http://datahub.io/dataset/dbpedia) to the SADI service that does provide a nice RDF description: http://aquarius.tw.rpi.edu/projects/datafaqs/services/sadi/ckan/lift-ckan (dereferencing the URI provides a good enough representation for the SPARQL endpoint, but doesn't provide other details very well.):
$ cat dbpedia.ttl
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix datafaqs: <http://purl.org/twc/vocab/datafaqs#> .
<http://datahub.io/dataset/dbpedia> a dcat:Dataset, datafaqs:CKANDataset;
$ curl -H "Content-Type: text/turtle" -d @dbpedia.ttl http://aquarius.tw.rpi.edu/projects/datafaqs/services/sadi/ckan/lift-ckan
<http://datahub.io/dataset/dbpedia> a datafaqs:CKANDataset;
...
void:sparqlEndpoint <http://dbpedia.org/sparql>;
...
http://aquarius.tw.rpi.edu/projects/datafaqs/services/sadi/faqt/vocabulary/uses/prov