java.lang.Object
org.apache.jena.riot.SysRIOT
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Deprecated.static String
chooseBaseIRI
(String baseURI) Deprecated.static String
chooseBaseIRI
(String baseIRI, String fileOrIri) Choose base IRI, from a given one and a filename.static String
filename2baseIRI
(String filename) static String
fmtMessage
(String message, long line, long col) static org.slf4j.Logger
static boolean
static void
setDefaultJSONLD
(String version) Flip between JSON-LD 1.0 and JSON-LD 1.1 as the default parser for JSON-LD (Lang.JSONLD
).static void
setStrictMode
(boolean state)
-
Field Details
-
riotLoggerName
- See Also:
-
sysRdfWriterProperties
-
sysRdfReaderProperties
Context key for old style RDFReader properties. The value of this in aContext
must be aMap<String, Object>
. The entries of the map are used to set reader properties before the RDFReader is called. Only has any effect on RDF/XML -
sysStreamManager
Context key for the StreamManager
-
-
Constructor Details
-
SysRIOT
public SysRIOT()
-
-
Method Details
-
setStrictMode
public static void setStrictMode(boolean state) -
isStrictMode
public static boolean isStrictMode() -
fmtMessage
-
getLogger
public static org.slf4j.Logger getLogger() -
chooseBaseIRI
Deprecated.UseIRIs.getBaseStr();
-
chooseBaseIRI
Deprecated.Return a URI suitable for a baseURI, based on some input (which may be null). -
chooseBaseIRI
Choose base IRI, from a given one and a filename. Prefer the given base; turn any filename into an IRI which is resolved as well. -
filename2baseIRI
-
setDefaultJSONLD
Flip between JSON-LD 1.0 and JSON-LD 1.1 as the default parser for JSON-LD (
Lang.JSONLD
). Both are available asLang.JSONLD10
andLang.JSONLD11
respectively.This function controls the setting of content type "application/ld+json" and
Lang.JSONLD
for input (parsing).This function is not a permanent API.
The default output is currently fixed as JSON-LD 1.1. A specific version can be obtained by choosing the versioned language name,
Lang.JSONLD10
orLang.JSONLD11
.Apache Jena uses jsonld-java for JSON-LD 1.0 and Titanium for JSON-LD 1.1.
We are grateful to each of communities for the work in implementing and maintaining these projects.
- Parameters:
version
- A string that is either "1.1" or "1.0" or "" (reset to system installation default)
-
IRIs.getBaseStr();