aspen icon indicating copy to clipboard operation
aspen copied to clipboard

Cyphery description blocks

Open beechnut opened this issue 4 years ago • 1 comments

Would it be valuable to have describe blocks that describe an entity, and assign all relationships and attributes to them? I think it would.

I've also got an idea for slightly more Cypher-like syntax where if we add arrows/lines, we can generate multiple expressions in a single line, obviating the need for some grammars.

describe (Bilbo)
  -[lives in]->(Place: Hobbiton)<-[contains]-(Place: Middle Earth)
  -[enemies with]-(Gollum)
  [cousins with] (Frodo)
  [friends with] (Gandalf)
  age: 111

beechnut avatar Sep 22 '21 14:09 beechnut

An alternative format for the moment might be:

(Matt).score = 5
(Matt).github_username = "beechnut"

(Matt):
  score: 5
  github_username: "beechnut"

beechnut avatar Dec 08 '21 16:12 beechnut