plt-tud / r43ples

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

HTTP Header revision information as full graph #31

Closed markusgraube closed 9 years ago

markusgraube commented 9 years ago

Perhaps it is better to provide a RDF revision graph in the HTTP response header than to split into multiple columns with the necessity to parse these fields correctly.

Not a full graph is required. Only the revisions for all tags and branches is necessary with their revisionnumber.

For example this field could be named r43ples-revisiongraph with the content:

@prefix rdf:    <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix test:    <http://test.com/> .
@prefix rmo:    <http://eatld.et.tu-dresden.de/rmo#> .
@prefix rdfs:   <http://www.w3.org/2000/01/rdf-schema#> .

test:r43ples-dataset-merging-master rdf:type rmo:Master, rmo:Branch , rmo:Reference ;
       rdfs:label   "master" ;
    rmo:references  test:r43ples-dataset-merging-revision-1 .

test:r43ples-dataset-merging-revision-1  rdf:type    rmo:Revision ;
    rmo:revisionOf  test:r43ples-dataset-merging ;
    rmo:revisionNumber  "1" .

test:r43ples-dataset-merging-branch-B1   rdf:type    rmo:Branch , rmo:Reference ;
    rdfs:label  "B1" ;
    rmo:references  <http://test.com/r43ples-dataset-merging-revision-1.0-1>  .

test:r43ples-dataset-merging-revision-1.0-1 rdf:type    rmo:Revision ;
    rmo:revisionOf  test:r43ples-dataset-merging ;
    rmo:revisionNumber  "1.0-1" .

test:r43ples-dataset-merging-branch-B2   rdf:type    rmo:Branch , rmo:Reference ;
    rdfs:label  "B2" ;
    rmo:references  <http://test.com/r43ples-dataset-merging-revision-1.1-2> .

test:r43ples-dataset-merging-revision-1.1-2    rdf:type    rmo:Revision ;
    rmo:revisionOf  test:r43ples-dataset-merging ;
    rmo:revisionNumber  "1.1-2" .
markusgraube commented 9 years ago

Another option would be

@prefix rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix test: <http://test.com/> .
@prefix rmo:  <http://eatld.et.tu-dresden.de/rmo#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

[] rdf:type rmo:Master, rmo:Branch ;
  rdfs:label   "master" ;
  rmo:references  [
    rmo:revisionOf  test:r43ples-dataset-merging ;
    rmo:revisionNumber  "1" .
  ].

[] rdf:type rmo:Branch ;
  rdfs:label  "B1" ;
  rmo:references  [
    rmo:revisionOf  test:r43ples-dataset-merging ;
    rmo:revisionNumber  "1.0-1" .
  ] .

[] rdf:type rmo:Branch ;
  rdfs:label  "B2" ;
  rmo:references  [
    rmo:revisionOf  test:r43ples-dataset-merging ;
    rmo:revisionNumber  "1.1-2"
  ]