org.jrdf.graph.local.util
Interface GraphToGraphMapper

All Known Implementing Classes:
GraphToGraphMapperImpl

public interface GraphToGraphMapper


Method Summary
 void addTripleToGraph(Triple triple)
          Converts a triple from one graph and puts it into the target graph.
 Node createNewNode(Node node)
           
 Graph createNewTriples(Iterator<Triple> it)
           
 Graph getGraph()
          Returns the target graph.
 void replaceNode(Node node, Node newNode)
           
 void replaceObjectNode(Node node, Node newNode)
           
 void replacePredicateNode(Node node, Node newNode)
           
 void replaceSubjectNode(Node node, Node newNode)
           
 void updateBlankNodes(Triple triple)
           
 

Method Detail

getGraph

Graph getGraph()
Returns the target graph.

Returns:
the target graph.

addTripleToGraph

void addTripleToGraph(Triple triple)
                      throws GraphException
Converts a triple from one graph and puts it into the target graph.

Parameters:
triple - The source graph triple.
Throws:
GraphElementFactoryException - if there was an error creating the new resources.
GraphException - if there was an error adding the new resources.

updateBlankNodes

void updateBlankNodes(Triple triple)
                      throws GraphElementFactoryException
Throws:
GraphElementFactoryException

createNewTriples

Graph createNewTriples(Iterator<Triple> it)
                       throws GraphException
Throws:
GraphException

createNewNode

Node createNewNode(Node node)
                   throws GraphElementFactoryException
Throws:
GraphElementFactoryException

replaceObjectNode

void replaceObjectNode(Node node,
                       Node newNode)
                       throws GraphException
Throws:
GraphException

replaceSubjectNode

void replaceSubjectNode(Node node,
                        Node newNode)
                        throws GraphException
Throws:
GraphException

replacePredicateNode

void replacePredicateNode(Node node,
                          Node newNode)
                          throws GraphException
Throws:
GraphException

replaceNode

void replaceNode(Node node,
                 Node newNode)
                 throws GraphException
Throws:
GraphException