public class RDFGraph extends Object
| Constructor and Description |
|---|
RDFGraph() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTriple(RDFTriple triple) |
void |
dumpTriples(Writer w) |
Set<RDFResourceNode> |
getRootAnonymousNodes() |
List<RDFTriple> |
getSortedTriplesForSubject(RDFNode subject,
boolean sort) |
Set<RDFTriple> |
getTriplesForSubject(RDFNode subject)
Deprecated.
this method makes a defensive copy for each element in the map, but most uses of this only iterate over the results. Use getSortedTriplesForResult instead
|
boolean |
isAnonymousNodeSharedSubject(RDFResourceNode node) |
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 add@Deprecated public Set<RDFTriple> getTriplesForSubject(RDFNode subject)
subject - node to searchpublic List<RDFTriple> getSortedTriplesForSubject(RDFNode subject, boolean sort)
public boolean isAnonymousNodeSharedSubject(RDFResourceNode node)
node - node to searchpublic Set<RDFResourceNode> getRootAnonymousNodes()
public void dumpTriples(Writer w) throws IOException
w - writer to write toIOException - if exceptions happenCopyright © 2012 The University of Manchester. All Rights Reserved.