Examples of RuleAtomCallExeption


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

            subjectNode = ((NodeClauseEntry) argument1ClauseEntry).getNode();
        } else if (argument1ClauseEntry instanceof VariableClauseEntry) {
            subjectNode = ((VariableClauseEntry) argument1ClauseEntry).getNode();
            System.out.println("Here");
        } else {
            throw new RuleAtomCallExeption(getClass());
        }

        if (objectPropertyClauseEntry instanceof NodeClauseEntry) {
            predicateNode = ((NodeClauseEntry) objectPropertyClauseEntry).getNode();
        } else {
            throw new RuleAtomCallExeption(getClass());
        }

        if (argument2ClauseEntry instanceof NodeClauseEntry) {
            objectNode = ((NodeClauseEntry) argument2ClauseEntry).getNode();
        } else {
            throw new RuleAtomCallExeption(getClass());
        }

        return (T) new TriplePattern(subjectNode, predicateNode, objectNode);

    }
View Full Code Here

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

        Node objectNode = null;

        if (argument1ClauseEntry instanceof NodeClauseEntry) {
            subjectNode = ((NodeClauseEntry) argument1ClauseEntry).getNode();
        } else {
            throw new RuleAtomCallExeption(getClass());
        }

        if (datatypePropertyClauseEntry instanceof NodeClauseEntry) {
            predicateNode = ((NodeClauseEntry) datatypePropertyClauseEntry).getNode();
        } else {
            throw new RuleAtomCallExeption(getClass());
        }

        if (argument2ClauseEntry instanceof NodeClauseEntry) {
            objectNode = ((NodeClauseEntry) argument2ClauseEntry).getNode();
        } else {
            throw new RuleAtomCallExeption(getClass());
        }

        return (T) new TriplePattern(subjectNode, predicateNode, objectNode);
    }
View Full Code Here

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

        Node arg2Node;

        if (argument1CE instanceof NodeClauseEntry) {
            arg1Node = ((NodeClauseEntry) argument1CE).getNode();
        } else {
            throw new RuleAtomCallExeption(getClass());
        }

        if (argument2CE instanceof NodeClauseEntry) {
            arg2Node = ((NodeClauseEntry) argument2CE).getNode();
        } else {
            throw new RuleAtomCallExeption(getClass());
        }

        Node blank = Node_RuleVariable.createAnon();

        return (T) new TriplePattern(arg2Node, arg1Node, blank);
View Full Code Here

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

        Node argNode;

        if (argumentClauseEntry instanceof NodeClauseEntry) {
            argNode = ((NodeClauseEntry) argumentClauseEntry).getNode();
        } else {
            throw new RuleAtomCallExeption(getClass());
        }

        java.util.List<Node> nodes = new ArrayList<Node>();

        nodes.add(argNode);
View Full Code Here

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

            clauseEntries.addAll(((HigherOrderClauseEntry) parameterClauseEntry).getClauseEntries());
        } else if (parameterClauseEntry instanceof NodeClauseEntry) {
            parameterNode = ((NodeClauseEntry) parameterClauseEntry).getNode();
        } else {
            throw new RuleAtomCallExeption(getClass());
        }

        if (variableClauseEntry instanceof NodeClauseEntry) {
            variableNode = ((NodeClauseEntry) variableClauseEntry).getNode();
        } else {
            throw new RuleAtomCallExeption(getClass());
        }

        java.util.List<Node> nodes = new ArrayList<Node>();

        nodes.add(variableNode);
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.