public class JSONLDParser
extends org.openrdf.rio.helpers.RDFParserBase
JSON-LD is a JSON-based format for serializing data in (a superset of) RDF as JSON and interpreting JSON contents as RDF. See http://www.w3.org/TR/json-ld/ for the format specification.
This implementation wraps the parser provided by the SEMARGL project - http://semarglproject.org/, adapting it to the Sesame RIO API.
Constructor and Description |
---|
JSONLDParser()
Creates a new JSONLDParser that will use a
ValueFactoryImpl to create RDF model
objects. |
JSONLDParser(org.openrdf.model.ValueFactory valueFactory)
Creates a new JSONLDParser that will use the supplied ValueFactory to create RDF model
objects.
|
Modifier and Type | Method and Description |
---|---|
org.openrdf.rio.RDFFormat |
getRDFFormat() |
void |
parse(InputStream in,
String baseURI) |
void |
parse(Reader reader,
String baseURI) |
clear, clearBNodeIDMap, createBNode, createBNode, createLiteral, createLiteral, createStatement, createStatement, createURI, datatypeHandling, getNamespace, getParseErrorListener, getParseLocationListener, getParserConfig, getRDFHandler, getSupportedSettings, initializeNamespaceTableFromConfiguration, preserveBNodeIDs, reportError, reportError, reportError, reportFatalError, reportFatalError, reportFatalError, reportFatalError, reportLocation, reportWarning, reportWarning, resolveURI, setBaseURI, setBaseURI, setDatatypeHandling, setNamespace, setParseErrorListener, setParseLocationListener, setParserConfig, setPreserveBNodeIDs, setRDFHandler, setStopAtFirstError, setValueFactory, setVerifyData, stopAtFirstError, verifyData
public JSONLDParser()
ValueFactoryImpl
to create RDF model
objects.public JSONLDParser(org.openrdf.model.ValueFactory valueFactory)
valueFactory
- the ValueFactory to usepublic org.openrdf.rio.RDFFormat getRDFFormat()
public void parse(InputStream in, String baseURI) throws IOException, org.openrdf.rio.RDFParseException, org.openrdf.rio.RDFHandlerException
IOException
org.openrdf.rio.RDFParseException
org.openrdf.rio.RDFHandlerException
public void parse(Reader reader, String baseURI) throws IOException, org.openrdf.rio.RDFParseException, org.openrdf.rio.RDFHandlerException
IOException
org.openrdf.rio.RDFParseException
org.openrdf.rio.RDFHandlerException
Copyright © 2015–2016 FBK-irst. All rights reserved.