plt-tud / r43ples

Revision Management for the Semantic Web
Other
19 stars 16 forks source link

New SPARQL revision interface via Query-Fragment #56

Closed markusgraube closed 7 years ago

markusgraube commented 7 years ago

Add new interface for specifying revisions via URL query fragment revision in Named Graph URI.

Besides

GRAPH <http://test.com/dataset> REVISION "2"

also following should be possible

GRAPH <http://test.com/dataset?revision=2>
Tyr3al commented 7 years ago

I have modified the two regular expressions that check and extract data from the SPARQL request. It should now be possible to use the two proposed versions.

I have tested the results with these two queries: SELECT * WHERE { GRAPH <http://test.com/r43ples-dataset-1> REVISION "2" { ?s ?p ?o } }

SELECT * WHERE { GRAPH <http://test.com/r43ples-dataset-1?revision=2> { ?s ?p ?o } }

The results were equal.

The modifications can be found in branch: 56_new_query_interface

markusgraube commented 7 years ago

I have opened PR #71 for your branch