RDF.Diff.diff
You're seeing just the function
diff
, go back to RDF.Diff module for more information.
Specs
diff(RDF.Description.t() | RDF.Graph.t(), RDF.Description.t() | RDF.Graph.t()) :: t()
Computes a diff between two RDF.Graph
s or RDF.Description
s.
The first argument represents the original and the second argument the new version
of the RDF data to be compared. Any combination of RDF.Graph
s or
RDF.Description
s 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})
}