Package org.apache.stanbol.rules.adapters.sparql

Examples of org.apache.stanbol.rules.adapters.sparql.SPARQLFunction


        SPARQLObject sparqlArgument2 = adapter.adaptTo(argument2, SPARQLObject.class);

        String function = sparqlConcat + " (" + sparqlArgument1.getObject() + ", "
                          + sparqlArgument2.getObject() + ")";

        return (T) new SPARQLFunction(function);

    }
View Full Code Here


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

        SPARQLObject binding = adapter.adaptTo(tmp.getBinding(), SPARQLObject.class);
        SPARQLObject variable = adapter.adaptTo(tmp.getNewNodeVariable(), SPARQLObject.class);

        SPARQLObject sparqlObject = new SPARQLFunction("BIND(" + binding.getObject() + " AS "
                                                       + variable.getObject() + ")");
        return (T) sparqlObject;

    }
View Full Code Here

    public <T> T adapt(RuleAtom ruleAtom) {
        org.apache.stanbol.rules.manager.atoms.VariableAtom tmp = (org.apache.stanbol.rules.manager.atoms.VariableAtom) ruleAtom;

        String variableName = tmp.getVariableName();

        return (T) new SPARQLFunction("?" + variableName);
    }
View Full Code Here

TOP

Related Classes of org.apache.stanbol.rules.adapters.sparql.SPARQLFunction

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.