Functions:
-
load_list_re
–Recursively iterate over RDF list containers for extracting lists of lists.
_load_list_re
_load_list_re(graph, first_node, node_set, parse_uri, quiet)
Recursive internal function to extract list of lists from RDF list containers.
Source code in src/rdf_utils/collection.py
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
|
load_list_re
load_list_re(graph, first_node, parse_uri=True, quiet=True)
Recursively iterate over RDF list containers for extracting lists of lists.
Parameters:
-
graph
(Graph
) –Graph object to extract the list(s) from
-
first_node
(BNode
) –First element in the list
-
parse_uri
(bool
, default:True
) –if True will try converting literals into URIRef
-
quiet
(bool
, default:True
) –if True will not throw exceptions other than loop detection
Raises:
-
RuntimeError
–When a loop is detected
-
ValueError
–When
quiet
isFalse
and short URI cannot be expanded
Source code in src/rdf_utils/collection.py
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
|