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