public class JsonldBiopaxConverter extends Object implements JsonldConverter
| Constructor and Description |
|---|
JsonldBiopaxConverter() |
| Modifier and Type | Method and Description |
|---|---|
void |
convertFromJsonld(InputStream in,
OutputStream out)
Convert inputstream in jsonld format to outputsream in owl/rdf format.
|
void |
convertToJsonld(InputStream in,
OutputStream os)
Convert inputstream in owl/rdf format to outputsream in jsonld format.
|
File |
preProcessFile(InputStream in)
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.
|
public void convertToJsonld(InputStream in, OutputStream os) throws IOException
JsonldConverterconvertToJsonld in interface JsonldConverterin - input stream (BioPAX RDF/XML data)os - output stream (to write the JSON-LD result)IOException - when an I/O error occurspublic void convertFromJsonld(InputStream in, OutputStream out)
JsonldConverterconvertFromJsonld in interface JsonldConverterin - input stream (JSON-LD data)out - output stream (to write the BioPAX RDF/XML result)public File preProcessFile(InputStream in) throws IOException
in - biopax input streamIOExceptionCopyright © 2017 BioPAX. All rights reserved.