Skip to content

Method: setIndividualUri(URI)

1: /**
2: * Copyright (C) 2016 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.net.URL;
21: import java.util.List;
22: import java.util.Map;
23: import java.util.Set;
24:
25: @OWLClass(iri = "http://krizik.felk.cvut.cz/ontologies/jopa/entities#OWLClassP")
26: public class OWLClassP {
27:
28: @Id(generated = true)
29: private URI uri;
30:
31: @OWLObjectProperty(iri = "http://krizik.felk.cvut.cz/ontologies/jopa/attributes#hasIndividual")
32: private URI individualUri;
33:
34: @OWLObjectProperty(iri = "http://krizik.felk.cvut.cz/ontologies/jopa/attributes#hasOtherIndividual")
35: private Set<URL> individuals;
36:
37: @Sequence(type = SequenceType.simple)
38: @OWLObjectProperty(iri = "http://krizik.felk.cvut.cz/ontologies/jopa/attributes#P-hasSimpleSequence")
39: private List<URI> simpleList;
40:
41: @Sequence
42: @OWLObjectProperty(iri = "http://krizik.felk.cvut.cz/ontologies/jopa/attributes#P-hasReferencedSequence")
43: private List<URI> referencedList;
44:
45: @Properties(fetchType = FetchType.EAGER)
46: private Map<URI, Set<Object>> properties;
47:
48: public URI getUri() {
49: return uri;
50: }
51:
52: public void setUri(URI uri) {
53: this.uri = uri;
54: }
55:
56: public URI getIndividualUri() {
57: return individualUri;
58: }
59:
60: public void setIndividualUri(URI individualUri) {
61: this.individualUri = individualUri;
62: }
63:
64: public Set<URL> getIndividuals() {
65: return individuals;
66: }
67:
68: public void setIndividuals(Set<URL> individuals) {
69: this.individuals = individuals;
70: }
71:
72: public List<URI> getSimpleList() {
73: return simpleList;
74: }
75:
76: public void setSimpleList(List<URI> simpleList) {
77: this.simpleList = simpleList;
78: }
79:
80: public List<URI> getReferencedList() {
81: return referencedList;
82: }
83:
84: public void setReferencedList(List<URI> referencedList) {
85: this.referencedList = referencedList;
86: }
87:
88: public Map<URI, Set<Object>> getProperties() {
89: return properties;
90: }
91:
92: public void setProperties(Map<URI, Set<Object>> properties) {
93: this.properties = properties;
94: }
95:
96: @Override
97: public String toString() {
98: return "OWLClassP{" +
99: "uri=" + uri +
100: ", properties=" + properties +
101: '}';
102: }
103: }