de.fuberlin.wiwiss.ng4j.trig
Class TriGReader

java.lang.Object
  extended by de.fuberlin.wiwiss.ng4j.trig.TriGReader
All Implemented Interfaces:
NamedGraphSetReader

public class TriGReader
extends Object
implements NamedGraphSetReader

Reads TriG files (see TriG specification) into NamedGraphSets.

Author:
Richard Cyganiak (richard@cyganiak.de)

Constructor Summary
TriGReader()
           
 
Method Summary
 void read(NamedGraphSet namedGraphSet, InputStream source, String baseURI, String defaultGraphName)
          Reads Named Graphs from an InputStream into a NamedGraphSet.
 void read(NamedGraphSet namedGraphSet, Reader source, String baseURI, String defaultGraphName)
          Reads Named Graphs from a Reader into a NamedGraphSet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TriGReader

public TriGReader()
Method Detail

read

public void read(NamedGraphSet namedGraphSet,
                 Reader source,
                 String baseURI,
                 String defaultGraphName)
Description copied from interface: NamedGraphSetReader
Reads Named Graphs from a Reader into a NamedGraphSet. If some of the graph names from the source are already used in the NamedGraphSet, then the statements from the old graphs will be replaced by those from the source.

Specified by:
read in interface NamedGraphSetReader
Parameters:
namedGraphSet - Graphs read from the source will be stored into this NamedGraphSet
source - The source of the input serialization
baseURI - The URI from where the input was read
defaultGraphName - If a graph in the input has no name attached, then this will be used. When in doubt, use the baseURI.

read

public void read(NamedGraphSet namedGraphSet,
                 InputStream source,
                 String baseURI,
                 String defaultGraphName)
Description copied from interface: NamedGraphSetReader
Reads Named Graphs from an InputStream into a NamedGraphSet. If some of the graph names from the source are already used in the NamedGraphSet, then the statements from the old graphs will be replaced by those from the source.

Specified by:
read in interface NamedGraphSetReader
Parameters:
namedGraphSet - Graphs read from the source will be stored into this NamedGraphSet
source - The source of the input serialization
baseURI - The URI from where the input was read
defaultGraphName - If a graph in the input has no name attached, then this will be used. When in doubt, use the baseURI.