Class SparqlBuilderUtils


  • public class SparqlBuilderUtils
    extends Object
    Utility functions for the SparqlBuilder
    • Constructor Detail

      • SparqlBuilderUtils

        public SparqlBuilderUtils()
    • Method Detail

      • getBracedString

        public static String getBracedString​(String contents)
      • getBracketedString

        public static String getBracketedString​(String contents)
      • getParenthesizedString

        public static String getParenthesizedString​(String contents)
      • getQuotedString

        public static String getQuotedString​(String contents)
      • getLongQuotedString

        public static String getLongQuotedString​(String contents)
        For string literals that contain single- or double-quotes
        Parameters:
        contents -
        Returns:
        a "long quoted" string
        See Also:
        RDF Literal Syntax
      • getEscapedString

        public static String getEscapedString​(String value)
        Escape the specified String value according to the SPARQL 1.1 Spec https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#grammarEscapes

        Note that there is no special handling for Codepoint escape sequences as described by https://www.w3.org/TR/2013/REC-sparql11-query-20130321/#codepointEscape

        Parameters:
        value - The String to escape
        Returns:
        the escaped String