org.ow2.weblab.core.extended.ontologies
Class WebLabModel

java.lang.Object
  extended by org.ow2.weblab.core.extended.ontologies.WebLabModel

public class WebLabModel
extends java.lang.Object

Contains every properties that are defined in the model.owl file of the WebLab model project. This version includes annotable object of the model i.e. Resources and their relationships. It also provides some properties to be used in annotations.

Author:
WebLab Cassidian team
Date:
2011-06-08

Field Summary
static java.lang.String ANNOTATION
          URI of the Annotation object
static java.lang.String AUDIO
          URI of the Audio object
static java.lang.String COMPOSED_QUERY
          URI of the ComposedQuery object
static java.lang.String COMPOSED_RESOURCE
          URI of the ComposedResource object
static java.lang.String COORDINATE
          URI of the Coordinate object
static java.lang.String DOCUMENT
          URI of the Document object
static java.lang.String ELEMENTARY_QUERY
          URI of the ElementaryQuery object
static java.lang.String END_AT
          URI of the endAt property.
static java.lang.String HAS_ABSCISSA
          URI of the hasAbscissa property.
static java.lang.String HAS_ANNOTATION
          URI of the hasAnnotation property.
static java.lang.String HAS_CONTENT
          URI of the hasContent property.
static java.lang.String HAS_COORDINATE
          URI of the hasCoordinate property.
static java.lang.String HAS_DATA
          URI of the hasData property.
static java.lang.String HAS_LOW_LEVEL_DESCRIPTOR
          URI of the hasLowLevelDescriptor property.
static java.lang.String HAS_OPERATOR
          URI of the hasOperator property.
static java.lang.String HAS_ORDINATE
          URI of the hasOrdonate property.
static java.lang.String HAS_POK
          URI of the hasPok property.
static java.lang.String HAS_REQUEST
          URI of the hasRequest property.
static java.lang.String HAS_SEGMENT
          URI of the hasSegment property.
static java.lang.String HAS_TEXT_CONTENT
          URI of the hasTextContent property.
static java.lang.String HAS_TIMESTAMP
          URI of the hasTimeStamp property.
static java.lang.String HAS_URI
          URI of the hasUri property.
static java.lang.String HAS_WEIGHT
          URI of the hasWeight property.
static java.lang.String IMAGE
          URI of the Image object
static java.lang.String IN_COMPOSED_QUERY
          URI of the inComposedQuery property.
static java.lang.String IN_COMPOSED_RESOURCE
          URI of the inComposedResource property.
static java.lang.String IN_DOCUMENT
          URI of the inDocument property.
static java.lang.String IN_RESULT_SET
          URI of the inResultSet property.
static java.lang.String IS_COMPOSED_BY_MEDIA_UNIT
          URI of the isComposedByMediaUnit property.
static java.lang.String IS_COMPOSED_BY_QUERY
          URI of the isComposedByQuery property.
static java.lang.String IS_COMPOSED_BY_RESOURCE
          URI of the isComposedByResource property.
static java.lang.String IS_COMPOSED_BY_RESOURCE_RESULT_SET
          URI of the isComposedByResourceResultSet property.
static java.lang.String IS_COMPOSED_BY_SEGMENT
          URI of the isComposedBySegment property.
static java.lang.String LINEAR_SEGMENT
          URI of the LinearSegment object
static java.lang.String LOW_LEVEL_DESCRIPTOR
          URI of the LowLevelDescriptor object
static java.lang.String MEDIA_UNIT
          URI of the MediaUnit object
static java.lang.String NAMESPACE
          Namespace of the WebLab model ontology.
static java.lang.String PIECE_OF_KNOWLEDGE
          URI of the PieceOfKnowledge object
static java.lang.String PREFIX
          Preferred prefix to be used to represent the WebLab Model ontology namespace.
static java.lang.String QUERY
          URI of the Query object
static java.lang.String RESOURCE
          URI of the Resource object
