-
Notifications
You must be signed in to change notification settings - Fork 4
/
Cell.java
70 lines (52 loc) · 1.75 KB
/
Cell.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
package cz.cvut.spipes.modules.model;
import cz.cvut.kbss.jopa.model.annotations.OWLAnnotationProperty;
import cz.cvut.kbss.jopa.model.annotations.OWLClass;
import cz.cvut.spipes.constants.CSVW;
import cz.cvut.spipes.constants.KBSS_CSVW;
import cz.cvut.spipes.modules.util.TabularModuleUtils;
import java.net.URI;
import java.net.URISyntaxException;
@OWLClass(iri = CSVW.CellUri)
public class Cell extends AbstractEntity{
public Cell() {}
public Cell(String cellUri) {
try {
this.setUri(new URI(cellUri));
} catch (URISyntaxException e) {
throw new RuntimeException(e);
}
}
@OWLAnnotationProperty(iri = CSVW.nameUri)
private String name;
@OWLAnnotationProperty(iri = CSVW.rowUri)
private String row;
@OWLAnnotationProperty(iri = CSVW.columnUri)
private String column;
@OWLAnnotationProperty(iri = KBSS_CSVW.sameValueAsUri)
private String sameValueAsCell;
private final transient TabularModuleUtils tabularModuleUtils = new TabularModuleUtils();
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getSameValueAsCell() {
return sameValueAsCell;
}
public void setSameValueAsCell(String sameValueAsCell) {
this.sameValueAsCell = sameValueAsCell;
}
public void setRow(String row) {
tabularModuleUtils.setVariable(this.row, row, value -> this.row = value, "rowName");
}
public String getRow() {
return row;
}
public void setColumn(String column) {
tabularModuleUtils.setVariable(this.column, column, value -> this.column = value, "columnName");
}
public String getColumn() {
return column;
}
}