We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8454edb + 4160a4f commit 27146e5Copy full SHA for 27146e5
terminusdb_client/woqldataframe/woqlDataframe.py
@@ -15,10 +15,36 @@
15
16
17
class EmptyException(Exception):
18
+ """ Exception inherited from the built-in Exception Class
19
+
20
+ Parameters
21
+ ----------
22
+ msg : str
23
+ Error message that is describing the exception
24
25
+ Raises
26
+ ------
27
+ EmptyException
28
+ If the result table of the query is empty
29
30
+ """
31
pass
32
33
34
def _is_empty(query):
35
+ """Checks if the result table of a query is empty
36
37
38
39
+ query : dict
40
+ JSON of the result of the query
41
42
+ Returns
43
+ -------
44
+ bool
45
+ TRUE if the result table is empty, else FALSE
46
47
48
return len(query["bindings"]) == 0
49
50
0 commit comments