Package org.apache.stanbol.rules.manager

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


  @Override
  public SPARQLObject toSPARQL() {
    log.debug("Parameter Function : "+parameterFunctionAtom.toSPARQL().getObject());
    String variableArgument = variable.toString().replace("http://kres.iks-project.eu/ontology/meta/variables#", "");
    String let = "LET (?" + variableArgument + " := " + parameterFunctionAtom.toSPARQL().getObject() + ")";
    SPARQLObject sparqlObject = new SPARQLFunction(let);
    return sparqlObject;
  }
View Full Code Here


  public SPARQLObject toSPARQL() {
   
    String sparqlConcat = "<http://www.w3.org/2005/xpath-functions#concat>";
    String function = sparqlConcat + " (" + argument1.toSPARQL().getObject() + ", " + argument2.toSPARQL().getObject() + ")";
    
    return new SPARQLFunction(function);
  }
View Full Code Here

     
    }
   
    String sparql = "<http://www.w3.org/2005/xpath-functions#upper-case> (" + uriResourceString + ")";
     
    return new SPARQLFunction(sparql);
  }
View Full Code Here

  @Override
  public SPARQLObject toSPARQL() {
    String sparqlFunction1 = numericFunctionAtom1.toSPARQL().getObject();
    String sparqlFunction2 = numericFunctionAtom2.toSPARQL().getObject();
    return new SPARQLFunction(sparqlFunction1 + " + " +sparqlFunction2);
  }
View Full Code Here

  @Override
  public SPARQLObject toSPARQL() {
    String sparql = "<http://www.w3.org/2005/xpath-functions#string-length> (" + stringFunctionAtom.toSPARQL().getObject() + ")";
   
    return new SPARQLFunction(sparql);
  }
View Full Code Here

    if(argument.startsWith("http://kres.iks-project.eu/ontology/meta/variables#")){
      argument = "?"+argument.replace("http://kres.iks-project.eu/ontology/meta/variables#", "");
    }
   
    String sparql = "<http://jena.hpl.hp.com/ARQ/function#localname>(" + argument + ")";
    return new SPARQLFunction(sparql);
  }
View Full Code Here

     
    }
   
    String sparql = "<http://www.w3.org/2005/xpath-functions#lower-case> (" + uriResourceString + ")";
     
    return new SPARQLFunction(sparql);
  }
View Full Code Here

    if(argument.startsWith("http://kres.iks-project.eu/ontology/meta/variables#")){
      argument = "?"+argument.replace("http://kres.iks-project.eu/ontology/meta/variables#", "");
    }
   
    String sparql = "<http://www.stlab.istc.cnr.it/semion/function#createLabel>(" + argument + ")";
    return new SPARQLFunction(sparql);
  }
View Full Code Here

    return null;
  }

  @Override
  public SPARQLObject toSPARQL() {
    return new SPARQLFunction(sparqlConstruct);
  }
View Full Code Here

    }
    else{
      bindingString = binding.toString();
    }
   
    SPARQLObject sparqlObject = new SPARQLFunction(variable + " " + popertyFunction + " " + bindingString);
    return sparqlObject;
  }
View Full Code Here

TOP

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