Package org.apache.stanbol.rules.manager

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


      scope2 += kReSRuleAtom.toSPARQL().getObject();
    }
   
    String sparqlUnion = " { " + scope1 + " } UNION { " +scope2 + " } ";
   
    return new SPARQLFunction(sparqlUnion);
  }
View Full Code Here


     
    }
   
    String sparql = "<http://jena.hpl.hp.com/ARQ/function#substr> (" + uriResourceString + ", " + start.toSPARQL().getObject() + ", " + length.toSPARQL().getObject() + ")";
     
    return new SPARQLFunction(sparql);
  }
View Full Code Here

    if(number.startsWith("http://kres.iks-project.eu/ontology/meta/variables#")){
      number = "?"+number.replace("http://kres.iks-project.eu/ontology/meta/variables#", "");
     
    }
   
    return new SPARQLFunction(number);
  }
View Full Code Here

    return null;
  }

  @Override
  public SPARQLObject toSPARQL() {
    return new SPARQLFunction(sparqlConstruct);
  }
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 = "str(" + argument + ")";
    return new SPARQLFunction(sparql);
  }
View Full Code Here

  @Override
  public SPARQLObject toSPARQL() {
   
    if(string.startsWith("http://kres.iks-project.eu/ontology/meta/variables#")){
      return new SPARQLFunction("?" + string.replace("http://kres.iks-project.eu/ontology/meta/variables#", ""));
    }
   
    else{
      return new SPARQLFunction(string);
    }
  }
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

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

    return null;
  }

  @Override
  public SPARQLObject toSPARQL() {
    return new SPARQLFunction(sparqlConstruct);
  }
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#namespace>(" + argument + ")";
    return new SPARQLFunction(sparql);
  }
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.