We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc58065 commit 9702db2Copy full SHA for 9702db2
3 files changed
generate/generate.py
@@ -66,6 +66,8 @@ def range_to_type(_range: dict) -> ast.expr:
66
)
67
),
68
69
+ if _id == "rdfg:Graph":
70
+ return ast.Name("GraphPattern")
71
if _id == "rdf:JSON":
72
return ast.Subscript(
73
value=ast.Attribute(value=ast.Name(id="typing"), attr="Dict"),
generate/header.py
@@ -17,6 +17,10 @@
17
CONTEXT = {"linkedql": "http://cayley.io/linkedql#"}
18
19
20
+Document = typing.Dict[str, typing.Any]
21
+GraphPattern = typing.Union[typing.List[Document], Document]
22
+
23
24
class Operator:
25
pass
26
0 commit comments