static java.lang.String RESULT_SET
          URI of the ResultSet object
static java.lang.String SEGMENT
          URI of the Segment object
static java.lang.String SIMILARITY_QUERY
          URI of the SimilarityQuery object
static java.lang.String SPATIAL_SEGMENT
          URI of the SpatialSegment object
static java.lang.String SPATIO_TEMPORAL_SEGMENT
          URI of the SpatioTemporalSegment object
static java.lang.String START_AT
          URI of the startAt property.
static java.lang.String STRING_QUERY
          URI of the StringQuery object
static java.lang.String TEMPORAL_SEGMENT
          URI of the TemporalSegment object
static java.lang.String TEXT
          URI of the Text object
static java.lang.String TRACK_SEGMENT
          URI of the TrackSegment object
static java.lang.String VIDEO
          URI of the Video object
 
Method Summary
static java.lang.Class<?> getClassFromUri(java.lang.String uri)
          Inverse method of getUriFromResource(Class) and getUriFromSegment(Class)
static java.lang.String getUriFromResource(java.lang.Class<? extends Resource> resourceClass)
          Use this to get the WebLab ontology owl:Class URI corresponding to a Resource class.
static java.lang.String getUriFromSegment(java.lang.Class<? extends Segment> segmentClass)
          Use this to get the WebLab ontology owl:Class URI corresponding to a Segment class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMESPACE

public static final java.lang.String NAMESPACE
Namespace of the WebLab model ontology.

See Also:
Constant Field Values

PREFIX

public static final java.lang.String PREFIX
Preferred prefix to be used to represent the WebLab Model ontology namespace.

See Also:
Constant Field Values

ANNOTATION

public static final java.lang.String ANNOTATION
URI of the Annotation object

See Also:
Constant Field Values

AUDIO

public static final java.lang.String AUDIO
URI of the Audio object

See Also:
Constant Field Values

COMPOSED_QUERY

public static final java.lang.String COMPOSED_QUERY
URI of the ComposedQuery object

See Also:
Constant Field Values

COMPOSED_RESOURCE

public static final java.lang.String COMPOSED_RESOURCE
URI of the ComposedResource object

See Also:
Constant Field Values

COORDINATE

public static final java.lang.String COORDINATE
URI of the Coordinate object

See Also:
Constant Field Values

DOCUMENT

public static final java.lang.String DOCUMENT
URI of the Document object

See Also:
Constant Field Values

ELEMENTARY_QUERY

public static final java.lang.String ELEMENTARY_QUERY
URI of the ElementaryQuery object

See Also:
Constant Field Values

IMAGE

public static final java.lang.String IMAGE
URI of the Image object

See Also:
Constant Field Values

LINEAR_SEGMENT

public static final java.lang.String LINEAR_SEGMENT
URI of the LinearSegment object

See Also:
Constant Field Values

LOW_LEVEL_DESCRIPTOR

public static final java.lang.String LOW_LEVEL_DESCRIPTOR
URI of the LowLevelDescriptor object

See Also:
Constant Field Values

MEDIA_UNIT

public static final java.lang.String MEDIA_UNIT
URI of the MediaUnit object

See Also:
Constant Field Values

PIECE_OF_KNOWLEDGE

public static final java.lang.String PIECE_OF_KNOWLEDGE
URI of the PieceOfKnowledge object

See Also:
Constant Field Values

QUERY

public static final java.lang.String QUERY
URI of the Query object

See Also:
Constant Field Values

RESOURCE

public static final java.lang.String RESOURCE
URI of the Resource object

See Also:
Constant Field Values

RESULT_SET

public static final java.lang.String RESULT_SET
URI of the ResultSet object

See Also:
Constant Field Values

SEGMENT

public static final java.lang.String SEGMENT
URI of the Segment object

See Also:
Constant Field Values

SIMILARITY_QUERY

public static final java.lang.String SIMILARITY_QUERY
URI of the SimilarityQuery object

See Also:
Constant Field Values

