public class GraphDifferencer extends Object
Stream
that calculates two differences between a
Graph
A and a source Stream B. The differences are (A - (A ∩ B)) and
(B - (A ∩ B)). The ordinary output of this stream is (B - (A ∩ B)), and
after exhaustion, sets containing (A - (A ∩ B)) and (A ∩ B) are available.Constructor and Description |
---|
GraphDifferencer(org.apache.jena.graph.Graph replacement,
Stream<org.apache.jena.graph.Triple> original)
Diff a graph against a stream of triples
|
GraphDifferencer(org.apache.jena.rdf.model.Model replacement,
Stream<org.apache.jena.graph.Triple> original)
Diff a Model against a stream of triples
|
Modifier and Type | Method and Description |
---|---|
Stream<org.apache.jena.graph.Triple> |
common()
This method will return null until the source iterator is exhausted.
|
Stream<org.apache.jena.graph.Triple> |
difference()
This method returns the difference between the two input sources.
|
Stream<org.apache.jena.graph.Triple> |
notCommon()
This method will return null until the source iterator is exhausted.
|
public GraphDifferencer(org.apache.jena.rdf.model.Model replacement, Stream<org.apache.jena.graph.Triple> original)
replacement
- the replacementoriginal
- the originalpublic GraphDifferencer(org.apache.jena.graph.Graph replacement, Stream<org.apache.jena.graph.Triple> original)
replacement
- the replacementoriginal
- the originalpublic Stream<org.apache.jena.graph.Triple> difference()
public Stream<org.apache.jena.graph.Triple> common()
Copyright © 2013–2019 DuraSpace, Inc.. All rights reserved.