Skip to content

Use Case: Does DBpedia use PROV?

timrdf edited this page Jan 16, 2013 · 23 revisions

What is first

What we will cover

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.

Let's get to it!

Send http://datahub.io/dataset/dbpedia to http://aquarius.tw.rpi.edu/projects/datafaqs/services/sadi/ckan/lift-ckan to get a good RDF description (dereferencing the URI provides a good enough representation for the SPARQL endpoint, but doesn't provide other details very well.):

$ 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>
...

$ 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

What is next

Clone this wiki locally