Examples of JenaClauseEntry


Examples of org.apache.stanbol.rules.base.api.JenaClauseEntry

        SWRLAtom swrlAtom = ruleAtom.toSWRL(factory);
        if (swrlAtom == null) {
            fail(this.getClass().getCanonicalName() + " does not produce any rule in SWRL.");
        }

        JenaClauseEntry jenaEntry = ruleAtom.toJenaClauseEntry(jenaVariableMap);
        if (jenaEntry == null) {
            fail(this.getClass().getCanonicalName() + " does not produce any rule in JENA.");
        }
    }
View Full Code Here

Examples of org.apache.stanbol.rules.base.api.JenaClauseEntry

   
    JenaVariableMap jenaVariableMap = new JenaVariableMapImpl();
    Iterator<RuleAtom> it = this.head.iterator();
    for(int i=0; it.hasNext(); i++){
      RuleAtom atom = it.next();
      JenaClauseEntry jenaClauseEntry = atom.toJenaClauseEntry(jenaVariableMap);
      head[i] = jenaClauseEntry.getClauseEntry();
    }
   
   
    it = this.body.iterator();
    for(int i=0; it.hasNext(); i++){
      RuleAtom atom = it.next();
      JenaClauseEntry jenaClauseEntry = atom.toJenaClauseEntry(jenaVariableMap);
      body[i] = jenaClauseEntry.getClauseEntry();
    }
   
   
    jenaRule = new com.hp.hpl.jena.reasoner.rulesys.Rule(ruleName, head, body);
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.