org.mulgara.mrg
Interface WritableGraph

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

public interface WritableGraph
extends AppendableGraph

An RDF graph that triples can be modified on.


Field Summary
 
Fields inherited from interface org.mulgara.mrg.Graph
X
 
Method Summary
 boolean delete(SubjectNode s, PredicateNode p, ObjectNode o)
          Add a new triple to the graph.
 boolean delete(Triple triple)
          Remove a triple from the graph.
 
Methods inherited from interface org.mulgara.mrg.AppendableGraph
insert, insert, mergeInto, unionInto
 
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

delete

boolean delete(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 to be removed was in the graph.

delete

boolean delete(Triple triple)
Remove a triple from the graph.

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


Copyright © 2011. All Rights Reserved.