org.jrdf.parser
Class RdfReader

java.lang.Object
  extended by org.jrdf.parser.RdfReader

public final class RdfReader
extends Object

A simple factory for creating graphs given a file - everything is in memory by default. Or a new MapFactory and JRDF Factory can be given to make it persistent.


Constructor Summary
RdfReader()
           
RdfReader(Graph newGraph, MapFactory newMapFactory)
           
 
Method Summary
 Graph parseNTriples(File file)
           
 Graph parseNTriples(InputStream stream)
           
 Graph parseRdfXml(File file)
           
 Graph parseRdfXml(InputStream stream)
           
 Graph parseTurtle(File file)
           
 Graph parseTurtle(InputStream stream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RdfReader

public RdfReader()

RdfReader

public RdfReader(Graph newGraph,
                 MapFactory newMapFactory)
Method Detail

parseNTriples

public Graph parseNTriples(File file)

parseNTriples

public Graph parseNTriples(InputStream stream)

parseTurtle

public Graph parseTurtle(File file)

parseTurtle

public Graph parseTurtle(InputStream stream)

parseRdfXml

public Graph parseRdfXml(File file)

parseRdfXml

public Graph parseRdfXml(InputStream stream)