Skip to content

Method: getPluralAnnotationProperty()

1: /**
2: * Copyright (C) 2022 Czech Technical University in Prague
3: *
4: * This program is free software: you can redistribute it and/or modify it under
5: * the terms of the GNU General Public License as published by the Free Software
6: * Foundation, either version 3 of the License, or (at your option) any
7: * later version.
8: *
9: * This program is distributed in the hope that it will be useful, but WITHOUT
10: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11: * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
12: * details. You should have received a copy of the GNU General Public License
13: * along with this program. If not, see <http://www.gnu.org/licenses/>.
14: */
15: package cz.cvut.kbss.jopa.test;
16:
17: import cz.cvut.kbss.jopa.model.annotations.*;
18:
19: import java.net.URI;
20: import java.util.Map;
21: import java.util.Set;
22:
23: @OWLClass(iri = Vocabulary.C_OWL_CLASS_N)
24: public class OWLClassN {
25:
26: @Id(generated = true)
27: private String id;
28:
29: @OWLAnnotationProperty(iri = Vocabulary.P_N_STR_ANNOTATION_PROPERTY)
30: private String annotationProperty;
31:
32: @OWLAnnotationProperty(iri = "http://krizik.felk.cvut.cz/ontologies/jopa/attributes#annotationUri")
33: private URI annotationUri;
34:
35: @ParticipationConstraints(nonEmpty = true)
36: @OWLDataProperty(iri = Vocabulary.P_N_STRING_ATTRIBUTE)
37: private String stringAttribute;
38:
39: @OWLAnnotationProperty(iri = Vocabulary.DC_SOURCE)
40: private Set<String> pluralAnnotationProperty;
41:
42: @Inferred
43: @Properties(fetchType = FetchType.LAZY)
44: private Map<String, Set<String>> properties;
45:
46: public String getId() {
47: return id;
48: }
49:
50: public void setId(String id) {
51: this.id = id;
52: }
53:
54: public String getAnnotationProperty() {
55: return annotationProperty;
56: }
57:
58: public void setAnnotationProperty(String annotationProperty) {
59: this.annotationProperty = annotationProperty;
60: }
61:
62: public URI getAnnotationUri() {
63: return annotationUri;
64: }
65:
66: public void setAnnotationUri(URI annotationUri) {
67: this.annotationUri = annotationUri;
68: }
69:
70: public String getStringAttribute() {
71: return stringAttribute;
72: }
73:
74: public void setStringAttribute(String stringAttribute) {
75: this.stringAttribute = stringAttribute;
76: }
77:
78: public Set<String> getPluralAnnotationProperty() {
79: return pluralAnnotationProperty;
80: }
81:
82: public void setPluralAnnotationProperty(Set<String> pluralAnnotationProperty) {
83: this.pluralAnnotationProperty = pluralAnnotationProperty;
84: }
85:
86: public Map<String, Set<String>> getProperties() {
87: return properties;
88: }
89:
90: public void setProperties(Map<String, Set<String>> properties) {
91: this.properties = properties;
92: }
93:
94: @Override
95: public String toString() {
96: return "OWLClassN{" +
97: "id='" + id + '\'' +
98: ", annotationProperty='" + annotationProperty + '\'' +
99: ", annotationUri=" + annotationUri +
100: ", stringAttribute='" + stringAttribute + '\'' +
101: ", properties=" + properties +
102: '}';
103: }
104: }