Uses of Class
org.apache.jena.riot.RDFParserBuilder
-
Uses of RDFParserBuilder in org.apache.jena.riot
Modifier and TypeMethodDescriptionRDFParserBuilder.acceptHeader
(String acceptHeader) Set the HTTP "Accept" header.Set the base URI for parsing.RDFParserBuilder.canonicalValues
(boolean flag) Convert the lexical form of literals to a canonical form.RDFParserBuilder.checking
(boolean flag) Set whether to perform checking, NTriples and NQuads default to no checking, other languages to checking.RDFParserBuilder.clone()
Duplicate this builder with current settings.Set the context for the parser when built.static RDFParserBuilder
RDFParser.create()
Create anRDFParserBuilder
.static RDFParserBuilder
RDFParserBuilder.create()
RDFParserBuilder.errorHandler
(ErrorHandler handler) Set theErrorHandler
to use.RDFParserBuilder.factory
(FactoryRDF factory) Set theFactoryRDF
to use.Force the choice RDF syntax to belang
, and ignore any indications such as file extension or HTTP Content-Type.static RDFParserBuilder
RDFParser.fromString
(String string) Deprecated.static RDFParserBuilder
RDFParser.fromString
(String string, Lang lang) Create anRDFParserBuilder
and set content to be parsed together with the RDF syntax language.RDFParserBuilder.fromString
(String string) Use the given string as the content to parse.RDFParserBuilder.httpClient
(HttpClient httpClient) Set an HTTP client.RDFParserBuilder.httpHeader
(String header, String value) Set an HTTP header.RDFParserBuilder.labelToNode
(LabelToNode labelToNode) Use the givenLabelToNode
, the policy for converting blank node labels in RDF syntax to Jena'sNode
objects (usually a blank node).Set the hintLang
.RDFParserBuilder.langTagAsGiven()
Deprecated.In Jena5, language tags are always converted to RFC 5646 case format.RDFParserBuilder.langTagCanonical()
Deprecated.In Jena5, language tags are always converted to RFC 5646 case format.RDFParserBuilder.langTagLowerCase()
Deprecated.In Jena5, language tags are always converted to RFC 5646 case format.Set an initial prefix map for parsing.RDFParserBuilder.resolver
(org.apache.jena.irix.IRIxResolver resolver) Provide a specificIRIxResolver
to check and resolve URIs.RDFParserBuilder.resolveURIs
(boolean flag) Choose whether to resolve URIs or throw an error.Add a setting to the context for the parser when built.Add a setting to the context for the parser when built.static RDFParserBuilder
RDFParser.source
(InputStream input) Create anRDFParserBuilder
and set the source toInputStream
.static RDFParserBuilder
Create anRDFParserBuilder
and set the source to the URI, which can be a filename.static RDFParserBuilder
Create anRDFParserBuilder
and set the source to thePath
.RDFParserBuilder.source
(InputStream input) Set the source toInputStream
.Deprecated.UsefromString(java.lang.String)
, or an InputStream or a StringReader.RDFParserBuilder.source
(StringReader reader) Set the source toStringReader
.Set the source to a URI; this includes OS file names.Set the source toPath
.RDFParserBuilder.streamManager
(StreamManager streamManager) Set the StreamManager to use when opening a URI (including files by name, but not byPath
).RDFParserBuilder.strict
(boolean strictMode) Set the parser built to "strict" mode. -
Uses of RDFParserBuilder in org.apache.jena.riot.system
Modifier and TypeMethodDescriptionstatic AsyncParserBuilder
AsyncParser.of
(RDFParserBuilder source) Create anAsyncParserBuilder
from anRDFParserBuilder
.Modifier and TypeMethodDescriptionstatic void
AsyncParser.asyncParseSources
(List<RDFParserBuilder> sources, StreamRDF output) Parse a number of sources (RDFParserBuilders
) on a separate thread and send the output to a StreamRDF on the callers thread.AsyncParserBuilder.mutateSources
(Consumer<RDFParserBuilder> mutator) Run an operation on all RDFParserBuilder sources in this builder.static AsyncParserBuilder
AsyncParser.ofSources
(List<RDFParserBuilder> sources) Create anAsyncParserBuilder
from a set ofRDFParserBuilder
instances.AsyncParserBuilder.setSources
(List<RDFParserBuilder> sources)
RDFParser.fromString(String, Lang)