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

Scope relationship constraints to a set of node types #24

Open
beechnut opened this issue Sep 2, 2021 · 0 comments
Open

Scope relationship constraints to a set of node types #24

beechnut opened this issue Sep 2, 2021 · 0 comments

Comments

@beechnut
Copy link
Collaborator

beechnut commented Sep 2, 2021

Background

A person can know another person, and a person can also know a skill, fact, or topic.

If a person knows someone, they probably know each other, so you could set reciprocal: knows.

However, if a dataset says that someone knows a person and also knows a fact, then the dataset with the reciprocal setting will say that the fact knows the person! That's not right.

We should be able to scope relationships by setting what node types apply to a given rule.


Here are plain English descriptions and its Aspen discourse translation.

knows relationships between people are reciprocal, but those between a person and anything else (e.g. a fact or skill) is directed.

reciprocal: knows (Person to Person)

knows relationships are allowed between a Person node and any other node.

allow_only: knows (Person to *)

knows relationships are allowed between a Person and a Person, or between a Person and a Skill.

allow_only: knows (Person to Person, Person to Skill)
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