Skip to content

Commit 9702db2

Browse files
committed
Support match step
1 parent cc58065 commit 9702db2

3 files changed

Lines changed: 470 additions & 387 deletions

File tree

generate/generate.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ def range_to_type(_range: dict) -> ast.expr:
6666
)
6767
),
6868
)
69+
if _id == "rdfg:Graph":
70+
return ast.Name("GraphPattern")
6971
if _id == "rdf:JSON":
7072
return ast.Subscript(
7173
value=ast.Attribute(value=ast.Name(id="typing"), attr="Dict"),

generate/header.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
CONTEXT = {"linkedql": "http://cayley.io/linkedql#"}
1818

1919

20+
Document = typing.Dict[str, typing.Any]
21+
GraphPattern = typing.Union[typing.List[Document], Document]
22+
23+
2024
class Operator:
2125
pass
2226

0 commit comments

Comments
 (0)