public class JsonLDReader extends Object implements ReaderRIOT
Modifier and Type | Field and Description |
---|---|
static String |
BLANK_NODE |
static String |
IRI |
static String |
LITERAL |
Constructor and Description |
---|
JsonLDReader() |
Modifier and Type | Method and Description |
---|---|
ErrorHandler |
getErrorHandler() |
ParserProfile |
getParserProfile()
Get the parser profile.
|
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.
|
void |
setErrorHandler(ErrorHandler errorHandler) |
void |
setParserProfile(ParserProfile parserProfile)
Set the parser profile.
|
public static String LITERAL
public static String BLANK_NODE
public static String IRI
public ErrorHandler getErrorHandler()
getErrorHandler
in interface ReaderRIOT
public void setErrorHandler(ErrorHandler errorHandler)
setErrorHandler
in interface ReaderRIOT
public ParserProfile getParserProfile()
ReaderRIOT
getParserProfile
in interface ReaderRIOT
public void setParserProfile(ParserProfile parserProfile)
ReaderRIOT
setParserProfile
in interface ReaderRIOT
public void read(Reader reader, String baseURI, ContentType ct, StreamRDF output, Context context)
ReaderRIOT
read
in interface ReaderRIOT
reader
- 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
- Destintation for the parser output.context
- Environment settings.public void read(InputStream in, String baseURI, ContentType ct, StreamRDF output, Context context)
ReaderRIOT
read
in interface ReaderRIOT
in
- 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
- Destintation for the parser output.context
- Environment settings.Licenced under the Apache License, Version 2.0