org.openanzo.client.jena
Class Converter

java.lang.Object
  extended by org.openanzo.client.jena.Converter

public class Converter
extends java.lang.Object

Convert values between openrdf and jena values

Author:
Matthew Roy ( mroy@cambridgesemantics.com )

Constructor Summary
Converter()
           
 
Method Summary
static org.openrdf.model.Value convert(com.hp.hpl.jena.graph.Node n)
          Convert a Node to a Value
static com.hp.hpl.jena.graph.Triple convert(org.openrdf.model.Statement statement)
          Convert a Statement to a triple
static org.openrdf.model.Statement convert(com.hp.hpl.jena.graph.Triple t)
          Convert a triple object to a statement
static com.hp.hpl.jena.graph.Node convert(org.openrdf.model.Value value)
          Convert a Value to a Node
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Converter

public Converter()
Method Detail

convert

public static org.openrdf.model.Statement convert(com.hp.hpl.jena.graph.Triple t)
Convert a triple object to a statement

Parameters:
t - triple to convert
Returns:
statement for the provided triple

convert

public static com.hp.hpl.jena.graph.Triple convert(org.openrdf.model.Statement statement)
Convert a Statement to a triple

Parameters:
statement - statement to convert
Returns:
triple for the provided statement

convert

public static com.hp.hpl.jena.graph.Node convert(org.openrdf.model.Value value)
Convert a Value to a Node

Parameters:
value - value to convert
Returns:
node representing provided value

convert

public static org.openrdf.model.Value convert(com.hp.hpl.jena.graph.Node n)
Convert a Node to a Value

Parameters:
n - node to convert
Returns:
value representing provided node


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.