org.mulgara.mrg
Interface AppendableGraph

All Superinterfaces:
Graph, GraphExt
All Known Subinterfaces:
WritableGraph
All Known Implementing Classes:
AbstractGraph, GraphImpl, IndexedGraph, PackedGraphImpl, PackedIndexedGraph

public interface AppendableGraph
extends Graph

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
 
Methods inherited from interface org.mulgara.mrg.GraphExt
doesResourceExist, doesResourceExist, getProperties, getProperties, getRdfList, getRdfList, getRdfList, getRdfList, getRdfList, getRdfList, getRdfList, getRdfList, getSubjects, getSubjects, getSubjects, getSubjects, getSubjects, getSubjects, getSubjects, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValues, getValues, getValues, getValues, getValues, getValues, getValues, getValues, isAsserted, isAsserted, isAsserted, isAsserted, isAsserted, isAsserted, isAsserted, isAsserted, isAsserted, isAsserted, isAsserted, isAsserted, isAsserted, isAsserted, isAsserted, isAsserted, isAsserted, isAsserted, isAsserted, isAsserted, isAsserted, isAsserted, isAsserted, isAsserted, isAsserted, isAsserted, matchSubgraphX, matchSubgraphX, matchSubgraphX, matchSubgraphX, matchSubgraphX, matchSubgraphX, matchSubgraphX, matchSubgraphX, matchSubgraphX, matchSubgraphX, matchSubgraphX, matchSubgraphX, matchSubgraphX, matchSubgraphX, matchSubgraphX, matchSubgraphX, matchSubgraphX, matchSubgraphX, matchSubgraphX, matchSubgraphX, matchSubgraphX, matchSubgraphX, matchSubgraphX, matchSubgraphX, matchSubgraphX, matchSubgraphX, matchX, matchX, matchX, matchX, matchX, matchX, matchX, matchX, matchX, matchX, matchX, matchX, matchX, matchX, matchX, matchX, matchX, matchX, matchX, matchX, matchX, matchX, matchX, matchX, matchX, matchX
 

Method Detail

insert

boolean insert(SubjectNode s,
               PredicateNode p,
               ObjectNode o)
Add a new triple to the graph.

Parameters:
s - The subject of the triple to add.
p - The predicate of the triple to add.
o - The object of the triple to add.
Returns:
true if the triple did not exist in the graph.

insert

boolean insert(Triple triple)
Add a new triple to the graph.

Parameters:
triple - The complete triple to add.
Returns:
true if the triple was already in the graph.

mergeInto

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).

Parameters:
g - The graph to merge into this one.
Returns:
The current graph, after modification.

unionInto

Graph unionInto(Graph g)
Adds the contents of another graph to this one, re-using all the blank nodes from the new graph.

Parameters:
g - The graph to merge into this one.
Returns:
The current graph, after modification.


Copyright © 2011. All Rights Reserved.