001package org.biopax.paxtools.io.jsonld;
002
003import java.io.IOException;
004import java.io.InputStream;
005import java.io.OutputStream;
006
007public interface JsonldConverter {
008        
009        /**
010         * Convert inputstream in owl/rdf format to outputsream in jsonld format.
011         * 
012         * @param in input stream (BioPAX RDF/XML data)
013         * @param os output stream (to write the JSON-LD result)
014         * @throws IOException when an I/O error occurs
015         */     
016        public void convertToJsonld(InputStream in, OutputStream os) throws IOException;
017        
018        /**
019         * Convert inputstream in jsonld format to outputsream in owl/rdf format.
020         * 
021         * @param in input stream (JSON-LD data)
022         * @param out output stream (to write the BioPAX RDF/XML result)
023         */     
024         public void convertFromJsonld(InputStream in, OutputStream out);
025        
026}