|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.unidu.is.annotation.rework.ontology.classes.OntologyObjects.OntologyIndividual
de.unidu.is.annotation.rework.ontology.classes.OntologyObjects.AnnotationIndividual
AnnotationIndividual.java Represents an annotation individual in a Jena OntModel
| Field Summary | |
static java.lang.String |
ANNOTATION_CLASS
Name of the ontology class for annotations |
static java.lang.String |
CREATION_TIME_PROPERTY
Name of the ontology property, which stores the creation time of the annotation |
static java.lang.String |
CREATOR_PROPERTY
Name of the ontology property, which stores the author of an annotation |
static java.lang.String |
LINK_PROPERTY
Name of the ontology property, which stores links of an annotation |
static java.lang.String |
SELECTION_PROPERTY
Name of the ontology property, which stores the selection |
static java.lang.String |
SOURCE_PROPERTY
Name of the ontology property, that stores the object, which is annotated |
static java.lang.String |
TARGET_PROPERTY
Name of the ontology property, which stores the target of an annotation |
static java.lang.String |
TEXT_PROPERTY
Name of the ontology property, which stores the text of an annotation |
static java.lang.String |
TITLE_PROPERTY
Name of the ontology property, which stores the title of an annotation |
static java.lang.String |
WEIGHT_PROPERTY
Name of the ontology property, which stores the weight of the annotation |
| Fields inherited from class de.unidu.is.annotation.rework.ontology.classes.OntologyObjects.OntologyIndividual |
ANNOTATIONS_PROPERTY, NAMESPACE, ontIndividual, ontModel, TYPE_URI |
| Constructor Summary | |
AnnotationIndividual()
Creates a new instance |
|
| Method Summary | |
void |
clearProperties()
Removes all property values |
void |
create(com.hp.hpl.jena.ontology.OntModel model,
java.lang.String individualUri)
Creates a new annotation individual with the specified URI |
void |
createClone(com.hp.hpl.jena.ontology.OntModel model,
AnnotationIndividual annotationIndividual)
Creates a new annotation with the same properties as the specified individual |
protected void |
createOntologyTypes(com.hp.hpl.jena.ontology.OntModel sourceModel,
java.util.List annotationTypes)
Creates the specified classes and all superclasses |
java.util.List |
getAnnotationTypes()
Returns the annotation types of the annotation |
long |
getCreationTime()
Returns the creation time in milliseconds |
java.lang.String |
getCreator()
Returns the URI of the creator of the annotation |
java.lang.String |
getSelection()
Resturns the Uri of the selection individual |
java.lang.String |
getSource()
Returns the URI of the source of the annotation |
java.util.List |
getTargets()
Returns the targets of the annotation (as RDFNode instances!) |
java.lang.String |
getText()
Returns the text of the linked document |
java.lang.String |
getTitle()
Returns the title of the annotation |
double |
getWeight()
Returns the weight |
boolean |
hasAnnotations()
Returns, if the annotations has got further annotations |
boolean |
hasPermissionToModify(java.lang.String userUri)
The user has got the permission to modify/remove an annotation, if the annotation is created by the specified user and the annotation has got no childs. |
void |
remove()
Removes the annotation individual |
void |
setAnnotationTypes(java.util.List annotationTypes)
Sets the annotation types of the annotation |
void |
setCreationTime(long milliseconds)
Sets the creation time |
void |
setCreator(java.lang.String personUri)
Sets the creator of the annotation |
void |
setSelection(java.lang.String selectionUri)
Sets the URI of the selection individual |
void |
setSource(java.lang.String ontologyClassName,
java.lang.String sourceUri)
Sets the source of the annotation |
void |
setTargets(java.util.List targetURIs)
Sets the targets of the annotation |
void |
setText(java.lang.String text)
Creates a document instance, adds the specified text and adds the document to the annotation |
void |
setTitle(java.lang.String title)
Sets the title of the annotation |
void |
setWeight(double weight)
Sets the weight |
void |
takeProperties(AnnotationIndividual annotationIndividual)
Copies all properties from the specified annotation |
void |
update(AnnotationIndividual updatedAnnotation)
Overwrite all propery values with the properties of the specified anntation individual |
| Methods inherited from class de.unidu.is.annotation.rework.ontology.classes.OntologyObjects.OntologyIndividual |
addPropertyValue, addTypeValue, create, createClassClone, createClone, getIndividualName, getLocalName, getProperty, getPropertyValue, getPropertyValues, getTypes, getUri, init, isExisting, load, takeProperties |
| 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 ANNOTATION_CLASS
public static final java.lang.String SOURCE_PROPERTY
public static final java.lang.String CREATOR_PROPERTY
public static final java.lang.String TITLE_PROPERTY
public static final java.lang.String TEXT_PROPERTY
public static final java.lang.String SELECTION_PROPERTY
public static final java.lang.String TARGET_PROPERTY
public static final java.lang.String LINK_PROPERTY
public static final java.lang.String CREATION_TIME_PROPERTY
public static final java.lang.String WEIGHT_PROPERTY
| Constructor Detail |
public AnnotationIndividual()
| Method Detail |
public void create(com.hp.hpl.jena.ontology.OntModel model,
java.lang.String individualUri)
create in class OntologyIndividualmodel - ModelindividualUri - URI of the new annotation individual
public void createClone(com.hp.hpl.jena.ontology.OntModel model,
AnnotationIndividual annotationIndividual)
model - ModelannotationIndividual - Annotation individual to copy
protected void createOntologyTypes(com.hp.hpl.jena.ontology.OntModel sourceModel,
java.util.List annotationTypes)
sourceModel - Source modelpublic void takeProperties(AnnotationIndividual annotationIndividual)
annotationIndividual - Annotation individual to copypublic void clearProperties()
clearProperties in class OntologyIndividualpublic void update(AnnotationIndividual updatedAnnotation)
updatedAnnotation - Updated annotation individualpublic void remove()
remove in class OntologyIndividualpublic void setCreator(java.lang.String personUri)
personUri - URI of the creatorpublic java.lang.String getCreator()
public java.lang.String getSelection()
public void setAnnotationTypes(java.util.List annotationTypes)
annotationTypes - annotation type (without namespace)public java.util.List getAnnotationTypes()
public void setTitle(java.lang.String title)
title - Title of the annotationpublic java.lang.String getTitle()
public void setText(java.lang.String text)
text - Document textpublic java.lang.String getText()
public void setSelection(java.lang.String selectionUri)
selectionUri - Uri of the selection individual
public void setSource(java.lang.String ontologyClassName,
java.lang.String sourceUri)
ontologyClassName - Ontology class name of the ontologysourceUri - URI of the source of the annotationpublic java.lang.String getSource()
public void setTargets(java.util.List targetURIs)
targetURIs - URIs of the targetspublic java.util.List getTargets()
public void setCreationTime(long milliseconds)
milliseconds - Time in millisecondspublic long getCreationTime()
public void setWeight(double weight)
weight - Weightpublic double getWeight()
public boolean hasAnnotations()
public boolean hasPermissionToModify(java.lang.String userUri)
throws ModelException,
ResourceNotFoundException,
NoPermissionException
userUri - URI of the user
ModelException
ResourceNotFoundException
NoPermissionException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||