Uses of Class
org.apache.jena.riot.Lang
Packages that use 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
Methods in org.apache.jena.query with parameters of type LangModifier and TypeMethodDescriptionSet the accept header on GET requests.static voidstatic voidResultSetFormatter.output(OutputStream outStream, boolean result, Lang resultFormat) static voidResultSetFormatter.output(OutputStream outStream, ResultSet resultSet, Lang resultFormat) static void -
Uses of Lang in org.apache.jena.riot
Fields in org.apache.jena.riot declared as LangModifier and TypeFieldDescriptionstatic LangLang.CSV"CSV" - Used in various ways.static LangLang.JSONLDstatic final LangRDFLanguages.JSONLDThe standard JSON-LD registration.static LangLang.JSONLD11JSONLD 1.1static final LangRDFLanguages.JSONLD11static LangLang.N3N3 (treat as Turtle)static final LangRDFLanguages.N3N3 (treat as Turtle)static LangLang.NQAlternative constantNQUADSstatic final LangRDFLanguages.NQAlternative constantRDFLanguages.NQUADSstatic LangLang.NQUADSstatic final LangRDFLanguages.NQUADSstatic LangLang.NTAlternative constant forNTRIPLESstatic final LangRDFLanguages.NTAlternative constant forRDFLanguages.NTRIPLESstatic LangLang.NTRIPLESstatic final LangRDFLanguages.NTRIPLESstatic LangLang.RDFJSONstatic final LangRDFLanguages.RDFJSONstatic LangLang.RDFNULLThe "null" languagestatic final LangRDFLanguages.RDFNULLThe "null" languagestatic LangLang.RDFPROTOThe RDF syntax RDF Thriftstatic final LangRDFLanguages.RDFPROTOstatic LangLang.RDFRAWOutput-only language for a StreamRDF (for development)static final LangRDFLanguages.RDFRAWOutput-only language for a StreamRDF (for development)static LangLang.RDFTHRIFTThe RDF syntax RDF Thriftstatic final LangRDFLanguages.RDFTHRIFTThe RDF syntax RDF Thriftstatic LangLang.RDFXMLstatic final LangRDFLanguages.RDFXMLstatic LangLang.SHACLCSHACL Compact Syntax (2020-07-01)static final LangRDFLanguages.SHACLCSHACL Compact Syntax (2020-07-01)static final LangRDFLanguages.TEXTTextstatic LangLang.TRIGstatic final LangRDFLanguages.TRIGstatic LangLang.TRIXstatic final LangRDFLanguages.TRIXTriXstatic LangLang.TSV"TSV" - Used in various ways.static LangLang.TTLAlternative constant forTURTLEstatic final LangRDFLanguages.TTLAlternative constant forRDFLanguages.TURTLEstatic LangLang.TURTLEstatic final LangRDFLanguages.TURTLEMethods in org.apache.jena.riot that return LangModifier and TypeMethodDescriptionLangBuilder.build()Construct theLangstatic LangRDFLanguages.contentTypeToLang(String contentType) Map a content type (without charset) to aLangstatic LangRDFLanguages.contentTypeToLang(ContentType ct) Map a content type (without charset) to aLangstatic LangWebContent.contentTypeToLangResultSet(String contentType) Map content-type to lang for SPARQL results, with pragmatic adapters.static LangRDFDataMgr.determineLang(String target, String ctStr, Lang hintLang) Determine the Lang, given the URI target, any content type header string and a hintstatic LangRDFLanguages.fileExtToLang(String ext) Try to map a file extension to aLang; return null on no registered mappingstatic LangRDFLanguages.filenameToLang(String uriOrFilename) Try to map a file name to aLang; return null on no registered mapping.static LangRDFLanguages.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 LangRDFLanguages.nameToLang(String langName) Turn a name for a language into aLangobject.static LangRDFLanguages.pathnameToLang(String pathname) Try to map a URI or URI path name to aLang; return null on no registered mapping.static LangRDFLanguages.resourceNameToLang(String resourceName) Try to map a resource name to aLang; return null on no registered mappingstatic LangRDFLanguages.resourceNameToLang(String resourceName, Lang dftLang) Try to map a resource name to aLang; return the given default where there is no registered mappingstatic LangRDFLanguages.shortnameToLang(String label) Map a colloquial name (e.g.Methods in org.apache.jena.riot that return types with arguments of type LangModifier 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.Methods in org.apache.jena.riot with parameters of type LangModifier and TypeMethodDescriptionstatic StringGenerate a string in the specified language/syntax for a SPARQL boolean result.static StringGenerate a string in the specified language/syntax for a SPARQL result set.static booleanDoes 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 RDFFormatRDFWriterRegistry.defaultSerialization(Lang lang) Return the format registered as the default for the languagestatic ContentTypeWebContent.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 LangRDFDataMgr.determineLang(String target, String ctStr, Lang hintLang) Determine the Lang, given the URI target, any content type header string and a hintstatic LangRDFLanguages.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 RDFParserBuilderRDFParser.fromString(String string, Lang lang) Create anRDFParserBuilderand set content to be parsed together with the RDF syntax language.static ReaderRIOTFactoryRDFParserRegistry.getFactory(Lang language) Return the parser factory for the language, or null if not registered.static WriterDatasetRIOTFactoryRDFWriterRegistry.getWriterDatasetFactory(Lang lang) Get the dataset writer factory associated with the languagestatic WriterGraphRIOTFactoryRDFWriterRegistry.getWriterGraphFactory(Lang lang) Get the graph writer factory associated with the languagestatic booleanRDFLanguages.hasRegisteredParser(Lang lang) return true if the language is registered for parsing as an RDF syntax.static booleanreturn true if the language is registered as a quads language.static booleanreturn true if the language is registered with the quads parser factoriesstatic booleanRDFLanguages.isRegistered(Lang lang) Is this language registered?static booleanRDFParserRegistry.isRegistered(Lang lang) return true if the language has a registered parser.static booleanreturn true if the language is registered as a triples language.static booleanreturn 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 DatasetRDFDataMgr.loadDataset(String uri, Lang lang) Create a memory Dataset and read in some datastatic DatasetGraphRDFDataMgr.loadDatasetGraph(String uri, Lang lang) Create a memory DatasetGraph and read in some datastatic org.apache.jena.graph.GraphCreate a memory Graph and read in some datastatic org.apache.jena.rdf.model.ModelCreate a memory Model and read in some datastatic ResultSetRead ResultSet.static voidRDFDataMgr.read(org.apache.jena.graph.Graph graph, InputStream in, String base, Lang lang) Read triples into a Model with bytes from an InputStream.static voidRDFDataMgr.read(org.apache.jena.graph.Graph graph, InputStream in, Lang lang) Read triples into a Model with bytes from an InputStream.static voidRDFDataMgr.read(org.apache.jena.graph.Graph graph, StringReader in, String base, Lang lang) Read triples into a model with chars from a StringReader.static voidRead triples into a Model from the given location, with a hint of language.static voidRead triples into a Model from the given location, with a hint of the language (MIME type or short name)static voidRDFDataMgr.read(Dataset dataset, InputStream in, String base, Lang lang) Read quads or triples into a dataset with bytes from an input stream.static voidRDFDataMgr.read(Dataset dataset, InputStream in, Lang lang) Read quads or triples into a dataset with bytes from an input stream.static voidRDFDataMgr.read(Dataset dataset, StringReader in, String base, Lang lang) Read quads into a dataset with chars from a StringReader.static voidRead quads or triples into a Dataset from the given location, with a hint of the language.static voidRead quads or triples into a Dataset from the given location, with a hint of the language.static voidRDFDataMgr.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 voidRDFDataMgr.read(org.apache.jena.rdf.model.Model model, InputStream in, Lang lang) Read triples into a Model with bytes from an InputStream.static voidRDFDataMgr.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 voidRead triples into a Model from the given location, with a hint of language.static voidRead triples into a Model from the given location, with a hint of the language (MIME type)static voidRDFDataMgr.read(DatasetGraph dataset, InputStream in, String base, Lang lang) Read quads or triples into a dataset with bytes from an input stream.static voidRDFDataMgr.read(DatasetGraph dataset, InputStream in, Lang lang) Read quads or triples into a dataset with bytes from an input stream.static voidRDFDataMgr.read(DatasetGraph dataset, StringReader in, String base, Lang lang) Read quads into a dataset with chars from a StringReader.static voidRDFDataMgr.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 voidRDFDataMgr.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 voidstatic ResultSetResultSetMgr.read(InputStream input, Lang lang) static ResultSetRead from aURL(including filenames) and produce aResultSet; the stream is expect to use syntaxlang.static booleanResultSetMgr.readBoolean(InputStream input, Lang lang) Read a boolean result from the URI; the input is expect to use syntaxlangstatic booleanResultSetMgr.readBoolean(String urlOrFilename, Lang lang) Read a boolean result from the URI; the input is expect to use syntaxlangstatic voidRegister a language.static voidRegister the default serialization for the language (replace any existing registration).static voidRDFParserRegistry.registerLangQuads(Lang lang, ReaderRIOTFactory factory) Register a language and its parser factory.static voidRDFParserRegistry.registerLangTriples(Lang lang, ReaderRIOTFactory factory) Register a language and its parser factory.static voidRDFParserRegistry.removeRegistration(Lang lang) Remove registrationstatic LangRDFLanguages.resourceNameToLang(String resourceName, Lang dftLang) Try to map a resource name to aLang; return the given default where there is no registered mappingstatic booleanstatic voidRDFLanguages.unregister(Lang lang) Remove a registration of a language - this also removes all recorded mapping of content types and file extensions.static voidRDFDataMgr.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 voidRDFDataMgr.write(OutputStream out, Dataset dataset, Lang lang) Write the Dataset to the output stream in the default serialization for the language.static voidRDFDataMgr.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 voidRDFDataMgr.write(OutputStream out, DatasetGraph dataset, Lang lang) Write the DatasetGraph to the output stream in the default serialization for the language.static voidRDFDataMgr.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 voidRDFDataMgr.write(StringWriter out, Dataset dataset, Lang lang) Write the graph to the output stream in the default serialization for the language.static voidRDFDataMgr.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 voidRDFDataMgr.write(StringWriter out, DatasetGraph dataset, Lang lang) Write the DatasetGraph to the output stream in the default serialization for the language.static voidResultSetMgr.write(OutputStream output, boolean result, Lang lang) Write a SPARQL boolean result to the output stream in the specified language/syntax.static voidResultSetMgr.write(OutputStream output, ResultSet resultSet, Lang lang) Write a SPARQL result set to the output stream in the specified language/syntax.Constructors in org.apache.jena.riot with parameters of type Lang -
Uses of Lang in org.apache.jena.riot.adapters
Methods in org.apache.jena.riot.adapters that return LangConstructors in org.apache.jena.riot.adapters with parameters of type Lang -
Uses of Lang in org.apache.jena.riot.lang
Methods in org.apache.jena.riot.lang that return LangModifier and TypeMethodDescriptionLangNQuads.getLang()LangNTriples.getLang()LangRDFJSON.getLang()LangRIOT.getLang()LangTriG.getLang()LangTurtle.getLang()Constructors in org.apache.jena.riot.lang with parameters of type LangModifierConstructorDescriptionLangJSONLD11(Lang language, ParserProfile profile, ErrorHandler errorHandler) -
Uses of Lang in org.apache.jena.riot.lang.extra
Fields in org.apache.jena.riot.lang.extra declared as Lang -
Uses of Lang in org.apache.jena.riot.lang.rdfxml
Fields in org.apache.jena.riot.lang.rdfxml declared as LangModifier and TypeFieldDescriptionstatic final LangRRX.RDFXML_ARP1Deprecated, for removal: This API element is subject to removal in a future version.To be removed.static final LangRRX.RDFXML_SAXRDF/XML implemented by RRX-SAXstatic final LangRRX.RDFXML_StAX_evRDF/XML implemented by RRX-StAXevstatic final LangRRX.RDFXML_StAX_srRDF/XML implemented by RRX-StAXsr -
Uses of Lang in org.apache.jena.riot.protobuf
Methods in org.apache.jena.riot.protobuf that return Lang -
Uses of Lang in org.apache.jena.riot.resultset
Fields in org.apache.jena.riot.resultset declared as LangModifier and TypeFieldDescriptionstatic final LangResultSetLang.RS_CSVstatic final LangResultSetLang.RS_JSONstatic final LangResultSetLang.RS_Nonestatic final LangResultSetLang.RS_Protobufstatic final LangResultSetLang.RS_Textstatic final LangResultSetLang.RS_Thriftstatic final LangResultSetLang.RS_TSVstatic final LangResultSetLang.RS_XMLSPARQL results in XML syntaxMethods in org.apache.jena.riot.resultset that return types with arguments of type LangModifier and TypeMethodDescriptionResultSetReaderRegistry.registered()Return registered result set languages.ResultSetWriterRegistry.registered()All registered languagesMethods in org.apache.jena.riot.resultset with parameters of type LangModifier and TypeMethodDescriptionstatic ResultSetReaderFactoryResultSetReaderRegistry.getFactory(Lang lang) Lookup aLangto get the registeredResultSetReaderFactory(or null)static ResultSetWriterFactoryResultSetWriterRegistry.getFactory(Lang lang) Lookup aLangto get the registeredResultSetReaderFactory(or null)static booleanResultSetLang.isRegistered(Lang lang) Is a lang a registeredResultSetLang?static booleanResultSetReaderRegistry.isRegistered(Lang lang) Test whetherLangis registered as a result set syntax.static booleanResultSetWriterRegistry.isRegistered(Lang lang) static voidResultSetReaderRegistry.register(Lang lang, ResultSetReaderFactory factory) Register aResultSetReaderFactoryfor aLangstatic voidResultSetWriterRegistry.register(Lang lang, ResultSetWriterFactory factory) Register aResultSetWriterFactoryfor aLang -
Uses of Lang in org.apache.jena.riot.rowset
Methods in org.apache.jena.riot.rowset with parameters of type LangModifier and TypeMethodDescriptionstatic RowSetReaderRowSetReader.createReader(Lang lang) Convenience operation - create aRowSetReaderforLangor return null.static RowSetReaderRowSetReaderRegistry.createReader(Lang lang) Create aRowSetReaderforLangor return null.Provide aLangfor the parser.static RowSetReaderFactoryRowSetReaderRegistry.getFactory(Lang lang) Lookup aLangto get the registeredRowSetReaderFactory(or null)static RowSetWriterFactoryRowSetWriterRegistry.getFactory(Lang lang) Lookup aLangto get the registeredRowSetReaderFactory(or null)static booleanRowSetReaderRegistry.isRegistered(Lang lang) Test whetherLangis registered as a result set syntax.static booleanRowSetWriterRegistry.isRegistered(Lang lang) Provide aLangfor the parser.static voidRowSetReaderRegistry.register(Lang lang, RowSetReaderFactory factory) Register aRowSetReaderFactoryfor aLangstatic voidRowSetWriterRegistry.register(Lang lang, RowSetWriterFactory factory) Register aRowSetReaderFactoryfor aLang -
Uses of Lang in org.apache.jena.riot.system
Methods in org.apache.jena.riot.system with parameters of type LangModifier and TypeMethodDescriptionstatic voidAsyncParser.asyncParse(InputStream input, Lang lang, String baseURI, StreamRDF output) Function to that parses anInputStreamon 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 RDFFormatStreamRDFWriter.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 StreamRDFStreamRDFWriter.getWriterStream(OutputStream output, Lang lang) Get a StreamRDF destination that will output in syntaxLangand is guaranteed to do so in a scaling, streaming fashion.static StreamRDFStreamRDFWriter.getWriterStream(OutputStream output, Lang lang, Context context) Get a StreamRDF destination that will output in syntaxLangand is guaranteed to do so in a scaling, streaming fashion.static AsyncParserBuilderAsyncParser.of(InputStream input, Lang lang, String baseURI) Create anAsyncParserBuilderfrom an input stream.static ParserProfileRiotLib.profile(Lang lang, String baseIRI, ErrorHandler handler) static voidRegister the default serialization for the language (replace any existing registration).voidRegister the default serialization for the language (replace any existing registration).static booleanStreamRDFWriter.registered(Lang lang) static voidStreamRDFWriter.write(OutputStream output, org.apache.jena.graph.Graph graph, Lang lang, Context context) Write a Graph in streaming fashionstatic voidStreamRDFWriter.write(OutputStream output, DatasetGraph datasetGraph, Lang lang) Write a DatasetGraph in streaming fashionstatic voidStreamRDFWriter.write(OutputStream output, DatasetGraph datasetGraph, Lang lang, Context context) Write a DatasetGraph in streaming fashion -
Uses of Lang in org.apache.jena.riot.thrift
Methods in org.apache.jena.riot.thrift that return Lang -
Uses of Lang in org.apache.jena.riot.writer
Methods in org.apache.jena.riot.writer that return Lang -
Uses of Lang in org.apache.jena.sparql.exec
Methods in org.apache.jena.sparql.exec with parameters of type LangModifier and TypeMethodDescriptionstatic RowSetRowSetFactory.read(InputStream in, Lang lang) static booleanRowSetFactory.readBoolean(InputStream in, Lang lang) -
Uses of Lang in org.apache.jena.sparql.exec.http
Methods in org.apache.jena.sparql.exec.http with parameters of type Lang -
Uses of Lang in org.apache.jena.sparql.resultset
Methods in org.apache.jena.sparql.resultset that return LangMethods in org.apache.jena.sparql.resultset with parameters of type Lang
AsyncParser.asyncParseQuads(java.lang.String)or for N-Triples,IteratorParsers.createIteratorNQuads(java.io.InputStream)