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 falsepublic void addTriple(RDFTriple triple)
triple - triple to addpublic Collection<RDFTriple> getTriplesForSubject(RDFNode subject)
subject - subjectpublic Map<RDFTriple,RDFResourceBlankNode> computeRemappingForSharedNodes()
public Set<RDFResourceBlankNode> getRootAnonymousNodes()
public void dumpTriples(Writer w) throws IOException
w - writer to write toIOException - if exceptions happenCopyright © 2017 The University of Manchester. All rights reserved.