Class SPARQLExt.SPARQLGenerateSyntax

  • Enclosing class:
    SPARQLExt

    public static class SPARQLExt.SPARQLGenerateSyntax
    extends Syntax
    This class must be used instead of class Syntax.
    Author:
    Maxime Lefrançois
    • Constructor Detail

      • SPARQLGenerateSyntax

        public SPARQLGenerateSyntax​(String syntax)
        Parameters:
        the - name of the syntax
    • Method Detail

      • make

        public static Syntax make​(String uri)
        Creates and registers a new syntax with this symbol.
        Parameters:
        uri - the name of the syntax
        Returns:
        the syntax
      • guessFileSyntax

        public static Syntax guessFileSyntax​(String url,
                                             Syntax defaultSyntax)
        Guess the syntax (query and update) based on filename.
        Parameters:
        url - the url of the syntax
        defaultSyntax - a default syntax
        Returns:
        an available syntax for the filename