Package com.hp.hpl.jena.reasoner.rulesys

Examples of com.hp.hpl.jena.reasoner.rulesys.Node_RuleVariable


            trailValues = new Node[trailLen];
            trailVars = new Node_RuleVariable[trailLen];
        }
        trailLength = trailLen;
        for (int i = 0; i < trailLen; i++) {
            Node_RuleVariable var = (Node_RuleVariable) trail.get(i);
            trailVars[i] = var;
            trailValues[i] = var.getRawBoundValue();
        }
        // Save the permanent variables
        Node[] currentPVars = envFrame.pVars;
        if (currentPVars != null) {
            if (pVars == null || pVars.length < currentPVars.length) {
View Full Code Here


        Integer index = ((JenaAdapter)adapter).variableMap.get(variable);
        if(index == null){
            index = ((JenaAdapter)adapter).variableMap.size();
            ((JenaAdapter)adapter).variableMap.put(variable, index);
        }
        Node_RuleVariable ruleVariable = new Node_RuleVariable("?" + variable, index.intValue());

        return (T) new NodeClauseEntry(ruleVariable);
    }
View Full Code Here

        if(index == null){
            index = ((JenaAdapter)adapter).variableMap.size();
            ((JenaAdapter)adapter).variableMap.put(variable, index);
        }
       
        Node_RuleVariable ruleVariable = new Node_RuleVariable("?" + variable, index.intValue());

        return (T) new NodeClauseEntry(ruleVariable);
    }
View Full Code Here

        Integer index = ((JenaAdapter)adapter).variableMap.get(variable);
        if(index == null){
            index = ((JenaAdapter)adapter).variableMap.size();
            ((JenaAdapter)adapter).variableMap.put(variable, index);
        }
        Node_RuleVariable ruleVariable = new Node_RuleVariable("?" + variable, index.intValue());
       
       
        return (T) new NodeClauseEntry(ruleVariable);
    }
View Full Code Here

            trailValues = new Node[trailLen];
            trailVars = new Node_RuleVariable[trailLen];
        }
        trailLength = trailLen;
        for (int i = 0; i < trailLen; i++) {
            Node_RuleVariable var = (Node_RuleVariable) trail.get(i);
            trailVars[i] = var;
            trailValues[i] = var.getRawBoundValue();
        }
        // Save the permanent variables
        Node[] currentPVars = envFrame.pVars;
        if (currentPVars != null) {
            if (pVars == null || pVars.length < currentPVars.length) {
View Full Code Here

   
    private List<Node> m_Variables = CollectionUtils.makeList();
   
    public Node get(int target) {
      for (int size = m_Variables.size(); size <= target; size++) {
        m_Variables.add(new Node_RuleVariable(PREFIX + size, size));
      }
      return m_Variables.get(target);
    }
View Full Code Here

   
    private List<Node> m_Variables = CollectionUtils.makeList();
   
    public Node get(int target) {
      for (int size = m_Variables.size(); size <= target; size++) {
        m_Variables.add(new Node_RuleVariable(PREFIX + size, size));
      }
      return m_Variables.get(target);
    }
View Full Code Here

    Node arg2Node = null;
   
    String arg1 = argument1.toString();
    if(arg1.startsWith("http://kres.iks-project.eu/ontology/meta/variables#")){
      arg1 = "?" + arg1.replace("http://kres.iks-project.eu/ontology/meta/variables#", "");
      arg1Node = new Node_RuleVariable(arg1, jenaVariableMap.getVariableIndex(arg1));
    }
    else{
      arg1Node = getTypedLiteral(argument1);
    }
   
    String arg2 = argument2.toString();
    if(arg2.startsWith("http://kres.iks-project.eu/ontology/meta/variables#")){
      arg2 = "?" + arg2.replace("http://kres.iks-project.eu/ontology/meta/variables#", "");
      arg2Node = new Node_RuleVariable(arg2, jenaVariableMap.getVariableIndex(arg2));
    }
    else{
      arg2Node = getTypedLiteral(argument2);
    }
   
View Full Code Here

    Node arg2Node = null;
   
    String arg1 = argument1.toString();
    if(arg1.startsWith("http://kres.iks-project.eu/ontology/meta/variables#")){
      arg1 = arg1.replace("http://kres.iks-project.eu/ontology/meta/variables#", "");
      arg1Node = new Node_RuleVariable(arg1, jenaVariableMap.getVariableIndex(arg1));
    }
    else{
      arg1Node = getTypedLiteral(argument1);
    }
   
    String arg2 = argument2.toString();
    if(arg2.startsWith("http://kres.iks-project.eu/ontology/meta/variables#")){
      arg2 = arg2.replace("http://kres.iks-project.eu/ontology/meta/variables#", "");
      arg2Node = new Node_RuleVariable(arg2, jenaVariableMap.getVariableIndex(arg2));
    }
    else{
      arg2Node = getTypedLiteral(argument2);
    }
   
View Full Code Here

      }
      //argumnetNode = Node_RuleVariable.createVariable(subject);
     
      subject = "?" + subject;
     
      argumnetNode  = new Node_RuleVariable(subject, jenaVariableMap.getVariableIndex(subject));
    }
    else{
      argumnetNode = Node_RuleVariable.createURI(subject);
    }
   
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.reasoner.rulesys.Node_RuleVariable

Copyright © 2018 www.massapicom. 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.