- 更新日時:
- 2014/07/07 00:27:23 (10 年 前)
- ファイル:
-
- 1 変更
凡例:
- 変更なし
- 追加
- 削除
-
BH13SPARQLBuilder/src/org/biohackathon/SPARQLBuilder/OWL/ClassLink.java
r94 r112 14 14 private String propertyURI = null; 15 15 private String linkedClassURI = null; 16 private String linkedLiteralDatatypeURI = null; 16 17 private Direction direction = null; 17 18 private int numOfLinks = 0; … … 34 35 * @since 28.01.2014 35 36 */ 36 public ClassLink(String propertyURI, String linkedClassURI, Direction direction,37 public ClassLink(String propertyURI, String linkedClassURI, String linkedLiteralDatatypeURI, Direction direction, 37 38 int numLinks, int numOfOriginInstances, int numOfLinkedInstances, 38 39 int numOfOriginClassInstances, int numofLinkedClassInstances, … … 40 41 this.propertyURI = propertyURI; 41 42 this.linkedClassURI = linkedClassURI; 43 this.linkedLiteralDatatypeURI = linkedLiteralDatatypeURI; 42 44 this.direction = direction; 43 45 this.numOfLinks = numLinks; … … 59 61 obj.put("linkedClassURI", linkedClassURI); 60 62 } 63 if( linkedLiteralDatatypeURI != null ){ 64 obj.put("linkedLiteralDatatypeURI", linkedLiteralDatatypeURI); 65 } 61 66 obj.put("numOfLinks", numOfLinks); 62 67 obj.put("numOfLinkedInstances", numOfLinkedInstances); … … 81 86 else{ 82 87 json_str+="\"linkedClassURI\":"+"\"linkedClassURI\""; 88 } 89 if( linkedLiteralDatatypeURI != null ){ 90 json_str+="\"linkedLiteralDatatypeURI\":"+"\""+linkedLiteralDatatypeURI+"\""; 91 } 92 else{ 93 json_str+="\"linkedLiteralDatatypeURI\":"+"\"linkedLiteralDatatypeURI\""; 83 94 } 84 95 … … 214 225 this.numOfLinkedClassInstances = numOfLinkedClassInstances; 215 226 } 227 228 229 public final String getLinkedLiteralDatatypeURI() { 230 return linkedLiteralDatatypeURI; 231 } 232 233 234 public final void setLinkedLiteralDatatypeURI(String linkedLiteralDatatypeURI) { 235 this.linkedLiteralDatatypeURI = linkedLiteralDatatypeURI; 236 } 237 238 239 public final void setDomainClassLimitedQ(boolean domainClassLimitedQ) { 240 this.domainClassLimitedQ = domainClassLimitedQ; 241 } 242 243 244 public final void setRangeClassLimitedQ(boolean rangeClassLimitedQ) { 245 this.rangeClassLimitedQ = rangeClassLimitedQ; 246 } 216 247 217 248