File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
examples/meeting_notes_graph Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 1616 ),
1717)
1818
19- GraphDbSpec = cocoindex .targets .Neo4j
20-
2119
2220@dataclass
2321class Person :
@@ -110,7 +108,7 @@ def meeting_notes_graph_flow(
110108
111109 meeting_nodes .export (
112110 "meeting_nodes" ,
113- GraphDbSpec (
111+ cocoindex . targets . Neo4j (
114112 connection = conn_spec , mapping = cocoindex .targets .Nodes (label = "Meeting" )
115113 ),
116114 primary_key_fields = ["note_file" , "time" ],
@@ -131,7 +129,7 @@ def meeting_notes_graph_flow(
131129 )
132130 attended_rels .export (
133131 "attended_rels" ,
134- GraphDbSpec (
132+ cocoindex . targets . Neo4j (
135133 connection = conn_spec ,
136134 mapping = cocoindex .targets .Relationships (
137135 rel_type = "ATTENDED" ,
@@ -156,7 +154,7 @@ def meeting_notes_graph_flow(
156154 )
157155 decided_tasks_rels .export (
158156 "decided_tasks_rels" ,
159- GraphDbSpec (
157+ cocoindex . targets . Neo4j (
160158 connection = conn_spec ,
161159 mapping = cocoindex .targets .Relationships (
162160 rel_type = "DECIDED" ,
@@ -179,7 +177,7 @@ def meeting_notes_graph_flow(
179177 )
180178 assigned_rels .export (
181179 "assigned_rels" ,
182- GraphDbSpec (
180+ cocoindex . targets . Neo4j (
183181 connection = conn_spec ,
184182 mapping = cocoindex .targets .Relationships (
185183 rel_type = "ASSIGNED_TO" ,
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name = "cocoindex-ecommerce-taxonomy"
33version = " 0.1.0"
44description = " Simple example for CocoIndex: extract taxonomy from e-commerce products and build knowledge graph."
55requires-python = " >=3.11"
6- dependencies = [" cocoindex>=0.2.8 " , " jinja2>=3.1.6 " ]
6+ dependencies = [" cocoindex>=0.3.8 " ]
77
88[tool .setuptools ]
99packages = []
You can’t perform that action at this time.
0 commit comments