public class JsonLDReader extends Object implements ReaderRIOT
Context, and setting the RIOT.JSONLD_CONTEXT Symbol's value
to the data expected by JSON-LD java API (a Map).| Modifier and Type | Field and Description |
|---|---|
static String |
BLANK_NODE |
static String |
IRI |
static String |
LITERAL |
| Constructor and Description |
|---|
JsonLDReader(Lang lang,
ParserProfile profile,
ErrorHandler errorHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
read(InputStream in,
String baseURI,
ContentType ct,
StreamRDF output,
Context context)
Read from an InputStream and output RDF on the StreamRDF.
|
void |
read(Reader reader,
String baseURI,
ContentType ct,
StreamRDF output,
Context context)
Read from an InputStream and output RDF on the StreamRDF.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetParserProfile, setParserProfilepublic static String LITERAL
public static String BLANK_NODE
public static String IRI
public JsonLDReader(Lang lang, ParserProfile profile, ErrorHandler errorHandler)
public void read(Reader reader, String baseURI, ContentType ct, StreamRDF output, Context context)
ReaderRIOTread in interface ReaderRIOTreader - Reader. InputStreams are preferred because Reader do not allow RIOT to set the character set.baseURI - Base URI (or null)ct - Content-Type if available. Routing to the right
parser will have already been done so this only useful to get
addition Content-Type information or if this ReaderRIOT can
handle multiple media types.output - Destination for the parser output.context - Environment settings.public void read(InputStream in, String baseURI, ContentType ct, StreamRDF output, Context context)
ReaderRIOTread in interface ReaderRIOTin - InputStreambaseURI - Base URI (or null)ct - Content-Type if available. Routing to the right
parser will have already been done so this only useful to get
addition Content-Type information or if this ReaderRIOT can
handle multiple media types.output - Destination for the parser output.context - Environment settings.Licenced under the Apache License, Version 2.0