bsfs.triple_store.sparql.utils module#
- class bsfs.triple_store.sparql.utils.GenHopName(prefix: str = '?hop', start: int = 0)#
Bases:
object
Generator that produces a new unique symbol name with each iteration.
- curr: int#
- prefix: str#
- class bsfs.triple_store.sparql.utils.Query(root_type: str, root_head: str = '?ent', select: Iterable[Tuple[str, str]] | None = None, where: str | None = None)#
Bases:
object
Hold, manage, and complete partial Sparql queries.
- property names: Tuple[str, ...]#
Return a tuple of selected variable names, excluding the root.
- property query: str#
Return an executable sparql query.
- root_head: str#
- root_type: str#
- select: Tuple[Tuple[str, str], ...]#
- where: str#