org.openprovenance.rdf
Class OPMRdf2Xml

java.lang.Object
  extended by org.openprovenance.rdf.OPMRdf2Xml

public class OPMRdf2Xml
extends Object

TODO: support for graph-level annotations


Constructor Summary
OPMRdf2Xml()
           
 
Method Summary
 OPMGraph convert(InputStream in)
           
 OPMGraph convert(Set<org.tupeloproject.rdf.Triple> triples)
           
 OPMGraph convert(String filename)
           
 void convert(String inFilename, String outFilename)
           
 List<EmbeddedAnnotation> convertAnnotations(Set<org.tupeloproject.rdf.Resource> annotations, org.tupeloproject.provenance.impl.ProvenanceContextFacade pcf, org.tupeloproject.kernel.Context context)
           
 String deUrify(String id)
           
static void main(String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OPMRdf2Xml

public OPMRdf2Xml()
Method Detail

convert

public OPMGraph convert(String filename)
                 throws org.tupeloproject.kernel.OperatorException,
                        IOException
Throws:
org.tupeloproject.kernel.OperatorException
IOException

convert

public OPMGraph convert(InputStream in)
                 throws org.tupeloproject.kernel.OperatorException,
                        IOException
Throws:
org.tupeloproject.kernel.OperatorException
IOException

convert

public OPMGraph convert(Set<org.tupeloproject.rdf.Triple> triples)
                 throws org.tupeloproject.kernel.OperatorException,
                        IOException
Throws:
org.tupeloproject.kernel.OperatorException
IOException

convertAnnotations

public List<EmbeddedAnnotation> convertAnnotations(Set<org.tupeloproject.rdf.Resource> annotations,
                                                   org.tupeloproject.provenance.impl.ProvenanceContextFacade pcf,
                                                   org.tupeloproject.kernel.Context context)
                                            throws org.tupeloproject.kernel.OperatorException
Throws:
org.tupeloproject.kernel.OperatorException

deUrify

public String deUrify(String id)

convert

public void convert(String inFilename,
                    String outFilename)
             throws org.tupeloproject.kernel.OperatorException,
                    IOException,
                    javax.xml.bind.JAXBException
Throws:
org.tupeloproject.kernel.OperatorException
IOException
javax.xml.bind.JAXBException

main

public static void main(String[] args)
                 throws org.tupeloproject.kernel.OperatorException,
                        IOException,
                        javax.xml.bind.JAXBException
Throws:
org.tupeloproject.kernel.OperatorException
IOException
javax.xml.bind.JAXBException


Copyright © 2010. All Rights Reserved.