Search in sources :

Example 1 with ThenPart

use of org.w3._2007.rif.ThenPart in project hale by halestudio.

the class ModelRifToRifTranslator method buildSentence.

private Sentence buildSentence(ModelSentence s) {
    // sort variables within sentence
    final Sentence sentence = factory.createSentence();
    final Implies implies = factory.createImplies();
    sentence.setImplies(implies);
    final If if1 = factory.createIf();
    implies.setIf(if1);
    final Exists exists = factory.createExists();
    if1.setExists(exists);
    ThenPart then = factory.createThenPart();
    implies.setThen(then);
    Do do1 = factory.createDo();
    then.setDo(do1);
    processChildren(s, exists, do1);
    return sentence;
}
Also used : Implies(org.w3._2007.rif.Implies) Exists(org.w3._2007.rif.Exists) ThenPart(org.w3._2007.rif.ThenPart) Do(org.w3._2007.rif.Do) ModelSentence(com.onespatial.jrc.tns.oml_to_rif.model.rif.ModelSentence) Sentence(org.w3._2007.rif.Sentence) If(org.w3._2007.rif.If)

Aggregations

ModelSentence (com.onespatial.jrc.tns.oml_to_rif.model.rif.ModelSentence)1 Do (org.w3._2007.rif.Do)1 Exists (org.w3._2007.rif.Exists)1 If (org.w3._2007.rif.If)1 Implies (org.w3._2007.rif.Implies)1 Sentence (org.w3._2007.rif.Sentence)1 ThenPart (org.w3._2007.rif.ThenPart)1