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(com.hp.hpl.jena.graph.Graph replacement,
java.util.stream.Stream<com.hp.hpl.jena.graph.Triple> original)
Diff a graph against a stream of triples
|
GraphDifferencer(com.hp.hpl.jena.rdf.model.Model replacement,
java.util.stream.Stream<com.hp.hpl.jena.graph.Triple> original)
Diff a Model against a stream of triples
|
| Modifier and Type | Method and Description |
|---|---|
java.util.stream.Stream<com.hp.hpl.jena.graph.Triple> |
common()
This method will return null until the source iterator is exhausted.
|
java.util.stream.Stream<com.hp.hpl.jena.graph.Triple> |
difference()
This method returns the difference between the two input sources.
|
java.util.stream.Stream<com.hp.hpl.jena.graph.Triple> |
notCommon()
This method will return null until the source iterator is exhausted.
|
public GraphDifferencer(com.hp.hpl.jena.rdf.model.Model replacement, java.util.stream.Stream<com.hp.hpl.jena.graph.Triple> original)
replacement - the replacementoriginal - the originalpublic GraphDifferencer(com.hp.hpl.jena.graph.Graph replacement, java.util.stream.Stream<com.hp.hpl.jena.graph.Triple> original)
replacement - the replacementoriginal - the originalpublic java.util.stream.Stream<com.hp.hpl.jena.graph.Triple> difference()
public java.util.stream.Stream<com.hp.hpl.jena.graph.Triple> common()
public java.util.stream.Stream<com.hp.hpl.jena.graph.Triple> notCommon()
Copyright © 2013-2016 DuraSpace, Inc.. All Rights Reserved.