Skip to content

Commit bc7ee20

Browse files
committed
Update dimension match in Cypher queries to use 'Dimension' instead of 'FactDimension'
- Modified Cypher queries in both `subgraph_workspace_client.py` and `view_builder_client.py` to replace references to 'FactDimension' with 'Dimension'. - This change ensures consistency in the data model and improves clarity in the query structure.
1 parent 2f63d67 commit bc7ee20

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎robosystems_client/extensions/subgraph_workspace_client.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ async def copy_facts_with_aspects(
422422
MATCH (f)-[:FACT_HAS_PERIOD]->(p:Period)
423423
MATCH (f)-[:FACT_HAS_ENTITY]->(e:Entity)
424424
OPTIONAL MATCH (f)-[:FACT_HAS_UNIT]->(u:Unit)
425-
OPTIONAL MATCH (f)-[:FACT_HAS_DIMENSION]->(d:FactDimension)
425+
OPTIONAL MATCH (f)-[:FACT_HAS_DIMENSION]->(d:Dimension)
426426
{where_clause}
427427
RETURN f, el, p, e, u, collect(d) as dimensions
428428
"""

‎robosystems_client/extensions/view_builder_client.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ async def query_facts_with_aspects(
210210
MATCH (f)-[:FACT_HAS_PERIOD]->(p:Period)
211211
OPTIONAL MATCH (f)-[:FACT_HAS_ENTITY]->(e:Entity)
212212
OPTIONAL MATCH (f)-[:FACT_HAS_UNIT]->(u:Unit)
213-
OPTIONAL MATCH (f)-[:FACT_HAS_DIMENSION]->(d:FactDimension)
213+
OPTIONAL MATCH (f)-[:FACT_HAS_DIMENSION]->(d:Dimension)
214214
{where_clause}
215215
RETURN f.identifier AS fact_id,
216216
f.numeric_value AS numeric_value,

0 commit comments

Comments
 (0)