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() |
List<RDFResource> |
getSubjectsForObject(RDFResource node) |
Collection<RDFTriple> |
getTriplesForSubject(RDFNode subject) |
boolean |
isEmpty()
Determines if this graph is empty (i.e.
|
String |
toString() |
public boolean isEmpty()
true if the graph contains triples, otherwise falsepublic 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 happenpublic List<RDFResource> getSubjectsForObject(RDFResource node)
node - nodeCopyright © 2019 The University of Manchester. All rights reserved.