de.fuberlin.wiwiss.ng4j.trig
Class TriGReader
java.lang.Object
de.fuberlin.wiwiss.ng4j.trig.TriGReader
- All Implemented Interfaces:
- NamedGraphSetReader
public class TriGReader
- extends Object
- implements NamedGraphSetReader
Reads TriG files (see
TriG
specification) into NamedGraphSet
s.
- Author:
- Richard Cyganiak (richard@cyganiak.de)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TriGReader
public TriGReader()
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 NamedGraphSetsource
- The source of the input serializationbaseURI
- The URI from where the input was readdefaultGraphName
- 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 NamedGraphSetsource
- The source of the input serializationbaseURI
- The URI from where the input was readdefaultGraphName
- If a graph in the input has no name attached,
then this will be used. When in doubt, use the baseURI.