Class E_EncodeForQsa

java.lang.Object
org.apache.jena.sparql.function.FunctionBase
org.apache.jena.sparql.function.FunctionBase1
org.aksw.jena_sparql_api.sparql.ext.http.E_EncodeForQsa
All Implemented Interfaces:
org.apache.jena.sparql.function.Function

public class E_EncodeForQsa extends org.apache.jena.sparql.function.FunctionBase1
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    Source: http://stackoverflow.com/questions/607176/java-equivalent-to-javascripts- encodeuricomponent-that-produces-identical-outpu Encodes the passed String as UTF-8 using an algorithm that's compatible with JavaScript's encodeURIComponent function.
    org.apache.jena.sparql.expr.NodeValue
    exec(org.apache.jena.sparql.expr.NodeValue nv)
     

    Methods inherited from class org.apache.jena.sparql.function.FunctionBase1

    checkBuild, exec

    Methods inherited from class org.apache.jena.sparql.function.FunctionBase

    build, exec, exec

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • E_EncodeForQsa

      public E_EncodeForQsa()
  • Method Details

    • encodeURIComponent

      public static String encodeURIComponent(String s)
      Source: http://stackoverflow.com/questions/607176/java-equivalent-to-javascripts- encodeuricomponent-that-produces-identical-outpu Encodes the passed String as UTF-8 using an algorithm that's compatible with JavaScript's encodeURIComponent function. Returns null if the String is null.
      Parameters:
      s - The String to be encoded
      Returns:
      the encoded String
    • exec

      public org.apache.jena.sparql.expr.NodeValue exec(org.apache.jena.sparql.expr.NodeValue nv)
      Specified by:
      exec in class org.apache.jena.sparql.function.FunctionBase1