Skip to content

Diff query #55

@markusgraube

Description

@markusgraube

Provide template for diff queries between two revisions with

  • added triples
  • deleted triples
  • same triples

Should be possible with

CONSTRUCT {
  GRAPH <added> { ?s_a ?p_a ?o_a}
  GRAPH <deleted> { ?s_d ?p_d ?o_d}
  GRAPH <same> { ?s_s ?p_s ?o_s}
}
WHERE {
  GRAPH <dataset> REVISION "2" {
   ?s_d ?p_d ?o_d.
   ?s_s ?p_s ?o_s.
  }
  GRAPH <dataset> REVISION "5" {
   ?s_a ?p_a ?o_a. 
   ?s_s ?p_s ?o_s.
  }
 MINUS {
    GRAPH <dataset> REVISION "5" {
      ?s_d ?p_d ?o_d.
    }
  }
MINUS {
    GRAPH <dataset> REVISION "2" {
      ?s_a ?p_a ?o_a.
    }
  }
}

Create a API for this query dependant on graph, from and to:

http://localhost:9998/r43ples/diff?graph=<dataset>&from=<revision1>&to=<revision2>

Optionally the request can be specified to a specific resource with the additional query fragment resource:

http://localhost:9998/r43ples/diff?graph=<dataset>&from=<revision1>&to=<revision2>&resource=<resource>

The result should provide a TRIG serialisation of the changes:

<added> {
  // added triples
}
<deleted> {
  //deleted triples
}
<same> {
  //same triples
}

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions