def __init__(self, endpoint: str, *args, persistent_bnodes: bool = False, **kwargs) -> None:
        """ Create a graph

        :param endpoint: URL of SPARQL endpoint
        :param persistent_bnodes: BNodes persist across SPARQL calls
        """
        self.sparql = SPARQLWrapper(endpoint)
        self.persistent_bnodes = persistent_bnodes
        self.sparql.setReturnFormat(JSON)
        self.resolved_nodes: List[QueryTriple] = [(None, None, None)]

        self.debug_slurps = False
        self._query_result_hook: Type[QueryResultHook] = None
        self.graph_name: str = None
        self.total_slurptime = 0.0
        self.total_calls = 0
        self.total_queries = 0
        self.total_triples = 0
        self.sparql_locked = False
        super().__init__(*args, **kwargs)
def __init__ ( self , endpoint : str , * args , persistent_bnodes : bool = False , ** kwargs ) -> None : self . sparql = SPARQLWrapper ( endpoint ) self . persistent_bnodes = persistent_bnodes self . sparql . setReturnFormat ( JSON ) self . resolved_nodes : List [ QueryTriple ] = [ ( None , None , None ) ] self . debug_slurps = False self . _query_result_hook : Type [ QueryResultHook ] = None self . graph_name : str = None self . total_slurptime = 0.0 self . total_calls = 0 self . total_queries = 0 self . total_triples = 0 self . sparql_locked = False super ( ) . __init__ ( * args , ** kwargs )
Create a graph

        :param endpoint: URL of SPARQL endpoint
        :param persistent_bnodes: BNodes persist across SPARQL calls