org.rdfcontext.utils
Class JenaSesameUtils
java.lang.Object
org.rdfcontext.utils.JenaSesameUtils
- public class JenaSesameUtils
- extends java.lang.Object
- Author:
- cristian
TODO To change the template for this generated type comment go to
Window - Preferences - Java - Code Style - Code Templates
|
Method Summary |
static org.openrdf.sesame.repository.local.LocalRepository |
getTempRepository(boolean inferencing)
It will create a new memory RDF sesame repository, for test and various uses
dont forget to call destroySesame!! |
org.openrdf.model.Statement |
JenaStatementToSesameStatement(com.hp.hpl.jena.rdf.model.Statement statement)
|
static org.openrdf.model.Graph |
modelToGraph(com.hp.hpl.jena.rdf.model.Model model)
|
static com.hp.hpl.jena.rdf.model.Model |
statementToModel(java.lang.String subject,
java.lang.String property,
java.lang.String literal)
|
static com.hp.hpl.jena.rdf.model.Model |
statementToModel(java.lang.String subject,
java.lang.String property,
java.net.URI objectURI)
|
static com.hp.hpl.jena.rdf.model.Model |
xmlToModel(java.lang.String rdfXmlData)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JenaSesameUtils
public JenaSesameUtils()
statementToModel
public static com.hp.hpl.jena.rdf.model.Model statementToModel(java.lang.String subject,
java.lang.String property,
java.lang.String literal)
statementToModel
public static com.hp.hpl.jena.rdf.model.Model statementToModel(java.lang.String subject,
java.lang.String property,
java.net.URI objectURI)
xmlToModel
public static com.hp.hpl.jena.rdf.model.Model xmlToModel(java.lang.String rdfXmlData)
modelToGraph
public static org.openrdf.model.Graph modelToGraph(com.hp.hpl.jena.rdf.model.Model model)
- Parameters:
model -
- Returns:
- a Graph representing the same RDF data as the given Model
JenaStatementToSesameStatement
public org.openrdf.model.Statement JenaStatementToSesameStatement(com.hp.hpl.jena.rdf.model.Statement statement)
getTempRepository
public static org.openrdf.sesame.repository.local.LocalRepository getTempRepository(boolean inferencing)
- It will create a new memory RDF sesame repository, for test and various uses
dont forget to call destroySesame!!
- Returns:
- a SesameRepository