pykg2tbl/j2/jinja_sparql_builder.py
def variables_in_query(self, name:str) -> set:
        """
        The set of variables to make this template work
        
        :param name: name of the template to inspect
        :returns: set of variable-names
        :rtype: set of str
        """
        template_name = name
        templates_env = self._templates_env
        log.debug(f"name template: {template_name}")
        template_source = templates_env.loader.get_source(templates_env, template_name)
        log.debug(f"template source = {template_source}")
        ast = self._templates_env.parse(template_source)
        return meta.find_undeclared_variables(ast)

        The set of variables to make this template work
        
        :param name: name of the template to inspect
        :returns: set of variable-names
        :rtype: set of str
        
The set of variables to make this template work
The set of variables to make this template work
def variables_in_query(self, name:str) -> set:
        template_name = name
        templates_env = self._templates_env
        log.debug(f"name template: {template_name}")
        template_source = templates_env.loader.get_source(templates_env, template_name)
        log.debug(f"template source = {template_source}")
        ast = self._templates_env.parse(template_source)
        return meta.find_undeclared_variables(ast)
def variables_in_query ( self , name : str ) -> set : template_name = name templates_env = self . _templates_env log . debug ( f"name template: {template_name}" ) template_source = templates_env . loader . get_source ( templates_env , template_name ) log . debug ( f"template source = {template_source}" ) ast = self . _templates_env . parse ( template_source ) return meta . find_undeclared_variables ( ast )
The set of variables to make this template work
The set of variables to make this template work
"""
        The set of variables to make this template work
        
        :param name: name of the template to inspect
        :returns: set of variable-names
        :rtype: set of str
        """
set of variable-names
set of variable - names
set of str
self
name
str
name of the template to inspect
name of the template to inspect