public class RDFGraph extends Object implements Serializable
Constructor and Description |
---|
RDFGraph() |
Modifier and Type | Method and Description |
---|---|
void |
addTriple(RDFTriple triple) |
Map<RDFTriple,RDFResourceBlankNode> |
computeRemappingForSharedNodes() |
void |
dumpTriples(Writer w) |
Set<RDFTriple> |
getAllTriples() |
Set<RDFResourceBlankNode> |
getRootAnonymousNodes() |
Collection<RDFTriple> |
getTriplesForSubject(RDFNode subject) |
boolean |
isEmpty()
Determines if this graph is empty (i.e.
|
public boolean isEmpty()
true
if the graph contains triples, otherwise
false
public Collection<RDFTriple> getTriplesForSubject(RDFNode subject)
subject
- subjectpublic Map<RDFTriple,RDFResourceBlankNode> computeRemappingForSharedNodes()
@Nonnull public Set<RDFResourceBlankNode> getRootAnonymousNodes()
public void dumpTriples(@Nonnull Writer w) throws IOException
w
- writer to write toIOException
- if exceptions happenCopyright © 2017 The University of Manchester. All Rights Reserved.