| Package | Description |
|---|---|
| org.apache.jena.riot |
| Modifier and Type | Method and Description |
|---|---|
RDFParserBuilder |
RDFParserBuilder.base(String base)
Set the base URI for parsing.
|
RDFParserBuilder |
RDFParserBuilder.canonicalLiterals(boolean flag)
Deprecated.
Use
canonicalValues and one of langTagCanonical() and langTagLowerCase()
This operation is equivalent to
this.canonicalValues(flag);
if ( flag )
this.langTagCanonical();
else
this.langTagAsGiven();
return this;
|
RDFParserBuilder |
RDFParserBuilder.canonicalValues(boolean flag)
Convert the lexical form of literals to a canonical form.
|
RDFParserBuilder |
RDFParserBuilder.checking(boolean flag)
Set whether to perform checking,
NTriples and NQuads default to no checking, other languages to checking.
|
RDFParserBuilder |
RDFParserBuilder.clone()
Duplicate this builder with current settings.
|
RDFParserBuilder |
RDFParserBuilder.context(Context context)
Set the context for the parser when built.
|
static RDFParserBuilder |
RDFParserBuilder.create() |
static RDFParserBuilder |
RDFParser.create()
Create an
RDFParserBuilder. |
RDFParserBuilder |
RDFParserBuilder.errorHandler(ErrorHandler handler)
Set the
ErrorHandler to use. |
RDFParserBuilder |
RDFParserBuilder.factory(FactoryRDF factory)
Set the
FactoryRDF to use. |
RDFParserBuilder |
RDFParserBuilder.forceLang(Lang lang)
Force the choice RDF syntax to be
lang, and ignore any indications such as file extension
or HTTP Content-Type. |
RDFParserBuilder |
RDFParserBuilder.fromString(String string)
Use the given string as the content to parse.
|
static RDFParserBuilder |
RDFParser.fromString(String string)
Create an
RDFParserBuilder and set content to parse to be the
given string. |
RDFParserBuilder |
RDFParserBuilder.httpAccept(String acceptHeader)
Set the HTTP "Accept" header.
|
RDFParserBuilder |
RDFParserBuilder.httpClient(org.apache.http.client.HttpClient httpClient)
Set the HttpClient to use.
|
RDFParserBuilder |
RDFParserBuilder.httpHeader(String header,
String value)
Set an HTTP header.
|
RDFParserBuilder |
RDFParserBuilder.labelToNode(LabelToNode labelToNode)
Use the given
LabelToNode, the policy for converting blank node labels in
RDF syntax to Jena's Node objects (usually a blank node). |
RDFParserBuilder |
RDFParserBuilder.lang(Lang lang)
Set the hint
Lang. |
RDFParserBuilder |
RDFParserBuilder.langTagAsGiven()
The form of the language tags as given in the data is preserved.
|
RDFParserBuilder |
RDFParserBuilder.langTagCanonical()
Language tags are case-normalized as defined by
RFC 5646.
|
RDFParserBuilder |
RDFParserBuilder.langTagLowerCase()
Convert language tags to lower case.
|
RDFParserBuilder |
RDFParserBuilder.resolveURIs(boolean flag)
Choose whether to resolve URIs.
This does not affect all languages: N-Triples and N-Quads never resolve URIs. Relative URIs are bad data. Only set this to false for debugging and development purposes. |
RDFParserBuilder |
RDFParserBuilder.set(Symbol symbol,
Object value)
Added a setting to the context for the parser when built.
|
RDFParserBuilder |
RDFParserBuilder.source(InputStream input)
Set the source to
InputStream. |
static RDFParserBuilder |
RDFParser.source(InputStream input)
Create an
RDFParserBuilder and set the source to InputStream. |
RDFParserBuilder |
RDFParserBuilder.source(Path path)
Set the source to
Path. |
static RDFParserBuilder |
RDFParser.source(Path path)
Create an
RDFParserBuilder and set the source to the
Path. |
RDFParserBuilder |
RDFParserBuilder.source(Reader reader)
Deprecated.
Use
fromString(java.lang.String), or an InputStream or a StringReader. |
RDFParserBuilder |
RDFParserBuilder.source(String uriOrFile)
Set the source to a URI; this includes OS file names.
|
static RDFParserBuilder |
RDFParser.source(String uriOrFile)
Create an
RDFParserBuilder and set the source to the URI, which
can be a filename. |
RDFParserBuilder |
RDFParserBuilder.source(StringReader reader)
Set the source to
StringReader. |
RDFParserBuilder |
RDFParserBuilder.streamManager(StreamManager streamManager)
Set the StreamManager to use when opening a URI (including files by name, but not by
Path). |
RDFParserBuilder |
RDFParserBuilder.strict(boolean strictMode)
Set the parser built to "strict" mode.
|
Licenced under the Apache License, Version 2.0