Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema: Typed topology #483

Open
lmeyerov opened this issue May 13, 2023 · 0 comments
Open

Schema: Typed topology #483

lmeyerov opened this issue May 13, 2023 · 0 comments

Comments

@lmeyerov
Copy link
Contributor

lmeyerov commented May 13, 2023

Most property graph systems follow a typed topology, which is useful information for a path query synthesizer

  • The method should extract for the connected database(s) a description of typed & directed connectivities. Using cypher syntax, this might look like:
(s:T1)-[e:T2]->(d:T3)
(s:T1)-[e:T2]->(d:T4)
(s:T1)-[e:T5]->(d:T6)
...

To simplify manipulation, this should be represented with some sort of typed representation vs a big string:

@dataclass
class TypedTriple
  directed: bool
  source_type: str
  edge_type: str
  destination_type: str

async def infer_typed_topology(...) -> List[TypedTriple]
  • Databases may be large, e.g., billion scale, so a strategy or controls should be in place to support working with large systems

Note that node/edge attributes are not represented, nor are details like path lengths

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants