org.openjena.sesamejena
Class SesameJena

java.lang.Object
  extended by org.openjena.sesamejena.SesameJena

public class SesameJena
extends Object

Class to enable the use of OpenRDF Sesame interfaces to access Jena models

Author:
Peter Ansell p_ansell@yahoo.com

Constructor Summary
SesameJena()
           
 
Method Summary
static org.openrdf.model.Graph createGraph(org.openrdf.model.ValueFactory factory, com.hp.hpl.jena.rdf.model.Model model)
          Creates a Sesame Graph wrapper around a Jena Model.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SesameJena

public SesameJena()
Method Detail

createGraph

public static org.openrdf.model.Graph createGraph(org.openrdf.model.ValueFactory factory,
                                                  com.hp.hpl.jena.rdf.model.Model model)
Creates a Sesame Graph wrapper around a Jena Model. This makes it possible to access the Jena Model using any of the Graph interface methods, including the Collection methods

Parameters:
factory - The Sesame ValueFactory to use when creating Sesame Values from Jena Nodes.
model - A Jena Model to wrap.
Returns:
A Sesame Graph that can be used to access the given Jena Model.


Copyright © 2009 Talis Information Ltd