# -*- coding: utf-8 -*- # """ This is an RDFLib store around Ivan Herman et al.'s SPARQL service wrapper. This was first done in layer-cake, and then ported to RDFLib """ import re import collections from .sparqlconnector import SPARQLConnector from rdflib.plugins.stores.regexmatching import NATIVE_REGEX from rdflib.store import Store from rdflib import Variable, BNode from rdflib.graph import DATASET_DEFAULT_GRAPH_ID from rdflib.term import Node from typing import Any, Callable, Dict, Optional, Union, Tuple # Defines some SPARQL keywords LIMIT = "LIMIT" OFFSET = "OFFSET" ORDERBY = "ORDER BY" BNODE_IDENT_PATTERN = re.compile(r"(?P