SPATIAL_SEGMENT

public static final java.lang.String SPATIAL_SEGMENT
URI of the SpatialSegment object

See Also:
Constant Field Values

SPATIO_TEMPORAL_SEGMENT

public static final java.lang.String SPATIO_TEMPORAL_SEGMENT
URI of the SpatioTemporalSegment object

See Also:
Constant Field Values

STRING_QUERY

public static final java.lang.String STRING_QUERY
URI of the StringQuery object

See Also:
Constant Field Values

TEMPORAL_SEGMENT

public static final java.lang.String TEMPORAL_SEGMENT
URI of the TemporalSegment object

See Also:
Constant Field Values

TEXT

public static final java.lang.String TEXT
URI of the Text object

See Also:
Constant Field Values

TRACK_SEGMENT

public static final java.lang.String TRACK_SEGMENT
URI of the TrackSegment object

See Also:
Constant Field Values

VIDEO

public static final java.lang.String VIDEO
URI of the Video object

See Also:
Constant Field Values

HAS_ANNOTATION

public static final java.lang.String HAS_ANNOTATION
URI of the hasAnnotation property. Links a Resource to one of its Annotation.

See Also:
Constant Field Values

HAS_COORDINATE

public static final java.lang.String HAS_COORDINATE
URI of the hasCoordinate property. Links a SpatialSegment to one of its Coordinate.

See Also:
Constant Field Values

HAS_LOW_LEVEL_DESCRIPTOR

public static final java.lang.String HAS_LOW_LEVEL_DESCRIPTOR
URI of the hasLowLevelDescriptor property. Links a Resource to one of its LowLevelDescriptor.

See Also:
Constant Field Values

HAS_POK

public static final java.lang.String HAS_POK
URI of the hasPok property. Links a ResultSet to its PieceOfKnowledge.

See Also:
Constant Field Values

HAS_SEGMENT

public static final java.lang.String HAS_SEGMENT
URI of the hasSegment property. Links a MediaUnit to one of its Segment.

See Also:
Constant Field Values

IS_COMPOSED_BY_SEGMENT

public static final java.lang.String IS_COMPOSED_BY_SEGMENT
URI of the isComposedBySegment property. Links a TrackSegment to one of its Segment.

See Also:
Constant Field Values

IN_COMPOSED_QUERY

public static final java.lang.String IN_COMPOSED_QUERY
URI of the inComposedQuery property. Links a Query to its parent ComposedQuery.

See Also:
Constant Field Values

IS_COMPOSED_BY_QUERY

public static final java.lang.String IS_COMPOSED_BY_QUERY
URI of the isComposedByQuery property. Links a ComposedQuery to one of its Query.

See Also:
Constant Field Values

IN_COMPOSED_RESOURCE

public static final java.lang.String IN_COMPOSED_RESOURCE
URI of the inComposedResource property. Links a resource to its parent ComposedResource or SimilarityQuery

See Also:
Constant Field Values

IS_COMPOSED_BY_RESOURCE

public static final java.lang.String IS_COMPOSED_BY_RESOURCE
URI of the isComposedByResource property. Links a ComposedResource or a SimilarityQuery to one of its Resource.

See Also:
Constant Field Values

IN_DOCUMENT

public static final java.lang.String IN_DOCUMENT
URI of the inDocument property. Links a MediaUnit to its parent Document.

See Also:
Constant Field Values

IS_COMPOSED_BY_MEDIA_UNIT

public static final java.lang.String IS_COMPOSED_BY_MEDIA_UNIT
URI of the isComposedByMediaUnit property. Links a Document to one of its sub-MediaUnit.

See Also:
Constant Field Values

IN_RESULT_SET

public static final java.lang.String IN_RESULT_SET
URI of the inResultSet property. Links a resource to its parent ResultSet.

See Also:
Constant Field Values

IS_COMPOSED_BY_RESOURCE_RESULT_SET

