66 | | obj.put("numOfLinks", numOfLinks); |
67 | | obj.put("numOfLinkedInstances", numOfLinkedInstances); |
68 | | obj.put("numOfOriginInstances", numOfOriginInstances); |
69 | | obj.put("numOfOriginClassInstances", numOfOriginClassInstances); |
70 | | obj.put("numOfLinkedClassInstances", numOfLinkedClassInstances); |
| 66 | if( direction != null ){ |
| 67 | obj.put("direction", direction); |
| 68 | } |
| 69 | //obj.put("numOfLinks", numOfLinks); |
| 70 | //obj.put("numOfLinkedInstances", numOfLinkedInstances); |
| 71 | //obj.put("numOfOriginInstances", numOfOriginInstances); |
| 72 | //obj.put("numOfOriginClassInstances", numOfOriginClassInstances); |
| 73 | //obj.put("numOfLinkedClassInstances", numOfLinkedClassInstances); |
90 | | json_str+="\"linkedLiteralDatatypeURI\":"+"\""+linkedLiteralDatatypeURI+"\""; |
91 | | } |
92 | | else{ |
93 | | json_str+="\"linkedLiteralDatatypeURI\":"+"\"linkedLiteralDatatypeURI\""; |
94 | | } |
95 | | |
96 | | //json_str+="\"numOfLinks\":"+"\""+numOfLinks+"\","; |
97 | | //json_str+="\"numOfLinkedInstances\":"+"\""+numOfLinkedInstances+"\","; |
98 | | //json_str+="\"numOfOriginInstances\":"+"\""+numOfOriginInstances+"\","; |
99 | | //json_str+="\"numOfOriginClassInstances\":"+"\""+numOfOriginClassInstances+"\","; |
100 | | //json_str+="\"numOfLinkedClassInstances\":"+"\""+numOfLinkedClassInstances+"\""; |
| 93 | json_str+="\"linkedLiteralDatatypeURI\":"+"\""+linkedLiteralDatatypeURI+"\","; |
| 94 | } |
| 95 | else{ |
| 96 | json_str+="\"linkedLiteralDatatypeURI\":"+"\"linkedLiteralDatatypeURI\","; |
| 97 | } |
| 98 | if( direction != null ){ |
| 99 | json_str+="\"direction\":"+"\""+direction.toString()+"\""; |
| 100 | } |
| 101 | else{ |
| 102 | json_str+="\"direction\":"+"\"direction\""; |
| 103 | } |
| 104 | |
| 105 | // json_str+="\"numOfLinks\":"+"\""+numOfLinks+"\","; |
| 106 | // json_str+="\"numOfLinkedInstances\":"+"\""+numOfLinkedInstances+"\","; |
| 107 | // json_str+="\"numOfOriginInstances\":"+"\""+numOfOriginInstances+"\","; |
| 108 | // json_str+="\"numOfOriginClassInstances\":"+"\""+numOfOriginClassInstances+"\","; |
| 109 | // json_str+="\"numOfLinkedClassInstances\":"+"\""+numOfLinkedClassInstances+"\""; |