public JSONObject getJSONArrayRepresentation() throws JSONException { JSONObject typeObj = new JSONObject(); typeObj.put(ClientJsonKeys.FullType.name(), type.getUri()); if(isClass()) typeObj.put(ClientJsonKeys.DomainUri.name(), ""); else typeObj.put(ClientJsonKeys.DomainUri.name(), domain.getUri()); return typeObj; }
@Override public String toString() { if (isClass()) return "SemanticType [hNodeId=" + hNodeId + ", type=" + type.getUri() + ", origin=" + origin + ", confidenceLevel=" + confidenceLevel + "]"; else return "SemanticType [hNodeId=" + hNodeId + ", type=" + type.getUri() + ", domain=" + domain.getUri() + ", origin=" + origin + ", confidenceLevel=" + confidenceLevel + "]"; }
if (synonyms != null && !synonyms.getSynonyms().isEmpty()){ for (SemanticType synType:synonyms.getSynonyms()) { if (synType.isClass()) { logger.error("Synonym type as class with no property are not allowed."); continue;
if (!type.isClass()) { writer .key(JsonKeys.FullType.name()).value(type.getType().getUri())