RDF.Diff.diff

You're seeing just the function diff, go back to RDF.Diff module for more information.
Link to this function

diff(original_rdf_data, new_rdf_data)

View Source

Specs

Computes a diff between two RDF.Graphs or RDF.Descriptions.

The first argument represents the original and the second argument the new version of the RDF data to be compared. Any combination of RDF.Graphs or RDF.Descriptions can be passed as first and second argument.

Examples

iex> RDF.Diff.diff( ...> RDF.description(EX.S1, init: {EX.S1, EX.p1, [EX.O1, EX.O2]}), ...> RDF.graph([ ...> {EX.S1, EX.p1, [EX.O2, EX.O3]}, ...> {EX.S2, EX.p2, EX.O4} ...> ])) %RDF.Diff{

additions: RDF.graph([
  {EX.S1, EX.p1, EX.O3},
  {EX.S2, EX.p2, EX.O4}
]),
deletions: RDF.graph({EX.S1, EX.p1, EX.O1})

}