org.ilrt.inkling.external
Class RioWrapper

java.lang.Object
  |
  +--org.ilrt.inkling.external.RioWrapper
All Implemented Interfaces:
LoaderInterface

public class RioWrapper
extends java.lang.Object
implements LoaderInterface

A class to use the RIO RDF/XML parser (part of Sesame:
http://sesame.aidministrator.nl/)


Constructor Summary
RioWrapper()
           
 
Method Summary
 GraphInterface loadGraph(java.lang.String url)
          loads the file or url to a Graph and returns it
 GraphInterface loadGraph(java.lang.String url, GraphInterface rdf)
          loads the file or url to the specified GraphInterface and returns it
 void parse(java.io.InputStream source, GraphInterface consumer)
           
 void setBase(java.lang.String base)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RioWrapper

public RioWrapper()
Method Detail

setBase

public void setBase(java.lang.String base)

parse

public void parse(java.io.InputStream source,
                  GraphInterface consumer)
           throws java.io.IOException,
                  nl.aidministrator.rdf.io.ParseException

loadGraph

public GraphInterface loadGraph(java.lang.String url)
Description copied from interface: LoaderInterface
loads the file or url to a Graph and returns it
Specified by:
loadGraph in interface LoaderInterface

loadGraph

public GraphInterface loadGraph(java.lang.String url,
                                GraphInterface rdf)
Description copied from interface: LoaderInterface
loads the file or url to the specified GraphInterface and returns it
Specified by:
loadGraph in interface LoaderInterface