public class JenaRDFParser extends AbstractRDFParser<JenaRDFParser>
RDFParser.ParseResult
threadGroup
Constructor and Description |
---|
JenaRDFParser() |
Modifier and Type | Method and Description |
---|---|
protected RDF |
createRDFTermFactory()
Create a new
RDF for a parse session. |
protected void |
parseSynchronusly()
|
protected void |
resetTarget()
Reset all optional target* fields to
Optional.empty() . |
JenaRDFParser |
targetGeneralizedQuad(Consumer<QuadLike<RDFTerm>> consumer) |
JenaRDFParser |
targetGeneralizedTriple(Consumer<TripleLike> consumer) |
asT, base, base, checkBaseRequired, checkContentType, checkIsAbsolute, checkSource, checkTarget, clone, contentType, contentType, getBase, getContentType, getContentTypeSyntax, getRdfTermFactory, getSourceFile, getSourceInputStream, getSourceIri, getTarget, getTargetDataset, getTargetGraph, guessRDFSyntax, parse, prepareForParsing, rdfTermFactory, resetSource, source, source, source, source, target, target, target
public JenaRDFParser()
protected RDF createRDFTermFactory()
AbstractRDFParser
RDF
for a parse session.
This is called by AbstractRDFParser.parse()
to set AbstractRDFParser.rdfTermFactory(RDF)
if
it is Optional.empty()
.
As parsed blank nodes might be made with
RDF.createBlankNode(String)
, each call to this method SHOULD
return a new RDF instance.
createRDFTermFactory
in class AbstractRDFParser<JenaRDFParser>
RDF
public JenaRDFParser targetGeneralizedTriple(Consumer<TripleLike> consumer)
public JenaRDFParser targetGeneralizedQuad(Consumer<QuadLike<RDFTerm>> consumer)
protected void resetTarget()
AbstractRDFParser
Optional.empty()
.
Note that the consumer set for AbstractRDFParser.getTarget()
is
note reset.
Subclasses should override this and call super.resetTarget()
if they need to reset any additional target* fields.
resetTarget
in class AbstractRDFParser<JenaRDFParser>
protected void parseSynchronusly() throws IOException
AbstractRDFParser
AbstractRDFParser.sourceInputStream
, AbstractRDFParser.sourceFile
or
AbstractRDFParser.sourceIri
.
One of the source fields MUST be present, as checked by
AbstractRDFParser.checkSource()
.
AbstractRDFParser.checkBaseRequired()
is called to verify if AbstractRDFParser.getBase()
is
required.
parseSynchronusly
in class AbstractRDFParser<JenaRDFParser>
IOException
- If the source could not be readCopyright © 2015–2018 The Apache Software Foundation. All rights reserved.