public class ConversionUtil extends Object
Constructor and Description |
---|
ConversionUtil() |
Modifier and Type | Method and Description |
---|---|
static org.openrdf.model.BNode |
toOpenRDF(BlankNode node,
org.openrdf.model.ValueFactory factory)
Implementation note: This method does not use the
ValueFactory
but directly fetches the Sesame object reference from RDF2Gos wrapper
object. |
static org.openrdf.model.Literal |
toOpenRDF(DatatypeLiteral literal,
org.openrdf.model.ValueFactory factory) |
static org.openrdf.model.Literal |
toOpenRDF(LanguageTagLiteral literal,
org.openrdf.model.ValueFactory factory) |
static org.openrdf.model.Value |
toOpenRDF(Object object,
org.openrdf.model.ValueFactory factory)
Converts an RDF2Go data type into its corresponding OpenRDF
representation.
|
static org.openrdf.model.Literal |
toOpenRDF(PlainLiteral literal,
org.openrdf.model.ValueFactory factory) |
static org.openrdf.model.Statement |
toOpenRDF(Statement statement,
org.openrdf.model.ValueFactory factory) |
static org.openrdf.model.Literal |
toOpenRDF(String string,
org.openrdf.model.ValueFactory factory) |
static org.openrdf.model.URI |
toOpenRDF(URI uri,
org.openrdf.model.ValueFactory factory) |
static org.openrdf.model.Value |
toOpenRDF(Variable variable,
org.openrdf.model.ValueFactory factory)
Variables in Sesame are represented by
null . |
static org.openrdf.query.QueryLanguage |
toOpenRDFQueryLanguage(String queryLanguage) |
static BlankNode |
toRdf2go(org.openrdf.model.BNode node) |
static Literal |
toRdf2go(org.openrdf.model.Literal literal) |
static URI |
toRdf2go(org.openrdf.model.URI uri) |
static Node |
toRdf2go(org.openrdf.model.Value value)
Converts an OpenRDF Value instance into its corresponding RDF2Go
representation.
|
public static org.openrdf.model.Value toOpenRDF(Object object, org.openrdf.model.ValueFactory factory)
object
- The RDF2Go object to transform.factory
- The OpenRDF ValueFactory to use for creating the OpenRDF
representation.IllegalArgumentException
- when the specified Object is of an
unrecognized type.public static org.openrdf.model.URI toOpenRDF(URI uri, org.openrdf.model.ValueFactory factory)
public static org.openrdf.model.Literal toOpenRDF(String string, org.openrdf.model.ValueFactory factory)
public static org.openrdf.model.Literal toOpenRDF(PlainLiteral literal, org.openrdf.model.ValueFactory factory)
public static org.openrdf.model.Literal toOpenRDF(LanguageTagLiteral literal, org.openrdf.model.ValueFactory factory)
public static org.openrdf.model.Literal toOpenRDF(DatatypeLiteral literal, org.openrdf.model.ValueFactory factory)
public static org.openrdf.model.BNode toOpenRDF(BlankNode node, org.openrdf.model.ValueFactory factory)
ValueFactory
but directly fetches the Sesame object reference from RDF2Gos wrapper
object.node
- RDF2Go blank nodefactory
- OpenRDF value factorypublic static org.openrdf.model.Value toOpenRDF(Variable variable, org.openrdf.model.ValueFactory factory)
null
.variable
- - not usedfactory
- - not usedpublic static org.openrdf.model.Statement toOpenRDF(Statement statement, org.openrdf.model.ValueFactory factory)
public static org.openrdf.query.QueryLanguage toOpenRDFQueryLanguage(String queryLanguage)
public static Node toRdf2go(org.openrdf.model.Value value)
value
- The Value to transform.IllegalArgumentException
- when the specified Value is of an
unrecognized type.public static URI toRdf2go(org.openrdf.model.URI uri)
public static Literal toRdf2go(org.openrdf.model.Literal literal)
public static BlankNode toRdf2go(org.openrdf.model.BNode node)
Copyright © 2005–2019 IT-Consulting Dr. Max Völkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.