|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.unidu.is.annotation.rework.frontend.AnnotationService
AnnotationService.java Annotation service (Frontend) Methods to add, get, modify and remove annotations Converts ServiceObjects into OWL serializations and calls methods of the backend annotation service
| Field Summary | |
protected BackendAnnotationService |
backendService
Connection to the backend annotation service |
| Constructor Summary | |
AnnotationService(BackendAnnotationService backendServiceConnection)
Creates a new AnnotationService object. |
|
| Method Summary | |
void |
addAnnotation(Annotation annotation)
Saves the specified annotation |
void |
addAnnotationType(Person user,
java.lang.String parentType,
java.lang.String typeName)
Adds a user-defined annotation type to the ontology |
protected void |
addSubClasses(JenaModel model,
CheckNode rootNode,
java.lang.String subclass)
Adds all subclasses of subclasses to
the node rootNode |
Annotation |
getAnnotation(AnnotationUri annotation)
Returns the annotation with the specified URI |
Annotation |
getAnnotation(java.lang.String annotationUri)
Returns the specified annotation |
CheckNode |
getAnnotationOntology(Person user)
Returns the root element of the annotation (type) ontology |
java.util.List |
getAnnotations(Annotation annotationPattern,
java.lang.String fulltext,
int numDocs)
Returns all annotations, which satisfy the specified conditions. |
java.util.List |
getAnnotationThread(AnnotableObject annotableObject)
Returns the annotation thread of the specified annotable object |
java.lang.String |
getLocalName(java.lang.String uri)
Returns the local name of the specified URI |
void |
removeAnnotation(Person user,
Annotation annotation)
Deletes the specified annotation |
void |
saveAnnotation(Person user,
Annotation annotation)
Saves the annotation (the modifications). |
void |
setBackendService(BackendAnnotationService backendServiceConnection)
Sets the backend annotation service component |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected BackendAnnotationService backendService
| Constructor Detail |
public AnnotationService(BackendAnnotationService backendServiceConnection)
throws ModelException
ModelException - if a model error occurs| Method Detail |
public void setBackendService(BackendAnnotationService backendServiceConnection)
backendServiceConnection - backend annotation service componentpublic java.lang.String getLocalName(java.lang.String uri)
uri - URI
public void addAnnotation(Annotation annotation)
throws ModelException
annotation - annotation to save
ModelException - if a model error occurs
public Annotation getAnnotation(java.lang.String annotationUri)
throws ModelException,
ResourceNotFoundException
annotationUri - URI of the annotation
Annotation
ModelException
ResourceNotFoundException
public Annotation getAnnotation(AnnotationUri annotation)
throws ModelException,
ResourceNotFoundException
annotation - AnnotationUri
Annotation
ModelException
ResourceNotFoundExceptiongetAnnotation(AnnotationUri)
public java.util.List getAnnotationThread(AnnotableObject annotableObject)
throws ModelException
annotableObject - Annotable Object
Annotations
ModelException
public java.util.List getAnnotations(Annotation annotationPattern,
java.lang.String fulltext,
int numDocs)
throws ModelException
null.
annotationPattern - Annotation patternfulltext - Terms (in title or text)numDocs - Maximum number of results
Annotation instances
ModelException - if a model error occurs
public void saveAnnotation(Person user,
Annotation annotation)
throws ModelException,
NoPermissionException
user - Person, who wants to save the annotationannotation - Modified annotation
ModelException
NoPermissionException
public void removeAnnotation(Person user,
Annotation annotation)
throws ModelException,
ResourceNotFoundException,
NoPermissionException
user - Person, who wants to delete the annotationannotation - Annotation to delete
ModelException
ResourceNotFoundException
NoPermissionException
protected void addSubClasses(JenaModel model,
CheckNode rootNode,
java.lang.String subclass)
throws ModelException
subclasses to
the node rootNode
rootNode - Nodesubclass - Subclass
ModelException
public void addAnnotationType(Person user,
java.lang.String parentType,
java.lang.String typeName)
throws ModelException,
ResourceNotFoundException
user - UserparentType - parent type of the new typetypeName - new type (name)
ModelException
ResourceNotFoundException
public CheckNode getAnnotationOntology(Person user)
throws ModelException
user - Person (user)
ModelException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||