thi-ng / umbrella

⛱ Broadly scoped ecosystem & mono-repository of 199 TypeScript projects (and ~180 examples) for general purpose, functional, data driven development
https://thi.ng
Apache License 2.0
3.39k stars 150 forks source link

[egf]: allow untyped links #236

Open nichtich opened 4 years ago

nichtich commented 4 years ago

In lack of a formal specification It's not strictly forbidden at the moment. Explicit mentioning the possibility of untyped links would help:

foo
  #ref bar

Or with https://github.com/thi-ng/umbrella/issues/234

foo
  -> bar

The parser could treat untyped links as links with property label being the empty string.

postspectacular commented 4 years ago

I'm not quite sure how you'd represent these in the target environment/datastructure. E.g. in JS each node is an object with properties and their values as KV pairs. So for untyped edges between nodes we'd need to introduce another special property (like $id or $ref). Not sure what to call that, really...