public class RDFGraph extends Object implements Serializable
| Constructor and Description |
|---|
RDFGraph() |
| Modifier and Type | Method and Description |
|---|---|
void |
addTriple(org.semanticweb.owlapi.io.RDFTriple triple) |
Map<org.semanticweb.owlapi.io.RDFTriple,org.semanticweb.owlapi.io.RDFResourceBlankNode> |
computeRemappingForSharedNodes() |
void |
dumpTriples(Writer w) |
Set<org.semanticweb.owlapi.io.RDFTriple> |
getAllTriples() |
Set<org.semanticweb.owlapi.io.RDFResourceBlankNode> |
getRootAnonymousNodes() |
Collection<org.semanticweb.owlapi.io.RDFTriple> |
getTriplesForSubject(org.semanticweb.owlapi.io.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 void addTriple(@Nonnull org.semanticweb.owlapi.io.RDFTriple triple)
triple - triple to addpublic Collection<org.semanticweb.owlapi.io.RDFTriple> getTriplesForSubject(org.semanticweb.owlapi.io.RDFNode subject, boolean sort)
subject - subjectsort - sortpublic Map<org.semanticweb.owlapi.io.RDFTriple,org.semanticweb.owlapi.io.RDFResourceBlankNode> computeRemappingForSharedNodes()
@Nonnull public Set<org.semanticweb.owlapi.io.RDFResourceBlankNode> getRootAnonymousNodes()
public void dumpTriples(@Nonnull Writer w) throws IOException
w - writer to write toIOException - if exceptions happenpublic Set<org.semanticweb.owlapi.io.RDFTriple> getAllTriples()
Copyright © 2014 The University of Manchester. All Rights Reserved.