Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provenance for query results #13

Open
micheldumontier opened this issue Aug 6, 2014 · 2 comments
Open

provenance for query results #13

micheldumontier opened this issue Aug 6, 2014 · 2 comments

Comments

@micheldumontier
Copy link
Member

I propose that we include the provenance for a REST call in the returned results. I suggest we offer quad-based nanopublications [1] with the resulting triples in an "assertion graph" and the provenance of how and where we got those triples in the "provenance graph". here is a quick mockeup:

 @prefix : <http://nanopublications.bio2rdf.org/> .
 @prefix np:  <http://www.nanopub.org/nschema#> .
 @prefix prov: <http://www.w3.org/ns/prov#> .
 @prefix xsd:  <http://www.w3.org/2001/XMLSchema#> .

 # nanopublication
 :np-uuid {
   np:hasPubInfo :np-pubinfo-uuid;
   np:hasAssertion :np-assertion-uuid;
   np:hasProvenance :np-provenance-uuid;
  }

 #  nanopublication metadata
 :np-pubinfo-uuid {
  dct:title "Bio2RDF SPARQL query nanopublication"; 
  prov:generatedAtTime  "YYYY-MM-DDTHH:MM:SSZ"^^xsd:dateTime;
  dct:publisher <http://bio2rdf.org>;
  dct:license <http://creativecommons.org/licenses/by/4.0/>;
  cito:citesAsAuthority {} . # bio2rdf publications here
 }

 # nanopublication assertion
 :np-assertion-uuid {
    # query triples here
  }

  # nanopublication provenance
 :np-provenance-uuid {
   :np-assertion-uuid pav:wasGeneratedBy :np-agent-uuid .
   :np-agent-uuid
      a :web-service; # find appropriate type 
      prov:startedAtTime "";
      prov:endedAtTime "";
      prov:specializationOf <http://bio2rdf.org>;
      prov:used bio2rdf:dataset1, bio2rdf:dataset2, ...  # versioned dataset graph uris
      prov:used :url_query_1, :url_query_2, ... # full URL of SPARQL queries for reproducibility.
 }

[1] http://www.nanopub.org/2013/WD-guidelines-20131215/

@vemonet
Copy link
Member

vemonet commented Aug 29, 2014

Sesame components developed, REST service handling nquads and graph provenance

@ansell
Copy link

ansell commented Aug 31, 2014

There are already Sesame components developed for nanopub (the reference implementation as far as I know!)

https://github.com/Nanopublication/nanopub-java

@vemonet vemonet removed their assignment May 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants