Skip to contentPackage: OWLClassP
OWLClassP
Coverage
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: @Types
46: private Set<URI> types;
47:
48: @Properties(fetchType = FetchType.EAGER)
49: private Map<URI, Set<Object>> properties;
50:
51: public URI getUri() {
52: return uri;
53: }
54:
55: public void setUri(URI uri) {
56: this.uri = uri;
57: }
58:
59: public URI getIndividualUri() {
60: return individualUri;
61: }
62:
63: public void setIndividualUri(URI individualUri) {
64: this.individualUri = individualUri;
65: }
66:
67: public Set<URL> getIndividuals() {
68: return individuals;
69: }
70:
71: public void setIndividuals(Set<URL> individuals) {
72: this.individuals = individuals;
73: }
74:
75: public List<URI> getSimpleList() {
76: return simpleList;
77: }
78:
79: public void setSimpleList(List<URI> simpleList) {
80: this.simpleList = simpleList;
81: }
82:
83: public List<URI> getReferencedList() {
84: return referencedList;
85: }
86:
87: public void setReferencedList(List<URI> referencedList) {
88: this.referencedList = referencedList;
89: }
90:
91: public Set<URI> getTypes() {
92: return types;
93: }
94:
95: public void setTypes(Set<URI> types) {
96: this.types = types;
97: }
98:
99: public Map<URI, Set<Object>> getProperties() {
100: return properties;
101: }
102:
103: public void setProperties(Map<URI, Set<Object>> properties) {
104: this.properties = properties;
105: }
106:
107: @Override
108: public String toString() {
109: return "OWLClassP{" +
110: "uri=" + uri +
111: ", types=" + types +
112: ", properties=" + properties +
113: '}';
114: }
115: }