From 6c3a2b9a2a3c21d0b7e8cf400795e6db6c43fcfc Mon Sep 17 00:00:00 2001 From: Edmond Chuc Date: Mon, 25 Sep 2023 11:40:52 +1000 Subject: [PATCH] Update docstring example --- prez/bnode.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/prez/bnode.py b/prez/bnode.py index 27040d3f..e8c9fa0b 100644 --- a/prez/bnode.py +++ b/prez/bnode.py @@ -28,8 +28,10 @@ def get_bnode_depth(node: URIRef, graph: Graph) -> int: :param node: The starting resource node. :param graph: The resource's concise bounded description graph. - >>> graph = Graph().parse(...) - >>> depth = get_bnode_depth(URIRef("node-name"), graph) + >>> graph = Graph().parse("example-data.ttl") + >>> resource = URIRef("node-name") + >>> cbd = graph.cbd(resource) + >>> depth = get_bnode_depth(resource, cbd) """ max_depth = 0 for obj in graph.objects(node, None):