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 sort) |
boolean |
isEmpty()
Determines if this graph is empty (i.e.
|
public boolean isEmpty()
true if the graph contains triples, otherwise
falsepublic Collection<RDFTriple> getTriplesForSubject(RDFNode subject, boolean sort)
subject - subjectsort - sortpublic 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 © 2015 The University of Manchester. All Rights Reserved.