aboutsummaryrefslogtreecommitdiffstats
path: root/bsfs/graph/graph.py
diff options
context:
space:
mode:
authorMatthias Baumgartner <dev@igsor.net>2022-12-19 13:32:34 +0100
committerMatthias Baumgartner <dev@igsor.net>2022-12-19 13:32:34 +0100
commit791918039979d0743fd2ea4b9a5e74593ff96fd0 (patch)
treec8e6703325ae14e02d2f92e4f6658aa41a6f4701 /bsfs/graph/graph.py
parente94368c75468e3e94382b12705e55d396249eaca (diff)
downloadbsfs-791918039979d0743fd2ea4b9a5e74593ff96fd0.tar.gz
bsfs-791918039979d0743fd2ea4b9a5e74593ff96fd0.tar.bz2
bsfs-791918039979d0743fd2ea4b9a5e74593ff96fd0.zip
query ast file structures and essential interfaces
Diffstat (limited to 'bsfs/graph/graph.py')
-rw-r--r--bsfs/graph/graph.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bsfs/graph/graph.py b/bsfs/graph/graph.py
index b7b9f1c..10e5904 100644
--- a/bsfs/graph/graph.py
+++ b/bsfs/graph/graph.py
@@ -9,6 +9,7 @@ import os
import typing
# bsfs imports
+from bsfs.query import ast
from bsfs.schema import Schema
from bsfs.triple_store import TripleStoreBase
from bsfs.utils import URI, typename
@@ -110,4 +111,8 @@ class Graph():
type_ = self.schema.node(node_type)
return _nodes.Nodes(self._backend, self._user, type_, {guid})
+ def get(self, node_type: URI, subject: ast.filter.FilterExpression) -> Nodes:
+ """Return a `Nodes` instance over all nodes of type *node_type* that match the *subject* query."""
+ raise NotImplementedError()
+
## EOF ##