public void internalise(AbsObject absObj, Ontology onto) throws UngroundedException, OntologyException { try { AbsConcept abs = (AbsConcept) absObj; apliesTo = (List) onto.toObject(abs.getAbsObject(CBRTerminologyOntology.ATTRIBUTE_APLIESTO)); describedBy = (List) onto.toObject(abs.getAbsObject(CBRTerminologyOntology.ATTRIBUTE_DESCRIBEDBY)); definition = (String) onto.toObject(abs.getAbsObject(CBRTerminologyOntology.ATTRIBUTE_DEFINITION)); term = (String) onto.toObject(abs.getAbsObject(CBRTerminologyOntology.ATTRIBUTE_TERM)); } catch (ClassCastException cce) { throw new OntologyException("Error internalising Attribute"); } }
public void internalise(AbsObject absObj, Ontology onto) throws UngroundedException, OntologyException { try { AbsConcept abs = (AbsConcept) absObj; score = (List) onto.toObject( abs.getAbsObject( CommonTerminologyOntology.QUANTITATIVECHARACTERDESCRIPTOR_SCORE)); attribute = (Attribute) onto.toObject( abs.getAbsObject( CommonTerminologyOntology.QUANTITATIVECHARACTERDESCRIPTOR_ATTRIBUTE)); structure = (Object) onto.toObject( abs.getAbsObject( CommonTerminologyOntology.QUANTITATIVECHARACTERDESCRIPTOR_STRUCTURE)); } catch (ClassCastException cce) { throw new OntologyException("Error internalising QuantitativeCharacterDescriptor"); } }