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

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


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

        String variableName = tmp.getVariableName();

        return (T) new SPARQLFunction("?" + variableName);

    }
View Full Code Here


            default:
                break;
        }

        if (argumentSPARQL != null) {
            return (T) new SPARQLFunction(argumentSPARQL);
        } else {
            return null;
        }
    }
View Full Code Here

            value += "\"";
        }

        String xsdType = "<" + xsdTypeResource.getURI().toString() + ">";

        return (T) new SPARQLFunction(value + "^^" + xsdType.toString());
    }
View Full Code Here

            SPARQLObject sparqlArgument = adapter.adaptTo(argument, SPARQLObject.class);

            String sparql = "<http://www.w3.org/2005/xpath-functions#upper-case> ("
                            + sparqlArgument.getObject() + ")";

            return (T) new SPARQLFunction(sparql);

        } catch (UnsupportedTypeForExportException e) {
            throw new org.apache.stanbol.rules.base.api.RuleAtomCallExeption(getClass());
        } catch (UnavailableRuleObjectException e) {
            throw new org.apache.stanbol.rules.base.api.RuleAtomCallExeption(getClass());
View Full Code Here

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

        String quotedURI = tmp.toString();

        return (T) new SPARQLFunction(quotedURI);
    }
View Full Code Here

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

        String variableName = tmp.getVariableName();

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

        String arg = sparqlArgument.getObject();

        String sparql = "<http://www.w3.org/2005/xpath-functions#string-length> (" + arg + ")";

        return (T) new SPARQLFunction(sparql);
    }
View Full Code Here

                .getUriResource();

        SPARQLObject sparqlObject = adapter.adaptTo(argument, SPARQLObject.class);

        String sparql = "<http://jena.hpl.hp.com/ARQ/function#localname>(" + sparqlObject.getObject() + ")";
        return (T) new SPARQLFunction(sparql);
    }
View Full Code Here

        SPARQLObject sparqlArgument = adapter.adaptTo(argument, SPARQLObject.class);

        String sparql = "<http://www.w3.org/2005/xpath-functions#lower-case> (" + sparqlArgument.getObject()
                        + ")";

        return (T) new SPARQLFunction(sparql);

    }
View Full Code Here

        SPARQLObject sparqlArgument = adapter.adaptTo(argument, SPARQLObject.class);

        String arg = sparqlArgument.getObject();

        String let = "LET (?" + variableArgument + " := " + arg + ")";
        SPARQLObject sparqlObject = new SPARQLFunction(let);
        return (T) sparqlObject;

    }
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.