/** * Creates an assignement sentence. * * @param ind The individual. * @param conc The concept. * @return A new assignement sentence. */ public Sentence createAssignmentSentence(Individual ind, Concept conc) { Sentence s = ontology.getEngine().createAssignmentSentence(ind, conc); s.init(ontology, null); return s; }
/** * Creates a hierarchy sentence. * * @param subConc The sub-concept. * @param superConc The super-concept. * @return A new hierarchy sentence. */ public Sentence createHierarchySentence(Concept subConc, Concept superConc) { Sentence s = ontology.getEngine().createHierarchySentence(subConc, superConc); s.init(ontology, null); return s; }
/** * Creates a new sentence object with the given article. * * @param serialized The serialized representation of the sentence. * @param article The article. * @return A new sentence object. */ public Sentence createSentence(String serialized, Article article) { Sentence s = ontology.getEngine().createSentence(serialized); s.init(ontology, article); return s; }