Package org.apache.stanbol.rules.manager

Examples of org.apache.stanbol.rules.manager.SPARQLComparison


    else{
      arg2 = "str("+arg2+")";
    }
   
   
    return new SPARQLComparison(arg1+" > "+arg2);
   
  }
View Full Code Here


  public SPARQLObject toSPARQL() {
    String argumentSparql = argument.toSPARQL().getObject();
   
   
   
    return new SPARQLComparison("<http://www.w3.org/2005/xpath-functions#ends-with> (" + argumentSparql + ", " + term.toSPARQL().getObject() + ")");
  }
View Full Code Here

      sparql = argument;
    }
   
    sparql = "isBlank(" + sparql + ")";
   
    return new SPARQLComparison(sparql);
  }
View Full Code Here

    else{
      arg2 = "str("+arg2+")";
    }
   
   
    return new SPARQLComparison(arg1+" < "+arg2);
   
  }
View Full Code Here

   
    argument1 = argument1.toString().replace("http://kres.iks-project.eu/ontology/meta/variables#", "");
    argument2 = argument2.toString().replace("http://kres.iks-project.eu/ontology/meta/variables#", "");
   
   
    return new SPARQLComparison(argument1 + " = " + argument2);
   
  }
View Full Code Here

  @Override
  public SPARQLObject toSPARQL() {
    SPARQLObject sparqlObject = comparisonAtom.toSPARQL();
    String sparqlAtom = "!" + sparqlObject.getObject();
    return new SPARQLComparison(sparqlAtom);
  }
View Full Code Here

  public SPARQLObject toSPARQL() {
    String argumentSparql = argument.toSPARQL().getObject();
   
   
   
    return new SPARQLComparison("<http://www.w3.org/2005/xpath-functions#starts-with> (" + argumentSparql + ", " + term.toSPARQL().getObject() + ")");
  }
View Full Code Here

    String argument2 = stringFunctionAtom2.toSPARQL().getObject();
   
    argument1 = argument1.toString().replace("http://kres.iks-project.eu/ontology/meta/variables#", "");
    argument2 = argument2.toString().replace("http://kres.iks-project.eu/ontology/meta/variables#", "");
   
    return new SPARQLComparison(argument1 + " != " + argument2);
   
  }
View Full Code Here

TOP

Related Classes of org.apache.stanbol.rules.manager.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.