annotate src/main/java/de/mpiwg/itgroup/annotationManager/RDFHandling/Annotation.java @ 32:40846c0b344d

working on image annotations...
author casties
date Thu, 31 May 2012 11:57:50 +0200
parents cf8166ee8918
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
17
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
1 package de.mpiwg.itgroup.annotationManager.RDFHandling;
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
2
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
3 import java.util.List;
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
4
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
5 /**
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
6 * Fasst alle Parameter zusammen, die eine Annotation bilden
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
7 * @author dwinter
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
8 *
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
9 */
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
10 public class Annotation {
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
11 public String xpointer=null; //if queried xpointer should contain the first xpointer in the xpointers list, if there is more than one.
29
cf8166ee8918 still working on new annotations...
casties
parents: 23
diff changeset
12 /** page number in text document */
cf8166ee8918 still working on new annotations...
casties
parents: 23
diff changeset
13 public String page=null;
cf8166ee8918 still working on new annotations...
casties
parents: 23
diff changeset
14 /** URL of a display of the page of the document */
cf8166ee8918 still working on new annotations...
casties
parents: 23
diff changeset
15 public String displayUrl=null;
32
40846c0b344d working on image annotations...
casties
parents: 29
diff changeset
16 /** String representation of the image area */
40846c0b344d working on image annotations...
casties
parents: 29
diff changeset
17 public String area = null;
17
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
18 public String creator=null;
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
19 public String time=null;
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
20 public String text=null;
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
21 public String type=null;
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
22 public String url=null;
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
23 public List<String> xpointers=null; // list of xpointers on the page url, can be empty or null if there is only one.
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
24 private String annotationUri=null; // uri der annotation im triplestore
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
25
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
26
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
27 public Annotation() {
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
28 super();
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
29 }
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
30
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
31 /**
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
32 * @param xpointer Beschreibt die Annotation
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
33 * @param creator Username des Creators oder URI der Creators
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
34 * @param time Erstellungszeit, wenn null wird das aktuelle Datum verwenden beim Konvertieren
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
35 * @param text der Annotation
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
36 * @param type Annotationstype (Entsprechend den in http://www.w3.org/2000/10/annotationType# definierten.)
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
37 * @param url Url einer Annotation
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
38 * @param annotationUri Uri der Annotation im Triplestore
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
39 */
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
40 public Annotation(String xpointer, String creator, String time, String text, String type, String url,String annotationUri){
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
41 this.xpointer=xpointer;
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
42 this.creator=creator;
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
43 this.time=time;
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
44 this.text=text;
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
45 this.type=type;
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
46 this.url=url;
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
47 this.annotationUri=annotationUri;
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
48 }
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
49 /**
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
50 * @param xpointer Beschreibt die Annotation
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
51 * @param creator Username des Creators
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
52 * @param time Erstellungszeit, wenn null wird das aktuelle Datum verwenden beim Konvertieren
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
53 * @param text der Annotation
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
54 * @param type Annotationstype (Entsprechend den in http://www.w3.org/2000/10/annotationType# definierten.)
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
55 * @param url Url einer Annotation
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
56 */
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
57 public Annotation(String xpointer, String creator, String time, String text, String type, String url){
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
58 this.xpointer=xpointer;
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
59 this.creator=creator;
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
60 this.time=time;
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
61 this.text=text;
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
62 this.type=type;
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
63 this.url=url;
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
64 }
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
65
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
66 /**
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
67 * @param xpointer Beschreibt die Annotation
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
68 * @param creator Username des Creators
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
69 * @param time Erstellungszeit, wenn null wird das aktuelle Datum verwenden beim Konvertieren
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
70 * @param text der Annotation
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
71 * @param type Annotationstype (Entsprechend den in http://www.w3.org/2000/10/annotationType# definierten.)
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
72 */
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
73 public Annotation(String xpointer, String creator, String time, String annot, String type){
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
74 this.xpointer=xpointer;
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
75 this.creator=creator;
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
76 this.time=time;
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
77 this.text=annot;
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
78 this.type=type;
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
79 this.url=null;
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
80 }
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
81 /**
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
82 * @return the annotationUri
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
83 */
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
84 public String getAnnotationUri() {
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
85 return annotationUri;
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
86 }
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
87 /**
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
88 * @param annotationUri the annotationUri to set
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
89 */
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
90 public void setAnnotationUri(String annotationUri) {
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
91 this.annotationUri = annotationUri;
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
92 }
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
93
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
94
b0ef5c860464 updating and deleting annotations works now!
casties
parents:
diff changeset
95 }