org.apache.jena.riot.lang
Class JsonLDReader
java.lang.Object
org.apache.jena.riot.lang.JsonLDReader
- All Implemented Interfaces:
- ReaderRIOT
public class JsonLDReader
- extends Object
- implements ReaderRIOT
LITERAL
public static String LITERAL
BLANK_NODE
public static String BLANK_NODE
IRI
public static String IRI
JsonLDReader
public JsonLDReader()
getErrorHandler
public ErrorHandler getErrorHandler()
- Specified by:
getErrorHandler in interface ReaderRIOT
setErrorHandler
public void setErrorHandler(ErrorHandler errorHandler)
- Specified by:
setErrorHandler in interface ReaderRIOT
getParserProfile
public ParserProfile getParserProfile()
- Description copied from interface:
ReaderRIOT
- Get the parser profile. Not all parser have parser profiles so this may be null
- Specified by:
getParserProfile in interface ReaderRIOT
setParserProfile
public void setParserProfile(ParserProfile parserProfile)
- Description copied from interface:
ReaderRIOT
- Set the parser profile. Not all parser have parser profiles so this may be a no-op
- Specified by:
setParserProfile in interface ReaderRIOT
read
public void read(Reader reader,
String baseURI,
ContentType ct,
StreamRDF output,
Context context)
- Description copied from interface:
ReaderRIOT
- Read from an InputStream and output RDF on the StreamRDF.
- Specified by:
read in interface ReaderRIOT
- Parameters:
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.
read
public void read(InputStream in,
String baseURI,
ContentType ct,
StreamRDF output,
Context context)
- Description copied from interface:
ReaderRIOT
- Read from an InputStream and output RDF on the StreamRDF.
- Specified by:
read in interface ReaderRIOT
- Parameters:
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