Package org.biopax.paxtools.io.jsonld
Class JsonldBiopaxConverter
java.lang.Object
org.biopax.paxtools.io.jsonld.JsonldBiopaxConverter
- All Implemented Interfaces:
JsonldConverter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconvertFromJsonld(InputStream in, OutputStream out) Convert inputstream in jsonld format to outputsream in owl/rdf format.voidconvertToJsonld(InputStream in, OutputStream os) Convert inputstream in owl/rdf format to outputsream in jsonld format.Converts the BioPAX data (stream) to an equivalent temporary BioPAX RDF/XML file that contains absolute instead of (possibly) relative URIs for all the BioPAX elements out there; and returns that file.
-
Constructor Details
-
JsonldBiopaxConverter
public JsonldBiopaxConverter()
-
-
Method Details
-
convertToJsonld
Description copied from interface:JsonldConverterConvert inputstream in owl/rdf format to outputsream in jsonld format.- Specified by:
convertToJsonldin interfaceJsonldConverter- Parameters:
in- input stream (BioPAX RDF/XML data)os- output stream (to write the JSON-LD result)- Throws:
IOException- when an I/O error occurs
-
convertFromJsonld
Description copied from interface:JsonldConverterConvert inputstream in jsonld format to outputsream in owl/rdf format.- Specified by:
convertFromJsonldin interfaceJsonldConverter- Parameters:
in- input stream (JSON-LD data)out- output stream (to write the BioPAX RDF/XML result)
-
preProcessFile
Converts the BioPAX data (stream) to an equivalent temporary BioPAX RDF/XML file that contains absolute instead of (possibly) relative URIs for all the BioPAX elements out there; and returns that file.- Parameters:
in- biopax input stream- Returns:
- a temporary file
- Throws:
IOException
-