SMILA 1.0 API documentation

org.eclipse.smila.ontology.records
Class SesameRecordHelper

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

public abstract class SesameRecordHelper
extends java.lang.Object

Helper class defining constants and utility methods for the mapping of SMILA records to Sesame ontology objects.

Author:
jschumacher

Field Summary
static java.lang.String ANNOTATION_LANG
          name of attribute containing the locale of a statement.
static java.lang.String ATTRIBUTE_DELETE_ALL
          name of attribute value describing that an object should be cleared before adding new values.
static java.lang.String ATTRIBUTE_DELETE_PROPERTIES
          name of attribute value describing that properties should be cleared before adding new values.
static java.lang.String ATTRIBUTE_OBJECT_PROPERTIES
          value of attribute describing that a property contains object references.
static java.lang.String ATTRIBUTE_REVERSE_PROPERTIES
          value of attribute describing that a property should be written reverse.
static java.lang.String ATTRIBUTE_TYPE
          name of attribute that contains the RDF type of the resource represented by a record.
static java.lang.String ATTRIBUTE_URI
          name of attribute that contains the URI of the resource represented by a record.
static java.lang.String LOCALE_ALL
          locale value for "all locales".
static java.lang.String PREFIX_SYSTEM_ATTRIBUTE_NAMES
          The prefix of system attributes which will be ignored when writing records to Sesame.
static java.lang.String SEMTYPE_RESOURCE
          semantic type of string literals that correspond to resource property values in MDS.
static java.lang.String SESAME_SOURCE
          dummy source value for IDs of newly created records.
 
Method Summary
static java.lang.String getLanguage(Any literal)
          get language annotation from literal, if present.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SESAME_SOURCE

public static final java.lang.String SESAME_SOURCE
dummy source value for IDs of newly created records.

See Also:
Constant Field Values

ATTRIBUTE_URI

public static final java.lang.String ATTRIBUTE_URI
name of attribute that contains the URI of the resource represented by a record.

See Also:
Constant Field Values

ATTRIBUTE_TYPE

public static final java.lang.String ATTRIBUTE_TYPE
name of attribute that contains the RDF type of the resource represented by a record.

See Also:
Constant Field Values

SEMTYPE_RESOURCE

public static final java.lang.String SEMTYPE_RESOURCE
semantic type of string literals that correspond to resource property values in MDS.

See Also:
Constant Field Values

ANNOTATION_LANG

public static final java.lang.String ANNOTATION_LANG
name of attribute containing the locale of a statement.

See Also:
Constant Field Values

ATTRIBUTE_DELETE_ALL

public static final java.lang.String ATTRIBUTE_DELETE_ALL
name of attribute value describing that an object should be cleared before adding new values.

See Also:
Constant Field Values

ATTRIBUTE_DELETE_PROPERTIES

public static final java.lang.String ATTRIBUTE_DELETE_PROPERTIES
name of attribute value describing that properties should be cleared before adding new values.

See Also:
Constant Field Values

ATTRIBUTE_REVERSE_PROPERTIES

public static final java.lang.String ATTRIBUTE_REVERSE_PROPERTIES
value of attribute describing that a property should be written reverse.

See Also:
Constant Field Values

ATTRIBUTE_OBJECT_PROPERTIES

public static final java.lang.String ATTRIBUTE_OBJECT_PROPERTIES
value of attribute describing that a property contains object references. reverse properties also must only contain object references.

See Also:
Constant Field Values

PREFIX_SYSTEM_ATTRIBUTE_NAMES

public static final java.lang.String PREFIX_SYSTEM_ATTRIBUTE_NAMES
The prefix of system attributes which will be ignored when writing records to Sesame.

See Also:
Constant Field Values

LOCALE_ALL

public static final java.lang.String LOCALE_ALL
locale value for "all locales".

See Also:
Constant Field Values
Method Detail

getLanguage

public static java.lang.String getLanguage(Any literal)
get language annotation from literal, if present. The first value is going to be retrieved.
   <rec:Map key="rdfs:label">
     <rec:Val key="de>SMILA</rec:Val>
     <rec:Val key="en">SMILA</rec:Val>
   </rec:Map>
 

Parameters:
literal - literal
Returns:
language of literal, or null, if not set.

SMILA 1.0 API documentation