Package | Description |
---|---|
org.apache.jena.riot | |
org.apache.jena.riot.adapters | |
org.apache.jena.riot.lang | |
org.apache.jena.riot.system | |
org.apache.jena.riot.writer | |
org.openjena.riot |
Modifier and Type | Field and Description |
---|---|
static Lang |
RDFLanguages.N3
N3 (treat as Turtle)
|
static Lang |
Lang.N3
N3 (RDF subset of N3)
|
static Lang |
RDFLanguages.NQ
Abbreviation for NQUADS
|
static Lang |
Lang.NQ
NQuads
|
static Lang |
RDFLanguages.NQUADS
N-Quads
|
static Lang |
Lang.NQUADS
NQuads
|
static Lang |
RDFLanguages.NT
Common abbreviation for NTRIPLES
|
static Lang |
Lang.NT
N-triples
|
static Lang |
RDFLanguages.NTRIPLES
N-Triples
|
static Lang |
Lang.NTRIPLES
N-triples
|
static Lang |
RDFLanguages.RDFJSON
RDF/JSON (this is not JSON-LD)
|
static Lang |
Lang.RDFJSON
RDF/JSON (this is not JSON-LD)
See "http://jena.apache.org/documentation/io/rdf-json.html"
|
static Lang |
RDFLanguages.RDFNULL
The "null" language
|
static Lang |
Lang.RDFNULL |
static Lang |
RDFLanguages.RDFXML
RDF/XML
|
static Lang |
Lang.RDFXML
RDF/XML
|
static Lang |
RDFLanguages.TRIG
TriG
|
static Lang |
Lang.TRIG
TriG
|
static Lang |
RDFLanguages.TTL
Common abbreviation for TURTLE
|
static Lang |
Lang.TTL
Turtle
|
static Lang |
RDFLanguages.TURTLE
Turtle
|
static Lang |
Lang.TURTLE
Turtle
|
Modifier and Type | Method and Description |
---|---|
Lang |
LangBuilder.build()
Construct the
Lang |
static Lang |
RDFLanguages.contentTypeToLang(ContentType ct)
Map a content type (without charset) to a
Lang |
static Lang |
RDFLanguages.contentTypeToLang(String contentType)
Map a content type (without charset) to a
Lang |
static Lang |
WebContent.contentTypeToLang(String contentType) |
static Lang |
RDFLanguages.fileExtToLang(String ext)
Try to map a file extension to a
Lang ; return null on no registered mapping |
static Lang |
RDFLanguages.filenameToLang(String filename)
Try to map a file name to a
Lang ; return null on no registered mapping |
static Lang |
RDFLanguages.filenameToLang(String filename,
Lang dftLang)
Try to map a file name to a
Lang ; return null on no registered mapping |
static Lang |
Lang.get(String name)
Deprecated.
|
static Lang |
Lang.get(String name,
Lang dftLang)
Deprecated.
|
Lang |
WriterDatasetRIOT.getLang() |
Lang |
RDFFormat.getLang() |
Lang |
WriterGraphRIOT.getLang() |
static Lang |
Lang.guess(String resourceIRI)
Deprecated.
|
static Lang |
Lang.guess(String resourceIRI,
Lang dftLang)
Deprecated.
|
static Lang |
RDFLanguages.nameToLang(String langName)
Turn a name for a language into a
Lang object. |
static Lang |
RDFLanguages.shortnameToLang(String label)
Map a colloquial name (e.g.
|
Modifier and Type | Method and Description |
---|---|
static Collection<Lang> |
RDFLanguages.getRegisteredLanguages() |
Modifier and Type | Method and Description |
---|---|
static boolean |
RDFWriterRegistry.contains(Lang lang)
Does the language have a registerdd output format?
|
ReaderRIOT |
ReaderRIOTFactory.create(Lang language) |
static WriterDatasetRIOT |
RDFDataMgr.createDatasetWriter(Lang lang)
Create a writer for an RDF language
|
static WriterGraphRIOT |
RDFDataMgr.createGraphWriter(Lang lang)
Create a writer for an RDF language
|
static Iterator<Quad> |
RiotReader.createIteratorQuads(InputStream input,
Lang lang,
String baseIRI)
Creates an iterator over the parsed quads
|
static Iterator<Triple> |
RiotReader.createIteratorTriples(InputStream input,
Lang lang,
String baseIRI)
Create an iterator over the parsed triples
|
static LangRIOT |
RiotReader.createParser(InputStream input,
Lang lang,
String baseIRI,
StreamRDF dest)
Create a parser
|
static LangRIOT |
RiotReader.createParser(Tokenizer tokenizer,
Lang lang,
String baseIRI,
StreamRDF dest)
Create a parser
|
static RDFFormat |
RDFWriterRegistry.defaultSerialization(Lang lang)
Return the format registered as the default for the language
|
static Lang |
RDFLanguages.filenameToLang(String filename,
Lang dftLang)
Try to map a file name to a
Lang ; return null on no registered mapping |
static Lang |
Lang.get(String name,
Lang dftLang)
Deprecated.
|
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 asscoiated with the language
|
static WriterGraphRIOTFactory |
RDFWriterRegistry.getWriterGraphFactory(Lang lang)
Get the graph writer factory asscoiated with the language
|
static Lang |
Lang.guess(String resourceIRI,
Lang dftLang)
Deprecated.
|
static boolean |
RDFLanguages.isQuads(Lang lang)
return true if the language is registered as a quads language
|
static boolean |
RDFParserRegistry.isQuads(Lang lang)
return true if the language is registered with the quads parser factories
|
static boolean |
RDFLanguages.isRegistered(Lang lang) |
static boolean |
RDFLanguages.isTriples(Lang lang)
return true if the language is registered as a triples language
|
static boolean |
RDFParserRegistry.isTriples(Lang lang)
return true if the language is registered with the triples parser factories
|
static Dataset |
RDFDataMgr.loadDataset(String uri,
Lang lang)
Create a memory Dataset and read in some data
|
static DatasetGraph |
RDFDataMgr.loadDatasetGraph(String uri,
Lang lang)
Create a memory DatasetGraph and read in some data
|
static Graph |
RDFDataMgr.loadGraph(String uri,
Lang lang)
Create a memory Graph and read in some data
|
static Model |
RDFDataMgr.loadModel(String uri,
Lang lang)
Create a memory Model and read in some data
|
static String |
WebContent.mapLangToContentType(Lang lang) |
static void |
RiotReader.parse(InputStream in,
Lang lang,
StreamRDF dest)
Parse an InputStream, using RDFParserOutput as the destination for the parser output.
|
static void |
RiotReader.parse(InputStream in,
Lang lang,
String baseIRI,
StreamRDF dest)
Parse an InputStream, using RDFParserOutput as the destination for the parser output.
|
static void |
RDFDataMgr.parse(StreamRDF sink,
InputStream in,
String base,
Lang hintLang)
Read RDF data.
|
static void |
RDFDataMgr.parse(StreamRDF sink,
InputStream in,
String base,
Lang hintLang,
Context context)
Read RDF data.
|
static void |
RDFDataMgr.parse(StreamRDF sink,
String uri,
Lang hintLang,
Context context)
Read RDF data.
|
static void |
RDFDataMgr.parse(StreamRDF sink,
String uri,
String base,
Lang hintLang,
Context context)
Read RDF data.
|
static void |
RiotReader.parse(String filename,
Lang lang,
StreamRDF dest)
Parse a file, sending output to a StreamRDF sink.
|
static void |
RiotReader.parse(String filename,
Lang lang,
String baseIRI,
StreamRDF dest)
Parse a file, sending output to a StreamRDF sink.
|
static void |
RiotReader.parseQuads(InputStream in,
Lang lang,
String baseIRI,
Sink<Quad> sink)
Parse an InputStream, sending quads to a sink.
|
static void |
RiotReader.parseQuads(String filename,
Lang lang,
String baseIRI,
Sink<Quad> sink)
Parse a file, sending quads to a sink.
|
static void |
RiotReader.parseTriples(InputStream in,
Lang lang,
String baseIRI,
Sink<Triple> sink)
Parse an InputStream, sending triples to a sink.
|
static void |
RiotReader.parseTriples(String filename,
Lang lang,
String baseIRI,
Sink<Triple> sink)
Parse a file, sending triples to a sink.
|
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,
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,
Reader in,
String base,
Lang lang)
Deprecated.
use an InputStream or a StringReader.
|
static void |
RDFDataMgr.read(DatasetGraph dataset,
String uri,
Lang hintLang)
Read quads or triples into a Dataset from the given location, with hint of language.
|
static void |
RDFDataMgr.read(DatasetGraph dataset,
String uri,
Lang hintLang,
Context context)
Read quads or triples into a Dataset from the given location.
|
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,
Context context)
Read quads or triples into a Dataset from the given location.
|
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,
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,
Reader in,
String base,
Lang lang)
Deprecated.
use an InputStream or a StringReader.
|
static void |
RDFDataMgr.read(Dataset dataset,
String uri,
Lang hintLang)
Read quads or triples into a Dataset from the given location, with hint of language.
|
static void |
RDFDataMgr.read(Dataset dataset,
String uri,
Lang hintLang,
Context context)
Read quads or triples into a Dataset from the given location.
|
static void |
RDFDataMgr.read(Dataset dataset,
StringReader in,
String base,
Lang lang)
Read quads into a dataset with chars from a StringReader.
|
static void |
RDFDataMgr.read(Dataset dataset,
String uri,
String base,
Lang hintLang,
Context context)
Read quads or triples into a Dataset from the given location.
|
static void |
RDFDataMgr.read(Graph graph,
InputStream in,
Lang lang)
Read triples into a Model with bytes from an InputStream.
|
static void |
RDFDataMgr.read(Graph graph,
InputStream in,
String base,
Lang lang)
Read triples into a Model with bytes from an InputStream.
|
static void |
RDFDataMgr.read(Graph graph,
Reader in,
String base,
Lang lang)
Deprecated.
Use an InputStream or StringReader.
|
static void |
RDFDataMgr.read(Graph graph,
String uri,
Lang hintLang)
Read triples into a Model from the given location, with a hint of the language (MIME type or short name)
|
static void |
RDFDataMgr.read(Graph graph,
String uri,
Lang hintLang,
Context context)
Read triples into a Model from the given location, with hint of language and with some parameters for the reader
|
static void |
RDFDataMgr.read(Graph graph,
StringReader in,
String base,
Lang lang)
Read triples into a model with chars from a StringReader.
|
static void |
RDFDataMgr.read(Graph graph,
String uri,
String base,
Lang hintLang)
Read triples into a Model from the given location, with hint of language and the with some parameters for the reader
|
static void |
RDFDataMgr.read(Graph graph,
String uri,
String base,
Lang hintLang,
Context context)
Read triples into a Model from the given location, with hint of language and the with some parameters for the reader
Throws parse errors depending on the language and reader; the graph may be partially updated.
|
abstract void |
ReaderRIOTBase.read(InputStream in,
String baseURI,
Lang lang,
StreamRDF output,
Context context) |
static void |
RDFDataMgr.read(Model model,
InputStream in,
Lang lang)
Read triples into a Model with bytes from an InputStream.
|
static void |
RDFDataMgr.read(Model model,
InputStream in,
String base,
Lang lang)
Read triples into a Model with bytes from an InputStream.
|
static void |
RDFDataMgr.read(Model model,
Reader in,
String base,
Lang lang)
Deprecated.
Use an InputStream or StringReader.
|
static void |
RDFDataMgr.read(Model model,
String uri,
Lang hintLang)
Read triples into a Model from the given location, with a hint of the language (MIME type)
|
static void |
RDFDataMgr.read(Model model,
String uri,
Lang hintLang,
Context context)
Read triples into a Model from the given location, with hint of language and the with some parameters for the reader
|
static void |
RDFDataMgr.read(Model model,
StringReader in,
String base,
Lang lang)
Read triples into a model with chars from a StringReader.
|
static void |
RDFDataMgr.read(Model model,
String uri,
String base,
Lang hintLang)
Read triples into a Model from the given location, with hint of language and with some parameters for the reader
|
static void |
RDFDataMgr.read(Model model,
String uri,
String base,
Lang hintLang,
Context context)
Read triples into a Model from the given location, with hint of language
and with some parameters for the reader.
|
static void |
RDFLanguages.register(Lang lang)
Register a language.
|
static void |
RDFWriterRegistry.register(Lang lang,
RDFFormat format)
Register the default serialization for the language
|
static void |
RDFParserRegistry.registerLangQuads(Lang lang,
ReaderRIOTFactory factory)
Register a language and it's parser factory.
|
static void |
RDFParserRegistry.registerLangTriples(Lang lang,
ReaderRIOTFactory factory)
Register a language and it's parser factory.
|
static void |
RDFParserRegistry.removeRegistration(Lang lang)
Remove registration
|
static boolean |
RDFLanguages.sameLang(Lang lang1,
Lang lang2) |
static void |
RDFLanguages.unregister(Lang lang)
Remove a regsitration of a language - this also removes all recorded mapping
of content types and file extensions.
|
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(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,
Graph graph,
Lang lang)
Write the graph to the output stream in the default serialization for the language.
|
static void |
RDFDataMgr.write(OutputStream out,
Model model,
Lang lang)
Write the model 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 |
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,
Graph graph,
Lang lang)
Write the graph to the output stream in the default serialization for the language.
|
static void |
RDFDataMgr.write(StringWriter out,
Model model,
Lang lang)
Write the graph to the output stream in the default serialization for the language.
|
Constructor and Description |
---|
RDFFormat(Lang lang) |
RDFFormat(Lang lang,
RDFFormatVariant variant) |
Modifier and Type | Method and Description |
---|---|
abstract Lang |
AdapterRDFWriter.getLang() |
Modifier and Type | Method and Description |
---|---|
Lang |
LangNQuads.getLang() |
Lang |
LangTurtle.getLang() |
Lang |
LangNull.getLang() |
Lang |
LangNTriples.getLang() |
Lang |
LangRIOT.getLang() |
Lang |
LangTriG.getLang() |
Lang |
LangRDFJSON.getLang() |
Lang |
LangRDFXML.getLang() |
Modifier and Type | Method and Description |
---|---|
static ParserProfile |
RiotLib.profile(Lang lang,
String baseIRI) |
static ParserProfile |
RiotLib.profile(Lang lang,
String baseIRI,
ErrorHandler handler) |
Modifier and Type | Method and Description |
---|---|
Lang |
TriGWriterBase.getLang() |
Lang |
RDFXMLPlainWriter.getLang() |
Lang |
RDFJSONWriter.getLang() |
Lang |
TurtleWriterBase.getLang() |
Lang |
RDFXMLAbbrevWriter.getLang() |
Lang |
NullWriter.getLang() |
Lang |
NQuadsWriter.getLang() |
Lang |
NTriplesWriter.getLang() |
Modifier and Type | Field and Description |
---|---|
static Lang |
Lang.N3
Deprecated.
Use constant from
RDFLanguages |
static Lang |
Lang.NQUADS
Deprecated.
Use constant from
RDFLanguages |
static Lang |
Lang.NTRIPLES
Deprecated.
Use constant from
RDFLanguages |
static Lang |
Lang.RDFJSON
Deprecated.
Use constant from
RDFLanguages |
static Lang |
Lang.RDFXML
Deprecated.
Use constant from
RDFLanguages |
static Lang |
Lang.TRIG
Deprecated.
Use constant from
RDFLanguages |
static Lang |
Lang.TURTLE
Deprecated.
Use constant from
RDFLanguages |
Modifier and Type | Method and Description |
---|---|
static Iterator<Quad> |
RiotReader.createIteratorQuads(InputStream input,
Lang lang,
String baseIRI)
Deprecated.
|
static Iterator<Triple> |
RiotReader.createIteratorTriples(InputStream input,
Lang lang,
String baseIRI)
Deprecated.
|
static LangRIOT |
RiotReader.createParserQuads(InputStream input,
Lang lang,
String baseIRI,
StreamRDF dest)
Deprecated.
Create a parser for a quads (or triples) language
|
static LangRIOT |
RiotReader.createParserQuads(Tokenizer tokenizer,
Lang lang,
String baseIRI,
StreamRDF dest)
Deprecated.
Create a parser for a quads language
|
static LangRIOT |
RiotReader.createParserTriples(InputStream input,
Lang lang,
String baseIRI,
StreamRDF dest)
Deprecated.
Create a parser for a triples language
|
static LangRIOT |
RiotReader.createParserTriples(Tokenizer tokenizer,
Lang lang,
String baseIRI,
StreamRDF dest)
Deprecated.
Create a parser for a triples language
|
static void |
RiotReader.parseQuads(InputStream in,
Lang lang,
String baseIRI,
Sink<Quad> sink)
Deprecated.
Parse an InputStream, sending quads to a sink.
|
static void |
RiotReader.parseQuads(InputStream in,
Lang lang,
String baseIRI,
StreamRDF dest)
Deprecated.
Parse an InputStream, sending quads to a sink.
|
static void |
RiotReader.parseQuads(String filename,
Lang lang,
String baseIRI,
Sink<Quad> sink)
Deprecated.
Parse a file, sending quads to a sink.
|
static void |
RiotReader.parseQuads(String filename,
Lang lang,
String baseIRI,
StreamRDF dest)
Deprecated.
Parse a file, sending quads to a sink.
|
static void |
RiotReader.parseTriples(InputStream in,
Lang lang,
String baseIRI,
Sink<Triple> sink)
Deprecated.
Parse an InputStream, sending triples to a sink.
|
static void |
RiotReader.parseTriples(InputStream in,
Lang lang,
String baseIRI,
StreamRDF dest)
Deprecated.
Parse an InputStream, sending triples to a sink.
|
static void |
RiotReader.parseTriples(String filename,
Lang lang,
String baseIRI,
Sink<Triple> sink)
Deprecated.
Parse a file, sending triples to a sink.
|
static void |
RiotReader.parseTriples(String filename,
Lang lang,
String baseIRI,
StreamRDF dest)
Deprecated.
Parse a file, sending triples to a sink.
|
static void |
WebReader.readDataset(DatasetGraph dataset,
String uri,
Lang lang)
Deprecated.
Use org.apache.jena.riot.WebReader.read
|
static void |
WebReader.readGraph(Graph graph,
String uri,
Lang lang)
Deprecated.
Use org.apache.jena.riot.WebReader.read
|
Licenced under the Apache License, Version 2.0