public static final java.lang.String IS_COMPOSED_BY_RESOURCE_RESULT_SET
URI of the isComposedByResourceResultSet property. Links a ResultSet to one of its Resource.

See Also:
Constant Field Values

END_AT

public static final java.lang.String END_AT
URI of the endAt property. The end value of a LinearSegment (char in UTF-8) or a TemporalSegment (milliseconds).

See Also:
Constant Field Values

START_AT

public static final java.lang.String START_AT
URI of the startAt property. The start value of a LinearSegment (char in UTF-8) or a TemporalSegment (milliseconds).

See Also:
Constant Field Values

HAS_TIMESTAMP

public static final java.lang.String HAS_TIMESTAMP
URI of the hasTimeStamp property. The timestamp of a SpatioTemporalSegment

See Also:
Constant Field Values

HAS_WEIGHT

public static final java.lang.String HAS_WEIGHT
URI of the hasWeight property. A weight used for Query combination.

See Also:
Constant Field Values

HAS_DATA

public static final java.lang.String HAS_DATA
URI of the hasData property. Should be an ARFF content for a LowLevelDescriptor and a RDF/XML content for a PoK.

See Also:
Constant Field Values

HAS_URI

public static final java.lang.String HAS_URI
URI of the hasUri property. The unique identifier of a Resource or a Segment.

See Also:
Constant Field Values

HAS_REQUEST

public static final java.lang.String HAS_REQUEST
URI of the hasRequest property. The string query in a free text syntax.

See Also:
Constant Field Values

HAS_CONTENT

public static final java.lang.String HAS_CONTENT
URI of the hasContent property. The optional content as a bytes array.

See Also:
Constant Field Values

HAS_TEXT_CONTENT

public static final java.lang.String HAS_TEXT_CONTENT
URI of the hasTextContent property. The String content of the text. Might be empty, in that case an annotation referring to the whole large content should be present.

See Also:
Constant Field Values

HAS_OPERATOR

public static final java.lang.String HAS_OPERATOR
URI of the hasOperator property. This is a simple restriction of String to reduce the values to the three boolean operators AND/OR/NOT. Note that in a n-ary context, the unary operator NOT is considered as a AND NOT.

See Also:
Constant Field Values

HAS_ABSCISSA

public static final java.lang.String HAS_ABSCISSA
URI of the hasAbscissa property. Abscissa value in pixels, with 0 at the left border. Other measure references are possible.

See Also:
Constant Field Values

HAS_ORDINATE

public static final java.lang.String HAS_ORDINATE
URI of the hasOrdonate property. Ordinate value in pixels, with 0 at the bottom border. Other measure references are possible.

See Also:
Constant Field Values
Method Detail

getUriFromResource

public static java.lang.String getUriFromResource(java.lang.Class<? extends Resource> resourceClass)
Use this to get the WebLab ontology owl:Class URI corresponding to a Resource class.

Parameters:
resourceClass - the java Class
Returns:
the ontology URI class
See Also:
getClassFromUri(String), getUriFromSegment(Class)

getUriFromSegment

public static java.lang.String getUriFromSegment(java.lang.Class<? extends Segment> segmentClass)
Use this to get the WebLab ontology owl:Class URI corresponding to a Segment class.

Parameters:
segmentClass - the java Class
Returns:
the ontology URI class
See Also:
getClassFromUri(String), getUriFromResource(Class)

getClassFromUri

public static java.lang.Class<?> getClassFromUri(java.lang.String uri)
                                          throws java.lang.ClassNotFoundException
Inverse method of getUriFromResource(Class) and getUriFromSegment(Class)

Parameters:
uri - The URI denoting a WebLab class in the ontology
Returns:
The java class
Throws:
java.lang.ClassNotFoundException - If the URI does not represent a class that exists.
java.lang.ClassCastException - If the URI does not represent a Resource or a Segment class defined in the model.
See Also:
getUriFromResource(Class), getUriFromSegment(Class)


Copyright © 2004-2011 WebLab Project. All Rights Reserved.