|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AppendableGraph
An RDF graph that triples can be added to.
| Field Summary |
|---|
| Fields inherited from interface org.mulgara.mrg.Graph |
|---|
X |
| Method Summary | |
|---|---|
boolean |
insert(SubjectNode s,
PredicateNode p,
ObjectNode o)
Add a new triple to the graph. |
boolean |
insert(Triple triple)
Add a new triple to the graph. |
Graph |
mergeInto(Graph g)
Adds the contents of another graph to this one, creating new blank nodes as required (not re-using the blank nodes from the original graph). |
Graph |
unionInto(Graph g)
Adds the contents of another graph to this one, re-using all the blank nodes from the new graph. |
| Methods inherited from interface org.mulgara.mrg.Graph |
|---|
doesResourceExist, exportN3, exportN3, exportXML, exportXML, getObjects, getPredicates, getProperties, getRdfList, getSubjects, getSubjects, getTriples, getValue, getValues, isAsserted, isAsserted, isEmpty, match, matchSubgraph, size |
| Method Detail |
|---|
boolean insert(SubjectNode s,
PredicateNode p,
ObjectNode o)
s - The subject of the triple to add.p - The predicate of the triple to add.o - The object of the triple to add.
true if the triple did not exist in the graph.boolean insert(Triple triple)
triple - The complete triple to add.
true if the triple was already in the graph.Graph mergeInto(Graph g)
g - The graph to merge into this one.
Graph unionInto(Graph g)
g - The graph to merge into this one.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||