public class RDF4JParser extends AbstractRDFParser<RDF4JParser>
This can handle the RDF syntaxes RDFSyntax.JSONLD,
RDFSyntax.NQUADS, RDFSyntax.NTRIPLES,
RDFSyntax.RDFXML, RDFSyntax.TRIG and RDFSyntax.TURTLE
- additional syntaxes can be supported by including the corresponding
rdf4j-rio-* module on the classpath.
RDFParser.ParseResultthreadGroup| Constructor and Description |
|---|
RDF4JParser() |
| Modifier and Type | Method and Description |
|---|---|
protected RDF4J |
createRDFTermFactory() |
org.eclipse.rdf4j.rio.ParserConfig |
getParserConfig()
Get the RDF4J
ParserConfig to use. |
protected org.eclipse.rdf4j.rio.RDFHandler |
makeRDFHandler() |
protected void |
parseSynchronusly() |
protected RDF4JParser |
prepareForParsing() |
void |
setParserConfig(org.eclipse.rdf4j.rio.ParserConfig parserConfig)
Set an RDF4J
ParserConfig to use |
asT, base, base, checkBaseRequired, checkContentType, checkIsAbsolute, checkSource, checkTarget, clone, contentType, contentType, getBase, getContentType, getContentTypeSyntax, getRdfTermFactory, getSourceFile, getSourceInputStream, getSourceIri, getTarget, getTargetDataset, getTargetGraph, guessRDFSyntax, parse, rdfTermFactory, resetSource, resetTarget, source, source, source, source, target, target, targetprotected RDF4J createRDFTermFactory()
createRDFTermFactory in class AbstractRDFParser<RDF4JParser>protected RDF4JParser prepareForParsing() throws IOException, IllegalStateException
prepareForParsing in class AbstractRDFParser<RDF4JParser>IOExceptionIllegalStateExceptionprotected void parseSynchronusly()
throws IOException
parseSynchronusly in class AbstractRDFParser<RDF4JParser>IOExceptionpublic org.eclipse.rdf4j.rio.ParserConfig getParserConfig()
ParserConfig to use.
If no parser config is set, the default configuration is provided.
Note: The parser config is mutable - changes in the
returned config is reflected in this instance of the parser. To avoid
mutation, create a new ParserConfig and set
setParserConfig(ParserConfig).
ParserConfigpublic void setParserConfig(org.eclipse.rdf4j.rio.ParserConfig parserConfig)
ParserConfig to useparserConfig - Parser configurationprotected org.eclipse.rdf4j.rio.RDFHandler makeRDFHandler()
Copyright © 2015–2017 The Apache Software Foundation. All rights reserved.