1 | package org.biohackathon.SPARQLBuilder.OWL;
|
---|
2 |
|
---|
3 | /**
|
---|
4 | * 繧ッ繝ゥ繧ケ縺ク縲√≠繧九>縺ッ繧ッ繝ゥ繧ケ縺九i縺ョ1繧ケ繝�ャ繝励Μ繝ウ繧ッ繧定ィ倩ソー縺吶k
|
---|
5 | * @author Norio KOBAYASHI
|
---|
6 | * @since 28.01.2014
|
---|
7 | * @version 29.01.2014
|
---|
8 | */
|
---|
9 | public class ClassLink {
|
---|
10 |
|
---|
11 | private String propertyURI = null;
|
---|
12 | private String linkedClassURI = null;
|
---|
13 | private Direction direction = null;
|
---|
14 | private int numOfLinks = 0;
|
---|
15 | private int numOfLinkedInstances = 0;
|
---|
16 | private int numOfOriginInstances = 0;
|
---|
17 |
|
---|
18 | /**
|
---|
19 | * 繝励Ο繝代ユ繧」URI縲√Μ繝ウ繧ッ蜈茨シ亥��峨け繝ゥ繧ケ縲√Μ繝ウ繧ッ縺ョ蜷代″繧剃ク弱∴繧区ァ区�蟄� |
---|
20 | *
|
---|
21 | * @param propertyURI縲繝励Ο繝代ユ繧」縺ョURI
|
---|
22 | * @param linkedClassURI縲繝ェ繝ウ繧ッ縺ョ荳サ隱槭√√≠繧九>縺ッ繝ェ繝ウ繧ッ縺ョ逶ョ逧�ェ槭→縺ェ縺」縺ヲ縺�k繧ッ繝ゥ繧ケ縺ョURI
|
---|
23 | * @param direction 繝励Ο繝代ユ繧」縺ョ蜷代″縲〕inkedClassURI縺ョ繧ッ繝ゥ繧ケ縺後Μ繝ウ繧ッ蜈医↓縺ェ縺」縺ヲ縺�k縺ィ縺阪�Direction.forward,繝ェ繝ウ繧ッ蜈�↓縺ェ縺」縺ヲ縺�k縺ィ縺阪�Direction.reverse, 縺昴l繧我ク。譁ケ縺ョ譎ゅ�Direction.both繧呈欠螳壹☆繧�
|
---|
24 | * @param numOfLinks 蠖楢ゥイ繝励Ο繝代ユ繧」縺ァ荳。遶ッ繧ッ繝ゥ繧ケ縺ョ繧、繝ウ繧ケ繧ソ繝ウ繧ケ蜷悟」ォ繧偵▽縺ェ縺�〒縺�k繝ェ繝ウ繧ッ謨ー�医ヨ繝ェ繝励Ν謨ー�� |
---|
25 | * @throws Exception
|
---|
26 | * @since 28.01.2014
|
---|
27 | */
|
---|
28 | public ClassLink(String propertyURI, String linkedClassURI, Direction direction, int numLinks, int numofOriginInstances, int numOfLinkedInstances){
|
---|
29 | this.propertyURI = propertyURI;
|
---|
30 | this.linkedClassURI = linkedClassURI;
|
---|
31 | this.direction = direction;
|
---|
32 | this.numOfLinks = numLinks;
|
---|
33 | this.numOfLinkedInstances = numOfLinkedInstances;
|
---|
34 | this.numOfOriginInstances = numOfOriginInstances;
|
---|
35 | }
|
---|
36 |
|
---|
37 |
|
---|
38 | public int getNumOfLinks() {
|
---|
39 | return numOfLinks;
|
---|
40 | }
|
---|
41 |
|
---|
42 |
|
---|
43 |
|
---|
44 |
|
---|
45 | public void setNumOfLinks(int numOfLinks) {
|
---|
46 | this.numOfLinks = numOfLinks;
|
---|
47 | }
|
---|
48 |
|
---|
49 |
|
---|
50 |
|
---|
51 |
|
---|
52 | /**
|
---|
53 | * 譁�ュ怜�陦ィ險倥r蜿門セ励☆繧� |
---|
54 | *
|
---|
55 | * @since 28.01.2014
|
---|
56 | */
|
---|
57 | public String toString(){
|
---|
58 | StringBuffer sb = new StringBuffer();
|
---|
59 | sb.append(propertyURI);
|
---|
60 | if( direction == Direction.forward ){
|
---|
61 | sb.append(" --> ");
|
---|
62 | }else{
|
---|
63 | if( direction == Direction.reverse ){
|
---|
64 | sb.append(" <-- ");
|
---|
65 | }else{
|
---|
66 | sb.append(" <-> ");
|
---|
67 | }
|
---|
68 | }
|
---|
69 | sb.append(linkedClassURI);
|
---|
70 | sb.append(" [");
|
---|
71 | sb.append(numOfLinks);
|
---|
72 | sb.append("]");
|
---|
73 | return sb.toString();
|
---|
74 | }
|
---|
75 |
|
---|
76 | public String getPropertyURI() {
|
---|
77 | return propertyURI;
|
---|
78 | }
|
---|
79 | public void setPropertyURI(String propertyURI) {
|
---|
80 | this.propertyURI = propertyURI;
|
---|
81 | }
|
---|
82 | public String getLinkedClassURI() {
|
---|
83 | return linkedClassURI;
|
---|
84 | }
|
---|
85 | public void setLinkedClassURI(String linkedClassURI) {
|
---|
86 | this.linkedClassURI = linkedClassURI;
|
---|
87 | }
|
---|
88 | public Direction getDirection() {
|
---|
89 | return direction;
|
---|
90 | }
|
---|
91 | public void setDirection(Direction direction) {
|
---|
92 | this.direction = direction;
|
---|
93 | }
|
---|
94 |
|
---|
95 | public final int getNumOfLinkedInstances() {
|
---|
96 | return numOfLinkedInstances;
|
---|
97 | }
|
---|
98 |
|
---|
99 | public final void setNumOfLinkedInstances(int numOfLinkedInstances) {
|
---|
100 | this.numOfLinkedInstances = numOfLinkedInstances;
|
---|
101 | }
|
---|
102 |
|
---|
103 |
|
---|
104 | public final int getNumOfOriginInstances() {
|
---|
105 | return numOfOriginInstances;
|
---|
106 | }
|
---|
107 |
|
---|
108 |
|
---|
109 | public final void setNumOfOriginInstances(int numOfOriginInstances) {
|
---|
110 | this.numOfOriginInstances = numOfOriginInstances;
|
---|
111 | }
|
---|
112 |
|
---|
113 |
|
---|
114 |
|
---|
115 | // private String[] propertyDomainClassURIs = null;
|
---|
116 | // private String[] propertyRangeClassURIs = null;
|
---|
117 |
|
---|
118 |
|
---|
119 |
|
---|
120 | }
|
---|