org.openanzo.serialization
Class RDFGraphParser

java.lang.Object
  extended by org.openanzo.serialization.RDFGraphParser

public class RDFGraphParser
extends java.lang.Object

RDFGraph parser takes a provided graph and extracts changes that can be handled by the provided handler

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Constructor Summary
RDFGraphParser(IRepositoryHandler handler)
          Create a new parser with given handler
 
Method Summary
 void parse(boolean additions, java.util.Collection<org.openrdf.model.Statement> statements)
          Parse data contained in graph and call corresponding methods in handler
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDFGraphParser

public RDFGraphParser(IRepositoryHandler handler)
Create a new parser with given handler

Parameters:
handler -
Method Detail

parse

public void parse(boolean additions,
                  java.util.Collection<org.openrdf.model.Statement> statements)
           throws AnzoException
Parse data contained in graph and call corresponding methods in handler

Parameters:
additions - Does the graph contain additions
statements - set of statements that contains data
Throws:
AnzoException


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.