| 134 | | String propertyURI = jsonObject.getJSONObject("propertyURI").toString(); |
| 135 | | String linkedClassURI = jsonObject.getJSONObject("linkedClassURI").toString(); |
| 136 | | String linkedLiteralDatatypeURI = jsonObject.getJSONObject("linkedLiteralDatatypeURI").toString(); |
| 137 | | int numOfLinks = Integer.parseInt(jsonObject.getJSONObject("numOfLinks").toString()); |
| 138 | | int numOfLinkedInstances = Integer.parseInt(jsonObject.getJSONObject("numOfLinkedInstances").toString()); |
| 139 | | int numOfOriginInstances = Integer.parseInt(jsonObject.getJSONObject("numOfOriginInstances").toString()); |
| 140 | | int numOfOriginClassInstances = Integer.parseInt(jsonObject.getJSONObject("numOfOriginInstances").toString()); |
| 141 | | int numOfLinkedClassInstances = Integer.parseInt(jsonObject.getJSONObject("numOfLinkedClassInstances").toString()); |
| | 135 | |
| | 136 | String direction=jsonObject.getString("direction"); |
| | 137 | Direction myDirection = null; |
| | 138 | if (direction.equals(Direction.forward.toString())) |
| | 139 | myDirection=Direction.forward; |
| | 140 | else if (direction.equals(Direction.reverse.toString())) |
| | 141 | myDirection=Direction.reverse; |
| | 142 | else if (direction.equals(Direction.both.toString())) |
| | 143 | myDirection=Direction.both; |
| | 144 | |
| | 145 | |
| | 146 | String linkedLiteralDatatypeURI=null; |
| | 147 | linkedLiteralDatatypeURI = jsonObject.getString("linkedLiteralDatatypeURI"); |
| | 148 | String linkedClassURI = jsonObject.getString("linkedClassURI"); |
| | 149 | String propertyURI = jsonObject.getString("propertyURI"); |
| 143 | | ClassLink classLink =new ClassLink(propertyURI, linkedClassURI, linkedLiteralDatatypeURI, null, |
| 144 | | numOfLinks, numOfOriginInstances, numOfLinkedInstances, |
| 145 | | numOfOriginClassInstances, numOfLinkedClassInstances, |
| | 151 | // int numOfLinks = Integer.parseInt(jsonObject.getJSONObject("numOfLinks").toString()); |
| | 152 | // int numOfLinkedInstances = Integer.parseInt(jsonObject.getJSONObject("numOfLinkedInstances").toString()); |
| | 153 | // int numOfOriginInstances = Integer.parseInt(jsonObject.getJSONObject("numOfOriginInstances").toString()); |
| | 154 | // int numOfOriginClassInstances = Integer.parseInt(jsonObject.getJSONObject("numOfOriginInstances").toString()); |
| | 155 | // int numOfLinkedClassInstances = Integer.parseInt(jsonObject.getJSONObject("numOfLinkedClassInstances").toString()); |
| | 156 | |
| | 157 | // ClassLink classLink =new ClassLink(propertyURI, linkedClassURI, linkedLiteralDatatypeURI, null, |
| | 158 | // numOfLinks, numOfOriginInstances, numOfLinkedInstances, |
| | 159 | // numOfOriginClassInstances, numOfLinkedClassInstances, |
| | 160 | // false, false); |
| | 161 | ClassLink classLink =new ClassLink(propertyURI, linkedClassURI, linkedLiteralDatatypeURI, myDirection, |
| | 162 | 0, 0, 0, |
| | 163 | 0, 0, |