org.openrdf.rdf2go
Class ConversionUtil

java.lang.Object
  extended by org.openrdf.rdf2go.ConversionUtil

public class ConversionUtil
extends java.lang.Object

Converts RDF2Go types to OpenRDF types and vice versa. Null converts to null, in any direction.


Constructor Summary
ConversionUtil()
           
 
Method Summary
static org.openrdf.model.BNode toOpenRDF(BlankNode node, org.openrdf.model.ValueFactory factory)
           
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(java.lang.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(java.lang.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)
           
static org.openrdf.query.QueryLanguage toOpenRDFQueryLanguage(java.lang.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConversionUtil

public ConversionUtil()
Method Detail

toOpenRDF

public static org.openrdf.model.Value toOpenRDF(java.lang.Object object,
                                                org.openrdf.model.ValueFactory factory)
Converts an RDF2Go data type into its corresponding OpenRDF representation.

Parameters:
object - The RDF2Go object to transform.
factory - The OpenRDF ValueFactory to use for creating the OpenRDF representation.
Returns:
An instance of an OpenRDF data type representing the specified Object. Returns 'null' when the specified object is null.
Throws:
java.lang.IllegalArgumentException - when the specified Object is of an unrecognized type.

toOpenRDF

public static org.openrdf.model.URI toOpenRDF(URI uri,
                                              org.openrdf.model.ValueFactory factory)

toOpenRDF

public static org.openrdf.model.Literal toOpenRDF(java.lang.String string,
                                                  org.openrdf.model.ValueFactory factory)

toOpenRDF

public static org.openrdf.model.Literal toOpenRDF(PlainLiteral literal,
                                                  org.openrdf.model.ValueFactory factory)

toOpenRDF

public static org.openrdf.model.Literal toOpenRDF(LanguageTagLiteral literal,
                                                  org.openrdf.model.ValueFactory factory)

toOpenRDF

public static org.openrdf.model.Literal toOpenRDF(DatatypeLiteral literal,
                                                  org.openrdf.model.ValueFactory factory)

toOpenRDF

public static org.openrdf.model.BNode toOpenRDF(BlankNode node,
                                                org.openrdf.model.ValueFactory factory)

toOpenRDF

public static org.openrdf.model.Value toOpenRDF(Variable variable,
                                                org.openrdf.model.ValueFactory factory)

toOpenRDF

public static org.openrdf.model.Statement toOpenRDF(Statement statement,
                                                    org.openrdf.model.ValueFactory factory)

toOpenRDFQueryLanguage

public static org.openrdf.query.QueryLanguage toOpenRDFQueryLanguage(java.lang.String queryLanguage)

toRdf2go

public static Node toRdf2go(org.openrdf.model.Value value)
Converts an OpenRDF Value instance into its corresponding RDF2Go representation.

Parameters:
value - The Value to transform.
Returns:
An instance of an RDF2Go data type representing the specified Value. Returns 'null' when the Value is null.
Throws:
java.lang.IllegalArgumentException - when the specified Value is of an unrecognized type.

toRdf2go

public static URI toRdf2go(org.openrdf.model.URI uri)

toRdf2go

public static Literal toRdf2go(org.openrdf.model.Literal literal)

toRdf2go

public static BlankNode toRdf2go(org.openrdf.model.BNode node)


Copyright © 2001-2008 FZI. All Rights Reserved.