| 43 | } |
| 44 | |
| 45 | |
| 46 | public JSONObject toJSON(){ |
| 47 | JSONObject obj = new JSONObject(); |
| 48 | if( propertyURI != null ) { |
| 49 | obj.put("propertyURI", propertyURI); |
| 50 | } |
| 51 | if( linkedClassURI != null ){ |
| 52 | obj.put("linkedClassURI", linkedClassURI); |
| 53 | } |
| 54 | obj.put("numOfLinks", numOfLinks); |
| 55 | obj.put("numOfLinkedInstances", numOfLinkedInstances); |
| 56 | obj.put("numOfOriginInstances", numOfOriginInstances); |
| 57 | obj.put("numOfOriginClassInstances", numOfOriginClassInstances); |
| 58 | obj.put("numOfLinkedClassInstances", numOfLinkedClassInstances); |
| 59 | return obj; |
| 60 | } |
| 61 | |