1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package cz.zcu.mre.data.core;
23
24 import java.io.Serializable;
25 import java.util.List;
26 import java.util.Set;
27 import org.apache.jena.rdf.model.Literal;
28 import org.apache.jena.rdf.model.Property;
29 import org.apache.jena.rdf.model.Resource;
30
31
32
33
34
35
36 public interface MREData extends Serializable {
37
38 boolean isEmpty();
39
40 boolean hasURI();
41
42 Resource generateNewResource();
43
44 Resource getResource();
45
46 void setResource(Resource resource);
47
48 void setResource(String uri);
49
50 String getUri();
51
52 String getId();
53
54 void setId(String id);
55
56 Set<Resource> getType();
57
58 boolean hasType();
59
60 public boolean hasType(Resource type);
61
62 List<? extends Resource> getTypeList();
63
64 void setTypeList(List<Resource> typeset);
65
66 void setType(Resource type);
67
68 String getTitle();
69
70 String getTitle(String lang);
71
72 void setTitle(String title);
73
74 void setTitle(String title, String lang);
75
76 String getLabel();
77
78 void setLabel(String label);
79
80 void setLabel(String label, String lang);
81
82 String getLabelPreferred();
83
84 void setLabelPreferred(String title);
85
86 void setLabelPreferred(String title, String lang);
87
88 void addValue(Property property, String string);
89
90 void addValue(Property property, String string, String lang);
91
92 void addValue(Property property, Resource res);
93
94 void removeValues(Property property);
95
96 Set<Resource> getValuesResource(Property property);
97
98 Set<Literal> getValuesLiteral(Property property);
99
100 Set<String> getValuesString(Property property);
101
102 Set<Object> getValuesObject(Property property);
103
104 boolean hasProperty(Property property);
105
106 boolean hasValue(final Property property);
107
108 boolean hasValue(final Property property, final Object value);
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141 }