SMILA 1.0 API documentation

org.eclipse.smila.ontology.records
Class SesameValueHelper

java.lang.Object
  extended by org.eclipse.smila.ontology.records.SesameValueHelper

public class SesameValueHelper
extends java.lang.Object

Helper for converting SMILA literals to Sesame Literals and URIs.

Author:
jschumacher

Field Summary
static SesameValueHelper INSTANCE
          singleton instance.
static int MILLISECONDS_PER_MINUTE
          number of milliseconds per minute, used to convert java.util timezone offsets to XMLGregorianCalendar timezone offsets.
 
Constructor Summary
SesameValueHelper()
           
 
Method Summary
 org.openrdf.model.Literal createLiteral(RepositoryConnection connection, Value literal, java.lang.String locale)
          create a Sesame literal from a SMILA literal.
 URI createUri(RepositoryConnection connection, java.lang.String uriString)
          resolve namespace prefixes in URI string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final SesameValueHelper INSTANCE
singleton instance.


MILLISECONDS_PER_MINUTE

public static final int MILLISECONDS_PER_MINUTE
number of milliseconds per minute, used to convert java.util timezone offsets to XMLGregorianCalendar timezone offsets.

See Also:
Constant Field Values
Constructor Detail

SesameValueHelper

public SesameValueHelper()
Method Detail

createLiteral

public org.openrdf.model.Literal createLiteral(RepositoryConnection connection,
                                               Value literal,
                                               java.lang.String locale)
create a Sesame literal from a SMILA literal.

Parameters:
connection - repository connection
literal - SMILA literal
locale - the locale as string (null if no locale is set) for String Literals
Returns:
Sesame literal

createUri

public URI createUri(RepositoryConnection connection,
                     java.lang.String uriString)
resolve namespace prefixes in URI string.

Parameters:
connection - repository connection
uriString - an uri string that possibly contains a namespace prefix.
Returns:
Sesame URI

SMILA 1.0 API documentation