|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openrdf.rio.helpers.RDFParserBase
org.openrdf.rio.trix.TriXParser
public class TriXParser
A parser that can parse RDF files that are in the TriX format.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.openrdf.rio.RDFParser |
|---|
RDFParser.DatatypeHandling |
| Field Summary |
|---|
| Fields inherited from class org.openrdf.rio.helpers.RDFParserBase |
|---|
rdfHandler |
| Constructor Summary | |
|---|---|
TriXParser()
Creates a new TriXParser that will use a ValueFactoryImpl to
create objects for resources, bNodes, literals and statements. |
|
TriXParser(ValueFactory valueFactory)
Creates a new TriXParser that will use the supplied ValueFactory to create objects for resources, bNodes, literals and statements. |
|
| Method Summary | |
|---|---|
RDFFormat |
getRDFFormat()
Gets the RDF format that this parser can parse. |
void |
parse(java.io.InputStream in,
java.lang.String baseURI)
Parses the data from the supplied InputStream, using the supplied baseURI to resolve any relative URI references. |
void |
parse(java.io.Reader reader,
java.lang.String baseURI)
Parses the data from the supplied Reader, using the supplied baseURI to resolve any relative URI references. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TriXParser()
ValueFactoryImpl to
create objects for resources, bNodes, literals and statements.
public TriXParser(ValueFactory valueFactory)
valueFactory - A ValueFactory.| Method Detail |
|---|
public final RDFFormat getRDFFormat()
RDFParser
public void parse(java.io.InputStream in,
java.lang.String baseURI)
throws java.io.IOException,
RDFParseException,
RDFHandlerException
RDFParser
in - The InputStream from which to read the data.baseURI - The URI associated with the data in the InputStream.
java.io.IOException - If an I/O error occurred while data was read from the InputStream.
RDFParseException - If the parser has found an unrecoverable parse error.
RDFHandlerException - If the configured statement handler has encountered an
unrecoverable error.
public void parse(java.io.Reader reader,
java.lang.String baseURI)
throws java.io.IOException,
RDFParseException,
RDFHandlerException
RDFParser
reader - The Reader from which to read the data.baseURI - The URI associated with the data in the InputStream.
java.io.IOException - If an I/O error occurred while data was read from the InputStream.
RDFParseException - If the parser has found an unrecoverable parse error.
RDFHandlerException - If the configured statement handler has encountered an
unrecoverable error.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||