|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.ontology.records.SesameRecordHelper
public abstract class SesameRecordHelper
Helper class defining constants and utility methods for the mapping of SMILA records to Sesame ontology objects.
| Field Summary | |
|---|---|
static java.lang.String |
ANNOTATION_LANG
name of annotation containing the locale of a statement. |
static java.lang.String |
ANNOTATION_MODE
name of the attribute annotation that describes additional modes for writing properties. |
static java.lang.String |
ANNOVALUE_REVERSE
value of annotation describing that a property should be written reverse. |
static java.lang.String |
ANNOVALUENAME_CLEAR
name of annotation value describing that a property should be cleared before adding new values. |
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 Path |
PATH_TYPE
path of attribute that contains the RDF type of the resource represented by a record. |
static Path |
PATH_URI
path of attribute that contains the URI of the resource represented by a record. |
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 Annotation |
addClearFlag(MObject mobject)
add clear flag to metadata object. |
static Annotation |
addClearFlag(MObject mobject,
java.lang.String attributeName)
add clear flag to attribute of metadata object. |
static Annotation |
addClearFlag(MObject mobject,
java.lang.String attributeName,
java.lang.String language)
add clear flag for given language to attribute of metadata object. |
static Annotation |
addReverseFlag(MObject mobject,
java.lang.String attributeName)
add reverse flag to mode annotation of attribute. |
static Attribute |
getAttribute(MObject mobject,
java.lang.String attributeName)
create or reuse an attribute. |
static java.lang.String |
getLanguage(Literal literal)
get language annotation from literal, if present. |
static Annotation |
getModeAnnotation(Annotatable annotatable)
access or create a new annotation to the annotatable (usually an attribute, literal or mobject) used to modify the operation of SesameRecordWriter. |
static Annotation |
getModeAnnotation(MObject mobject,
java.lang.String attributeName)
access or create a new annotation to named attribute of mobject. |
static void |
setLanguage(Literal literal,
java.lang.String language)
set language annotation to literal. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SESAME_SOURCE
public static final java.lang.String ATTRIBUTE_URI
public static final Path PATH_URI
public static final java.lang.String ATTRIBUTE_TYPE
public static final Path PATH_TYPE
public static final java.lang.String SEMTYPE_RESOURCE
public static final java.lang.String ANNOTATION_LANG
public static final java.lang.String ANNOTATION_MODE
public static final java.lang.String ANNOVALUENAME_CLEAR
public static final java.lang.String ANNOVALUE_REVERSE
public static final java.lang.String LOCALE_ALL
| Method Detail |
|---|
public static void setLanguage(Literal literal,
java.lang.String language)
literal - literallanguage - language stringpublic static java.lang.String getLanguage(Literal literal)
literal - literal
public static Attribute getAttribute(MObject mobject,
java.lang.String attributeName)
mobject - metadata objectattributeName - name of attribute (no path)
public static Annotation getModeAnnotation(Annotatable annotatable)
SesameRecordWriter.
annotatable - annotatable object
public static Annotation getModeAnnotation(MObject mobject,
java.lang.String attributeName)
mobject - metadata objectattributeName - name of attribute (no path)
public static Annotation addClearFlag(MObject mobject)
mobject - metadata object.
public static Annotation addClearFlag(MObject mobject,
java.lang.String attributeName)
mobject - metadata objectattributeName - name of attribute (no path)
public static Annotation addClearFlag(MObject mobject,
java.lang.String attributeName,
java.lang.String language)
mobject - metadata objectattributeName - name of attribute (no path)language - to clear
public static Annotation addReverseFlag(MObject mobject,
java.lang.String attributeName)
mobject - attributeName - mobject - metadata objectattributeName - name of attribute (no path)
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||