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

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


        sb.append(arg1);
        sb.append(" < ");
        sb.append(arg2);
        sb.append(")");

        return (T) new SPARQLComparison(sb.toString());

    }
View Full Code Here


            sb.append(arg1);
            sb.append(" = ");
            sb.append(arg2);
            sb.append(")");

            return (T) new SPARQLComparison(sb.toString());
        } 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.NotAtom tmp = (org.apache.stanbol.rules.manager.atoms.NotAtom) ruleAtom;
        SPARQLObject sparqlObject;
        try {
            sparqlObject = adapter.adaptTo(tmp.getComparisonAtom(), SPARQLObject.class);
            String sparqlAtom = "!" + sparqlObject.getObject();
            return (T) new SPARQLComparison(sparqlAtom);
        } 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

        sb.append(sparqlFunction1);
        sb.append(" * ");
        sb.append(sparqlFunction2);
        sb.append(")");

        return (T) new SPARQLComparison(sb.toString());

    }
View Full Code Here

            SPARQLObject sparqlTerm = adapter.adaptTo(term, SPARQLObject.class);

            String argumentSparql = sparqlArgument.getObject();
            String termSparql = sparqlTerm.getObject();

            return (T) new SPARQLComparison("<http://www.w3.org/2005/xpath-functions#starts-with> ("
                                            + argumentSparql + ", " + termSparql + ")");

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

            sb.append(sparqlFunction1);
            sb.append(" - ");
            sb.append(sparqlFunction2);
            sb.append(")");

            return (T) new SPARQLComparison(sb.toString());

        } 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

        sb.append(arg1);
        sb.append(" >= ");
        sb.append(arg2);
        sb.append(")");

        return (T) new SPARQLComparison(sb.toString());

    }
View Full Code Here

        sb.append(argument1);
        sb.append("!=");
        sb.append(argument2);
        sb.append(")");

        return (T) new SPARQLComparison(sb.toString());

    }
View Full Code Here

        SPARQLObject sparqlTerm = adapter.adaptTo(term, SPARQLObject.class);

        String argumentSparql = sparqlArgument.getObject();
        String termSparql = sparqlTerm.getObject();

        return (T) new SPARQLComparison("<http://www.w3.org/2005/xpath-functions#ends-with> ("
                                        + argumentSparql + ", " + termSparql + ")");
    }
View Full Code Here

            sb.append(sparqlFunction1);
            sb.append(" + ");
            sb.append(sparqlFunction2);
            sb.append(")");

            return (T) new SPARQLComparison(sb.toString());

        } 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

TOP

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

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.