Package org.apache.stanbol.rules.adapters.jena

Examples of org.apache.stanbol.rules.adapters.jena.NodeClauseEntry


            }

            node = NodeFactory.getTypedLiteral(n);
        }

        return (T) new NodeClauseEntry(node);

    }
View Full Code Here


        } else {

            node = NodeFactory.getTypedLiteral(string);
        }

        return (T) new NodeClauseEntry(node);

    }
View Full Code Here

            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

    @SuppressWarnings("unchecked")
    @Override
    public <T> T adapt(RuleAtom ruleAtom) throws RuleAtomCallExeption {
        org.apache.stanbol.rules.manager.atoms.TypedLiteralAtom tmp = (org.apache.stanbol.rules.manager.atoms.TypedLiteralAtom) ruleAtom;

        return (T) new NodeClauseEntry(NodeFactory.getTypedLiteral(tmp));
    }
View Full Code Here

        org.apache.stanbol.rules.manager.atoms.ResourceAtom tmp = (org.apache.stanbol.rules.manager.atoms.ResourceAtom) ruleAtom;

        String unquotedURI = tmp.toUnquotedString();
        Node node = Node_RuleVariable.createURI(unquotedURI);

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

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

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

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

TOP

Related Classes of org.apache.stanbol.rules.adapters.jena.NodeClauseEntry

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.