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

Chunks syntax: equivalence of links definitions #12

Open
tidoust opened this issue Jun 23, 2020 · 0 comments
Open

Chunks syntax: equivalence of links definitions #12

tidoust opened this issue Jun 23, 2020 · 0 comments

Comments

@tidoust
Copy link
Member

tidoust commented Jun 23, 2020

There are three main ways to describe a link between chunks:

  1. A chunk property references another chunk identifier as in:
person John { likes Mary }
person Mary {}
  1. The compact form is used:
person John {}
person Mary {}
John likes Mary
  1. An explicit link gets created:
person John {}
person Mary {}
likes {
  @subject John
  @object Mary
}

The intro to chunks suggests that these syntaxes are equivalent, but I'm not sure what that means in practice:

  • If 1. is used, would a chunks parser automatically create the chunk in 3 (unless it already exists)? Or does that only happen when 2. is used?
  • If 2. or 3. is used, would a chunks parser automatically add a likes property to the chunk whose identifier is John (unless it already exists)?

If not, what does "equivalent" mean?

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