Uses of Class
org.apache.jena.riot.Lang
Package
Description
ARQ - A query engine for Jena, implementing SPARQL.
RRX (RIOT RDF/XML) is a set of three RDF/XML parsers.
-
Uses of Lang in org.apache.jena.query
Modifier and TypeMethodDescriptionSet the accept header on GET requests.static void
static void
ResultSetFormatter.output
(OutputStream outStream, boolean result, Lang resultFormat) static void
ResultSetFormatter.output
(OutputStream outStream, ResultSet resultSet, Lang resultFormat) static void
-
Uses of Lang in org.apache.jena.riot
Modifier and TypeFieldDescriptionstatic Lang
Lang.CSV
"CSV" - Used in various ways.static Lang
Lang.JSONLD
static final Lang
RDFLanguages.JSONLD
The standard JSON-LD registration.static Lang
Lang.JSONLD11
JSONLD 1.1static final Lang
RDFLanguages.JSONLD11
static Lang
Lang.N3
N3 (treat as Turtle)static final Lang
RDFLanguages.N3
N3 (treat as Turtle)static Lang
Lang.NQ
Alternative constantNQUADS
static final Lang
RDFLanguages.NQ
Alternative constantRDFLanguages.NQUADS
static Lang
Lang.NQUADS
static final Lang
RDFLanguages.NQUADS
static Lang
Lang.NT
Alternative constant forNTRIPLES
static final Lang
RDFLanguages.NT
Alternative constant forRDFLanguages.NTRIPLES
static Lang
Lang.NTRIPLES
static final Lang
RDFLanguages.NTRIPLES
static Lang
Lang.RDFJSON
static final Lang
RDFLanguages.RDFJSON
static Lang
Lang.RDFNULL
The "null" languagestatic final Lang
RDFLanguages.RDFNULL
The "null" languagestatic Lang
Lang.RDFPROTO
The RDF syntax RDF Thriftstatic final Lang
RDFLanguages.RDFPROTO
static Lang
Lang.RDFRAW
Output-only language for a StreamRDF (for development)static final Lang
RDFLanguages.RDFRAW
Output-only language for a StreamRDF (for development)static Lang
Lang.RDFTHRIFT
The RDF syntax RDF Thriftstatic final Lang
RDFLanguages.RDFTHRIFT
The RDF syntax RDF Thriftstatic Lang
Lang.RDFXML
static final Lang
RDFLanguages.RDFXML
static Lang
Lang.SHACLC
SHACL Compact Syntax (2020-07-01)static final Lang
RDFLanguages.SHACLC
SHACL Compact Syntax (2020-07-01)static final Lang
RDFLanguages.TEXT
Textstatic Lang
Lang.TRIG
static final Lang
RDFLanguages.TRIG
static Lang
Lang.TRIX
static final Lang
RDFLanguages.TRIX
TriXstatic Lang
Lang.TSV
"TSV" - Used in various ways.static Lang
Lang.TTL
Alternative constant forTURTLE
static final Lang
RDFLanguages.TTL
Alternative constant forRDFLanguages.TURTLE
static Lang
Lang.TURTLE
static final Lang
RDFLanguages.TURTLE
Modifier and TypeMethodDescriptionLangBuilder.build()
Construct theLang
static Lang
RDFLanguages.contentTypeToLang
(String contentType) Map a content type (without charset) to aLang
static Lang
RDFLanguages.contentTypeToLang
(ContentType ct) Map a content type (without charset) to aLang
static Lang
WebContent.contentTypeToLangResultSet
(String contentType) Map content-type to lang for SPARQL results, with pragmatic adapters.static Lang
RDFDataMgr.determineLang
(String target, String ctStr, Lang hintLang) Determine the Lang, given the URI target, any content type header string and a hintstatic Lang
RDFLanguages.fileExtToLang
(String ext) Try to map a file extension to aLang
; return null on no registered mappingstatic Lang
RDFLanguages.filenameToLang
(String uriOrFilename) Try to map a file name to aLang
; return null on no registered mapping.static Lang
RDFLanguages.filenameToLang
(String filename, Lang dftLang) Try to map a file name to aLang
; return the given default where there is no registered mappingRDFFormat.getLang()
WriterDatasetRIOT.getLang()
WriterGraphRIOT.getLang()
static Lang
RDFLanguages.nameToLang
(String langName) Turn a name for a language into aLang
object.static Lang
RDFLanguages.pathnameToLang
(String pathname) Try to map a URI or URI path name to aLang
; return null on no registered mapping.static Lang
RDFLanguages.resourceNameToLang
(String resourceName) Try to map a resource name to aLang
; return null on no registered mappingstatic Lang
RDFLanguages.resourceNameToLang
(String resourceName, Lang dftLang) Try to map a resource name to aLang
; return the given default where there is no registered mappingstatic Lang
RDFLanguages.shortnameToLang
(String label) Map a colloquial name (e.g.Modifier and TypeMethodDescriptionstatic Collection<Lang>
RDFLanguages.getRegisteredLanguages()
static Collection<Lang>
RDFParserRegistry.registeredLangQuads()
Return registered quad languages.static Collection<Lang>
RDFWriterRegistry.registeredLangs()
All registered languagesstatic Collection<Lang>
RDFParserRegistry.registeredLangTriples()
Return registered triple languages.Modifier and TypeMethodDescriptionstatic String
Generate a string in the specified language/syntax for a SPARQL boolean result.static String
Generate a string in the specified language/syntax for a SPARQL result set.static boolean
Does the language have a registered output format?ReaderRIOTFactory.create
(Lang language, ParserProfile profile) RDFDataMgr.createIteratorQuads
(InputStream input, Lang lang, String baseIRI) Deprecated, for removal: This API element is subject to removal in a future version.static Iterator<org.apache.jena.graph.Triple>
RDFDataMgr.createIteratorTriples
(InputStream input, Lang lang, String baseIRI) Deprecated, for removal: This API element is subject to removal in a future version.static RDFFormat
RDFWriterRegistry.defaultSerialization
(Lang lang) Return the format registered as the default for the languagestatic ContentType
WebContent.determineCT
(String contentTypeStr, Lang hintLang, String target) Determine the content type to be used, given the target URL, the content-type from Content Negotiation and a hint language.static Lang
RDFDataMgr.determineLang
(String target, String ctStr, Lang hintLang) Determine the Lang, given the URI target, any content type header string and a hintstatic Lang
RDFLanguages.filenameToLang
(String filename, Lang dftLang) Try to map a file name to aLang
; return the given default where there is no registered mappingForce the choice RDF syntax to belang
, and ignore any indications such as file extension or HTTP Content-Type.static RDFParserBuilder
RDFParser.fromString
(String string, Lang lang) Create anRDFParserBuilder
and set content to be parsed together with the RDF syntax language.static ReaderRIOTFactory
RDFParserRegistry.getFactory
(Lang language) Return the parser factory for the language, or null if not registered.static WriterDatasetRIOTFactory
RDFWriterRegistry.getWriterDatasetFactory
(Lang lang) Get the dataset writer factory associated with the languagestatic WriterGraphRIOTFactory
RDFWriterRegistry.getWriterGraphFactory
(Lang lang) Get the graph writer factory associated with the languagestatic boolean
RDFLanguages.hasRegisteredParser
(Lang lang) return true if the language is registered for parsing as an RDF syntax.static boolean
return true if the language is registered as a quads language.static boolean
return true if the language is registered with the quads parser factoriesstatic boolean
RDFLanguages.isRegistered
(Lang lang) Is this language registered?static boolean
RDFParserRegistry.isRegistered
(Lang lang) return true if the language has a registered parser.static boolean
return true if the language is registered as a triples language.static boolean
return true if the language is registered with the triples parser factoriesSet the hintLang
.Set the output language to aLang
; this will set the format.static Dataset
RDFDataMgr.loadDataset
(String uri, Lang lang) Create a memory Dataset and read in some datastatic DatasetGraph
RDFDataMgr.loadDatasetGraph
(String uri, Lang lang) Create a memory DatasetGraph and read in some datastatic org.apache.jena.graph.Graph
Create a memory Graph and read in some datastatic org.apache.jena.rdf.model.Model
Create a memory Model and read in some datastatic ResultSet
Read ResultSet.static void
RDFDataMgr.read
(org.apache.jena.graph.Graph graph, InputStream in, String base, Lang lang) Read triples into a Model with bytes from an InputStream.static void
RDFDataMgr.read
(org.apache.jena.graph.Graph graph, InputStream in, Lang lang) Read triples into a Model with bytes from an InputStream.static void
RDFDataMgr.read
(org.apache.jena.graph.Graph graph, StringReader in, String base, Lang lang) Read triples into a model with chars from a StringReader.static void
Read triples into a Model from the given location, with a hint of language.static void
Read triples into a Model from the given location, with a hint of the language (MIME type or short name)static void
RDFDataMgr.read
(Dataset dataset, InputStream in, String base, Lang lang) Read quads or triples into a dataset with bytes from an input stream.static void
RDFDataMgr.read
(Dataset dataset, InputStream in, Lang lang) Read quads or triples into a dataset with bytes from an input stream.static void
RDFDataMgr.read
(Dataset dataset, StringReader in, String base, Lang lang) Read quads into a dataset with chars from a StringReader.static void
Read quads or triples into a Dataset from the given location, with a hint of the language.static void
Read quads or triples into a Dataset from the given location, with a hint of the language.static void
RDFDataMgr.read
(org.apache.jena.rdf.model.Model model, InputStream in, String base, Lang lang) Read triples into a Model with bytes from an InputStream.static void
RDFDataMgr.read
(org.apache.jena.rdf.model.Model model, InputStream in, Lang lang) Read triples into a Model with bytes from an InputStream.static void
RDFDataMgr.read
(org.apache.jena.rdf.model.Model model, StringReader in, String base, Lang lang) Read triples into a model with chars from a StringReader.static void
Read triples into a Model from the given location, with a hint of language.static void
Read triples into a Model from the given location, with a hint of the language (MIME type)static void
RDFDataMgr.read
(DatasetGraph dataset, InputStream in, String base, Lang lang) Read quads or triples into a dataset with bytes from an input stream.static void
RDFDataMgr.read
(DatasetGraph dataset, InputStream in, Lang lang) Read quads or triples into a dataset with bytes from an input stream.static void
RDFDataMgr.read
(DatasetGraph dataset, StringReader in, String base, Lang lang) Read quads into a dataset with chars from a StringReader.static void
RDFDataMgr.read
(DatasetGraph dataset, String uri, String base, Lang hintLang) Read quads or triples into a Dataset from the given location, with a hint of the language.static void
RDFDataMgr.read
(DatasetGraph dataset, String uri, Lang hintLang) Read quads or triples into a Dataset from the given location, with a hint of the language.abstract void
static ResultSet
ResultSetMgr.read
(InputStream input, Lang lang) static ResultSet
Read from aURL
(including filenames) and produce aResultSet
; the stream is expect to use syntaxlang
.static boolean
ResultSetMgr.readBoolean
(InputStream input, Lang lang) Read a boolean result from the URI; the input is expect to use syntaxlang
static boolean
ResultSetMgr.readBoolean
(String urlOrFilename, Lang lang) Read a boolean result from the URI; the input is expect to use syntaxlang
static void
Register a language.static void
Register the default serialization for the language (replace any existing registration).static void
RDFParserRegistry.registerLangQuads
(Lang lang, ReaderRIOTFactory factory) Register a language and its parser factory.static void
RDFParserRegistry.registerLangTriples
(Lang lang, ReaderRIOTFactory factory) Register a language and its parser factory.static void
RDFParserRegistry.removeRegistration
(Lang lang) Remove registrationstatic Lang
RDFLanguages.resourceNameToLang
(String resourceName, Lang dftLang) Try to map a resource name to aLang
; return the given default where there is no registered mappingstatic boolean
static void
RDFLanguages.unregister
(Lang lang) Remove a registration of a language - this also removes all recorded mapping of content types and file extensions.static void
RDFDataMgr.write
(OutputStream out, org.apache.jena.graph.Graph graph, Lang lang) Write the graph to the output stream in the default serialization for the language.static void
RDFDataMgr.write
(OutputStream out, Dataset dataset, Lang lang) Write the Dataset to the output stream in the default serialization for the language.static void
RDFDataMgr.write
(OutputStream out, org.apache.jena.rdf.model.Model model, Lang lang) Write the model to the output stream in the default serialization for the language.static void
RDFDataMgr.write
(OutputStream out, DatasetGraph dataset, Lang lang) Write the DatasetGraph to the output stream in the default serialization for the language.static void
RDFDataMgr.write
(StringWriter out, org.apache.jena.graph.Graph graph, Lang lang) Write the graph to the output stream in the default serialization for the language.static void
RDFDataMgr.write
(StringWriter out, Dataset dataset, Lang lang) Write the graph to the output stream in the default serialization for the language.static void
RDFDataMgr.write
(StringWriter out, org.apache.jena.rdf.model.Model model, Lang lang) Write the graph to the output stream in the default serialization for the language.static void
RDFDataMgr.write
(StringWriter out, DatasetGraph dataset, Lang lang) Write the DatasetGraph to the output stream in the default serialization for the language.static void
ResultSetMgr.write
(OutputStream output, boolean result, Lang lang) Write a SPARQL boolean result to the output stream in the specified language/syntax.static void
ResultSetMgr.write
(OutputStream output, ResultSet resultSet, Lang lang) Write a SPARQL result set to the output stream in the specified language/syntax. -
Uses of Lang in org.apache.jena.riot.adapters
-
Uses of Lang in org.apache.jena.riot.lang
Modifier and TypeMethodDescriptionLangNQuads.getLang()
LangNTriples.getLang()
LangRDFJSON.getLang()
LangRIOT.getLang()
LangTriG.getLang()
LangTurtle.getLang()
ModifierConstructorDescriptionLangJSONLD11
(Lang language, ParserProfile profile, ErrorHandler errorHandler) -
Uses of Lang in org.apache.jena.riot.lang.extra
-
Uses of Lang in org.apache.jena.riot.lang.rdfxml
Modifier and TypeFieldDescriptionstatic final Lang
RRX.RDFXML_ARP0
Deprecated, for removal: This API element is subject to removal in a future version.To be removed.static final Lang
RRX.RDFXML_ARP1
Deprecated, for removal: This API element is subject to removal in a future version.To be removed.static final Lang
RRX.RDFXML_SAX
RDF/XML implemented by RRX-SAXstatic final Lang
RRX.RDFXML_StAX_ev
RDF/XML implemented by RRX-StAXevstatic final Lang
RRX.RDFXML_StAX_sr
RDF/XML implemented by RRX-StAXsr -
Uses of Lang in org.apache.jena.riot.protobuf
-
Uses of Lang in org.apache.jena.riot.resultset
Modifier and TypeFieldDescriptionstatic final Lang
ResultSetLang.RS_CSV
static final Lang
ResultSetLang.RS_JSON
static final Lang
ResultSetLang.RS_None
static final Lang
ResultSetLang.RS_Protobuf
static final Lang
ResultSetLang.RS_Text
static final Lang
ResultSetLang.RS_Thrift
static final Lang
ResultSetLang.RS_TSV
static final Lang
ResultSetLang.RS_XML
SPARQL results in XML syntaxModifier and TypeMethodDescriptionResultSetReaderRegistry.registered()
Return registered result set languages.ResultSetWriterRegistry.registered()
All registered languagesModifier and TypeMethodDescriptionstatic ResultSetReaderFactory
ResultSetReaderRegistry.getFactory
(Lang lang) Lookup aLang
to get the registeredResultSetReaderFactory
(or null)static ResultSetWriterFactory
ResultSetWriterRegistry.getFactory
(Lang lang) Lookup aLang
to get the registeredResultSetReaderFactory
(or null)static boolean
ResultSetLang.isRegistered
(Lang lang) Is a lang a registeredResultSetLang
?static boolean
ResultSetReaderRegistry.isRegistered
(Lang lang) Test whetherLang
is registered as a result set syntax.static boolean
ResultSetWriterRegistry.isRegistered
(Lang lang) static void
ResultSetReaderRegistry.register
(Lang lang, ResultSetReaderFactory factory) Register aResultSetReaderFactory
for aLang
static void
ResultSetWriterRegistry.register
(Lang lang, ResultSetWriterFactory factory) Register aResultSetWriterFactory
for aLang
-
Uses of Lang in org.apache.jena.riot.rowset
Modifier and TypeMethodDescriptionstatic RowSetReader
RowSetReader.createReader
(Lang lang) Convenience operation - create aRowSetReader
forLang
or return null.static RowSetReader
RowSetReaderRegistry.createReader
(Lang lang) Create aRowSetReader
forLang
or return null.Provide aLang
for the parser.static RowSetReaderFactory
RowSetReaderRegistry.getFactory
(Lang lang) Lookup aLang
to get the registeredRowSetReaderFactory
(or null)static RowSetWriterFactory
RowSetWriterRegistry.getFactory
(Lang lang) Lookup aLang
to get the registeredRowSetReaderFactory
(or null)static boolean
RowSetReaderRegistry.isRegistered
(Lang lang) Test whetherLang
is registered as a result set syntax.static boolean
RowSetWriterRegistry.isRegistered
(Lang lang) Provide aLang
for the parser.static void
RowSetReaderRegistry.register
(Lang lang, RowSetReaderFactory factory) Register aRowSetReaderFactory
for aLang
static void
RowSetWriterRegistry.register
(Lang lang, RowSetWriterFactory factory) Register aRowSetReaderFactory
for aLang
-
Uses of Lang in org.apache.jena.riot.system
Modifier and TypeMethodDescriptionstatic void
AsyncParser.asyncParse
(InputStream input, Lang lang, String baseURI, StreamRDF output) Function to that parses anInputStream
on a separate thread and sends the output to a StreamRDF on the callers thread.static org.apache.jena.atlas.iterator.IteratorCloseable<Quad>
AsyncParser.asyncParseQuads
(InputStream input, Lang lang, String baseURI) Pull parser - quads.static org.apache.jena.atlas.iterator.IteratorCloseable<org.apache.jena.graph.Triple>
AsyncParser.asyncParseTriples
(InputStream input, Lang lang, String baseURI) Pull parser - triples.static RDFFormat
StreamRDFWriter.defaultSerialization
(Lang lang) Return the format registered as the default for the languageStreamRDFWriter.WriterRegistry.defaultSerialization
(Lang lang) Return the format registered as the default for the languagestatic StreamRDF
StreamRDFWriter.getWriterStream
(OutputStream output, Lang lang) Get a StreamRDF destination that will output in syntaxLang
and is guaranteed to do so in a scaling, streaming fashion.static StreamRDF
StreamRDFWriter.getWriterStream
(OutputStream output, Lang lang, Context context) Get a StreamRDF destination that will output in syntaxLang
and is guaranteed to do so in a scaling, streaming fashion.static AsyncParserBuilder
AsyncParser.of
(InputStream input, Lang lang, String baseURI) Create anAsyncParserBuilder
from an input stream.static ParserProfile
RiotLib.profile
(Lang lang, String baseIRI, ErrorHandler handler) static void
Register the default serialization for the language (replace any existing registration).void
Register the default serialization for the language (replace any existing registration).static boolean
StreamRDFWriter.registered
(Lang lang) static void
StreamRDFWriter.write
(OutputStream output, org.apache.jena.graph.Graph graph, Lang lang, Context context) Write a Graph in streaming fashionstatic void
StreamRDFWriter.write
(OutputStream output, DatasetGraph datasetGraph, Lang lang) Write a DatasetGraph in streaming fashionstatic void
StreamRDFWriter.write
(OutputStream output, DatasetGraph datasetGraph, Lang lang, Context context) Write a DatasetGraph in streaming fashion -
Uses of Lang in org.apache.jena.riot.thrift
-
Uses of Lang in org.apache.jena.riot.writer
-
Uses of Lang in org.apache.jena.sparql.exec
Modifier and TypeMethodDescriptionstatic RowSet
RowSetFactory.read
(InputStream in, Lang lang) static boolean
RowSetFactory.readBoolean
(InputStream in, Lang lang) -
Uses of Lang in org.apache.jena.sparql.exec.http
-
Uses of Lang in org.apache.jena.sparql.resultset
AsyncParser.asyncParseQuads(java.lang.String)
or for N-Triples,IteratorParsers.createIteratorNQuads(java.io.InputStream)