Skip to contentMethod: setOwlClassA(OWLClassA)
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: @SparqlResultSetMapping(name = OWLClassT.MAPPING_NAME, entities = {
20: @EntityResult(entityClass = OWLClassT.class, fields = {
21: @FieldResult(name = "uri", variable = "x"),
22: @FieldResult(name = "name", variable = "label"),
23: @FieldResult(name = "owlClassA", variable = "y")
24: })
25: })
26: @OWLClass(iri = Vocabulary.C_OWL_CLASS_T)
27: public class OWLClassT extends OWLClassS {
28:
29: public static final String MAPPING_NAME = "OWLClassT.mapping";
30:
31: @OWLDataProperty(iri = Vocabulary.P_T_INTEGER_ATTRIBUTE)
32: private Integer intAttribute;
33:
34: @OWLObjectProperty(iri = Vocabulary.P_HAS_OWL_CLASS_A)
35: private OWLClassA owlClassA;
36:
37: public Integer getIntAttribute() {
38: return intAttribute;
39: }
40:
41: public void setIntAttribute(Integer intAttribute) {
42: this.intAttribute = intAttribute;
43: }
44:
45: public OWLClassA getOwlClassA() {
46: return owlClassA;
47: }
48:
49: public void setOwlClassA(OWLClassA owlClassA) {
50: this.owlClassA = owlClassA;
51: }
52:
53: }