org.openprovenance.rdf
Class OPMXml2Rdf

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

public class OPMXml2Rdf
extends Object


Field Summary
static String URI_PREFIX
           
 
Constructor Summary
OPMXml2Rdf()
           
 
Method Summary
 void addTriplesForAnnotation(org.tupeloproject.rdf.Resource subject, EmbeddedAnnotation ann, List<org.tupeloproject.rdf.Triple> triples)
           
 void convert(OPMGraph graph, OutputStream out)
           
 void convert(OPMGraph graph, String filename)
           
 void convert(String inFilename, String outFilename)
           
static void main(String[] args)
           
 org.tupeloproject.rdf.Resource makeLiteral(Object value)
           
 List<org.tupeloproject.rdf.Triple> triplifyAnnotation(Annotation annotation)
           
 List<org.tupeloproject.rdf.Triple> triplifyAnnotations(org.tupeloproject.rdf.Resource subject, List<javax.xml.bind.JAXBElement<? extends EmbeddedAnnotation>> annotations)
           
 String urify(String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

URI_PREFIX

public static String URI_PREFIX
Constructor Detail

OPMXml2Rdf

public OPMXml2Rdf()
Method Detail

convert

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

convert

public void convert(OPMGraph graph,
                    OutputStream out)
             throws org.tupeloproject.kernel.OperatorException,
                    IOException
Throws:
org.tupeloproject.kernel.OperatorException
IOException

triplifyAnnotation

public List<org.tupeloproject.rdf.Triple> triplifyAnnotation(Annotation annotation)

triplifyAnnotations

public List<org.tupeloproject.rdf.Triple> triplifyAnnotations(org.tupeloproject.rdf.Resource subject,
                                                              List<javax.xml.bind.JAXBElement<? extends EmbeddedAnnotation>> annotations)

addTriplesForAnnotation

public void addTriplesForAnnotation(org.tupeloproject.rdf.Resource subject,
                                    EmbeddedAnnotation ann,
                                    List<org.tupeloproject.rdf.Triple> triples)

makeLiteral

public org.tupeloproject.rdf.Resource makeLiteral(Object value)

urify

public String urify(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.