Modifier and Type | Method and Description |
---|---|
static Lang |
ResultsFormat.convert(ResultsFormat fmt) |
Modifier and Type | Field and Description |
---|---|
static Lang |
RDFLanguages.CSV
CSV data.
|
static Lang |
Lang.CSV
"CSV" - CSV data read into an RDF model with simple conversion : See Jena-625
|
static Lang |
RDFLanguages.JSONLD
|
static Lang |
Lang.JSONLD
|
static Lang |
RDFLanguages.N3
N3 (treat as Turtle)
|
static Lang |
Lang.N3
N3 (treat as Turtle)
|
static Lang |
RDFLanguages.NQ
Alternative constant
RDFLanguages.NQUADS |
static Lang |
Lang.NQ
Alternative constant
NQUADS |
static Lang |
RDFLanguages.NQUADS
|
static Lang |
Lang.NQUADS
|
static Lang |
RDFLanguages.NT
Alternative constant for
RDFLanguages.NTRIPLES |
static Lang |
Lang.NT
Alternative constant for
NTRIPLES |
static Lang |
RDFLanguages.NTRIPLES
|
static Lang |
Lang.NTRIPLES
|
static Lang |
RDFLanguages.RDFJSON
|
static Lang |
Lang.RDFJSON
|
static Lang |
RDFLanguages.RDFNULL
The "null" language
|
static Lang |
Lang.RDFNULL
The "null" language
|
static Lang |
Lang.RDFTHRIFT |
static Lang |
RDFLanguages.RDFXML
|
static Lang |
Lang.RDFXML
|
static Lang |
RDFLanguages.TEXT
Text
|
static Lang |
RDFLanguages.THRIFT
The RDF syntax "RDF Thrift" : see http://jena.apache.org/documentation/io
|
static Lang |
RDFLanguages.TRIG
|
static Lang |
Lang.TRIG
|
static Lang |
RDFLanguages.TRIX
TriX
|
static Lang |
Lang.TRIX
|
static Lang |
RDFLanguages.TTL
Alternative constant for
RDFLanguages.TURTLE |
static Lang |
Lang.TTL
Alternative constant for
TURTLE |
static Lang |
RDFLanguages.TURTLE
|
static Lang |
Lang.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 |
RDFDataMgr.determineLang(String target,
String ctStr,
Lang hintLang)
Determine the Lang, given the URI target, any content type header string and a hint
|
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 the given default where there is no registered mapping |
Lang |
WriterDatasetRIOT.getLang() |
Lang |
WriterGraphRIOT.getLang() |
Lang |
RDFFormat.getLang() |
static Lang |
RDFLanguages.nameToLang(String langName)
Turn a name for a language into a
Lang object. |
static Lang |
RDFLanguages.resourceNameToLang(String resourceName)
Try to map a resource name to a
Lang ; return null on no registered mapping |
static Lang |
RDFLanguages.resourceNameToLang(String resourceName,
Lang dftLang)
Try to map a resource name to a
Lang ; return the given default where there is no registered mapping |
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 registered 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)
Deprecated.
|
static LangRIOT |
RiotReader.createParser(Reader input,
Lang lang,
String baseIRI,
StreamRDF dest)
Deprecated.
|
static LangRIOT |
RiotReader.createParser(Tokenizer tokenizer,
Lang lang,
String baseIRI,
StreamRDF dest)
Deprecated.
|
static ReaderRIOT |
RDFDataMgr.createReader(Lang lang) |
static RDFFormat |
RDFWriterRegistry.defaultSerialization(Lang lang)
Return the format registered as the default for the language
|
static 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 hint
|
static Lang |
RDFLanguages.filenameToLang(String filename,
Lang dftLang)
Try to map a file name to a
Lang ; return the given default where there is no registered mapping |
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 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 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,
Lang lang)
Read RDF data.
|
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,
Reader in,
Lang lang)
Deprecated.
Use an InputStream or a StringReader.
|
static void |
RDFDataMgr.parse(StreamRDF sink,
Reader in,
String base,
Lang hintLang)
Deprecated.
Use an InputStream or a StringReader.
|
static void |
RDFDataMgr.parse(StreamRDF sink,
Reader in,
String base,
Lang hintLang,
Context context)
Deprecated.
Use an InputStream or a StringReader.
|
static void |
RDFDataMgr.parse(StreamRDF sink,
String uri,
Lang lang)
Read RDF data.
|
static void |
RDFDataMgr.parse(StreamRDF sink,
String uri,
Lang hintLang,
Context context)
Read RDF data.
|
static void |
RDFDataMgr.parse(StreamRDF sink,
StringReader in,
Lang lang)
Read RDF data.
|
static void |
RDFDataMgr.parse(StreamRDF sink,
StringReader in,
String base,
Lang hintLang)
Read RDF data.
|
static void |
RDFDataMgr.parse(StreamRDF sink,
StringReader in,
String base,
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 ResultSet |
ResultSetMgr.parse(String uri,
Lang hintLang,
Context context)
Read ResultSet.
|
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)
Read quads or triples into a Dataset from the given location, with hint of language.
|
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)
Read quads or triples into a Dataset from the given location, with hint of language.
|
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.
|
static ResultSet |
ResultSetMgr.read(InputStream in,
Lang lang)
|
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 ResultSet |
ResultSetMgr.read(String uri,
Lang lang)
Read a result set from the URI, in the specified syntax
|
static void |
RDFLanguages.register(Lang lang)
Register a language.
|
static void |
RDFWriterRegistry.register(Lang lang,
RDFFormat format)
Register the default serialization for the language (replace any existing
registration).
|
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 Lang |
RDFLanguages.resourceNameToLang(String resourceName,
Lang dftLang)
Try to map a resource name to a
Lang ; return the given default where there is no registered mapping |
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 |
ResultSetMgr.write(OutputStream out,
boolean result,
Lang lang)
Write a SPARQL boolean result to the output stream in the specified language/syntax.
|
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 |
ResultSetMgr.write(OutputStream out,
ResultSet resultSet,
Lang lang)
Write a SPARQL result set to the output stream in the specified language/syntax.
|
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.
|
static void |
RDFDataMgr.write(Writer out,
Graph graph,
Lang lang)
Deprecated.
Use of writers is deprecated - use an OutputStream
|
static void |
RDFDataMgr.write(Writer out,
Model model,
Lang lang)
Deprecated.
Use of writers is deprecated - use an OutputStream
|
Constructor and Description |
---|
RDFFormat(Lang lang) |
RDFFormat(Lang lang,
RDFFormatVariant variant) |
Modifier and Type | Method and Description |
---|---|
abstract Lang |
AdapterRDFWriter.getLang() |
Constructor and Description |
---|
RDFReaderRIOT(Lang hintlang) |
Modifier and Type | Method and Description |
---|---|
Lang |
LangNQuads.getLang() |
Lang |
LangRIOT.getLang() |
Lang |
LangTurtle.getLang() |
Lang |
LangRDFJSON.getLang() |
Lang |
LangNull.getLang() |
Lang |
LangCSV.getLang() |
Lang |
LangTriG.getLang() |
Lang |
LangRDFXML.getLang() |
Lang |
LangNTriples.getLang() |
Modifier and Type | Method and Description |
---|---|
Lang |
JsonLDWriter.getLang() |
Modifier and Type | Field and Description |
---|---|
static Lang |
ResultSetLang.SPARQLResultSetCSV |
static Lang |
ResultSetLang.SPARQLResultSetJSON |
static Lang |
ResultSetLang.SPARQLResultSetText |
static Lang |
ResultSetLang.SPARQLResultSetThrift |
static Lang |
ResultSetLang.SPARQLResultSetTSV |
static Lang |
ResultSetLang.SPARQLResultSetXML |
Modifier and Type | Method and Description |
---|---|
ResultSetWriter |
ResultSetWriterFactory.create(Lang lang) |
ResultSetReader |
ResultSetReaderFactory.create(Lang lang) |
static ResultSetReaderFactory |
ResultSetReaderRegistry.getFactory(Lang lang)
Lookup a
Lang to get the registered ResultSetReaderFactory (or null) |
static ResultSetWriterFactory |
ResultSetWriterRegistry.lookup(Lang lang)
Lookup a
Lang to get the registered ResultSetReaderFactory (or null) |
static void |
ResultSetReaderRegistry.register(Lang lang,
ResultSetReaderFactory factory)
Register a
ResultSetReaderFactory for a Lang |
static void |
ResultSetWriterRegistry.register(Lang lang,
ResultSetWriterFactory factory)
Register a
ResultSetReaderFactory for a Lang |
Modifier and Type | Method and Description |
---|---|
RDFFormat |
StreamRDFWriter.WriterRegistry.choose(Lang lang) |
static RDFFormat |
StreamRDFWriter.defaultSerialization(Lang lang)
Return the format registered as the default for the language
|
RDFFormat |
StreamRDFWriter.WriterRegistry.defaultSerialization(Lang lang)
Return the format registered as the default for the language
|
static StreamRDF |
StreamRDFWriter.getWriterStream(OutputStream output,
Lang lang)
Get a StreamRDF destination that will output in syntax Lang
and is guaranteed to do so in a scaling, streaming fashion.
|
static ParserProfile |
RiotLib.profile(Lang lang,
String baseIRI) |
static ParserProfile |
RiotLib.profile(Lang lang,
String baseIRI,
ErrorHandler handler) |
static void |
StreamRDFWriter.register(Lang lang,
RDFFormat format)
Register the default serialization for the language (replace any existing registration).
|
void |
StreamRDFWriter.WriterRegistry.register(Lang lang,
RDFFormat format)
Register the default serialization for the language (replace any existing registration).
|
static boolean |
StreamRDFWriter.registered(Lang lang) |
static void |
StreamRDFWriter.write(OutputStream output,
DatasetGraph datasetGraph,
Lang lang)
Write a DatasetGraph in streaming fashion
|
static void |
StreamRDFWriter.write(OutputStream output,
Graph graph,
Lang lang)
Write a Graph in streaming fashion
|
Modifier and Type | Method and Description |
---|---|
Lang |
WriterGraphThrift.getLang() |
Lang |
WriterDatasetThrift.getLang() |
Modifier and Type | Method and Description |
---|---|
Lang |
RDFXMLPlainWriter.getLang() |
Lang |
TriGWriterBase.getLang() |
Lang |
WriterTriX.getLang() |
Lang |
TurtleWriterBase.getLang() |
Lang |
RDFJSONWriter.getLang() |
Lang |
NTriplesWriter.getLang() |
Lang |
RDFXMLAbbrevWriter.getLang() |
Lang |
NullWriter.getLang() |
Lang |
NQuadsWriter.getLang() |
Licenced under the Apache License, Version 2.0