1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package cz.zcu.mre.sparkle.tools.sparqlParser;
21
22 import cz.zcu.mre.sparkle.gui.query.helpers.FieldType;
23
24
25
26
27
28
29
30
31 public class SparqlParserTriple {
32
33 private final String subject;
34 private final String predicate;
35 private final String object;
36 private final FieldType subjectFieldType;
37 private final FieldType predicateFieldType;
38 private final FieldType objectFieldType;
39 private final boolean isSubTriple;
40 private final String literalLang;
41 private final String literalDataType;
42
43 public SparqlParserTriple(final String subject, final String predicate, final String object,
44 final FieldType subjectFieldType, final FieldType predicateFieldType, final FieldType objectFieldType,
45 final boolean isSubTriple, final String literalLang, final String literalDataType) {
46 this.subject = subject;
47 this.predicate = predicate;
48 this.object = object;
49 this.subjectFieldType = subjectFieldType;
50 this.predicateFieldType = predicateFieldType;
51 this.objectFieldType = objectFieldType;
52 this.isSubTriple = isSubTriple;
53 if (literalLang != null) {
54 this.literalLang = literalLang;
55 } else {
56 this.literalLang = null;
57 }
58 if (literalDataType != null) {
59 this.literalDataType = literalDataType;
60 } else {
61 this.literalDataType = null;
62 }
63 }
64
65 public String getSubject() {
66 return this.subject;
67 }
68
69 public FieldType getSubjectFieldType() {
70 return this.subjectFieldType;
71 }
72
73 public String getPredicate() {
74 return this.predicate;
75 }
76
77 public FieldType getPredicateFieldType() {
78 return this.predicateFieldType;
79 }
80
81 public String getObject() {
82 return this.object;
83 }
84
85 public FieldType getObjectFieldType() {
86 return this.objectFieldType;
87 }
88
89 public boolean isSubTriple() {
90 return this.isSubTriple;
91 }
92
93 public String getLiteralLang() {
94 return this.literalLang;
95 }
96
97 public String getLiteralDataType() {
98 return this.literalDataType;
99 }
100 }