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

Feature Request: n10s.inference.isTypeRel function (similar to n10s.inference.hasLabel) #271

Open
wqp89324 opened this issue Sep 15, 2022 · 1 comment

Comments

@wqp89324
Copy link

When I reverse a graph looking for a path MATCH (from), (to), p = shortestPath((from) - [*..15] - (to)), usually I can filter the relationships found along the way by (using the movie ontology example):
WHERE all(r IN relationships(path) WHERE type(r) = "ACTED_IN")
However, if along the path, I do not care if the relationship is "ACT_IN" or "PRODUCED" or "DIRECTED", I hope to be able to apply the filter based on a broader concept "WORKED_IN", such as:
WHERE all(r IN relationships(path) WHERE n10s.inference.isTypeRel(r) = "WORK_IN")
Could you please design a function that can perform inference on hierarchy of relations?

@wqp89324
Copy link
Author

I'm wondering if this feature request is clear or does it make sense? Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant