org.ilrt.inkling.api
Interface LoaderInterface

All Known Implementing Classes:
NTReader, ARPWrapper, RioWrapper

public interface LoaderInterface

A tiny interface for loading various graph formats. See Util and
external/, and an example in Graph.

LoaderInterface loader=(LoaderInterface)Class.forName(handler).newInstance();
gets a new instance of LoaderInterface such as 
org.ilrt.inkling.external.RioWrapper and 
org.ilrt.inkling.external.ARPWrapper to handle the parsing of RDF 
documents in various formats.

Various mappings from short names to class names are in api.Util.


Method Summary
 GraphInterface loadGraph(java.lang.String file)
          loads the file or url to a Graph and returns it
 GraphInterface loadGraph(java.lang.String file, GraphInterface graph)
          loads the file or url to the specified GraphInterface and returns it
 

Method Detail

loadGraph

public GraphInterface loadGraph(java.lang.String file)
loads the file or url to a Graph and returns it

loadGraph

public GraphInterface loadGraph(java.lang.String file,
                                GraphInterface graph)
loads the file or url to the specified GraphInterface and returns it