jonase / learndatalogtoday

Interactive Datalog Tutorial
Eclipse Public License 1.0
347 stars 52 forks source link

Can I query by attribute values? #43

Open OnkelTem opened 6 months ago

OnkelTem commented 6 months ago

I'm stuck at this chapter: https://www.learndatalogtoday.org/chapter/4

So I do this:

[:find ?e
 :where 
 [?e :db/ident :person/name]
]

and it shows me 68, but I can't do this:

[:find ?e ?a
 :where 
 [?e ?a :person/name]
]

— meaning to see all the entities with their attributes that equal to :person/name. The sandbox returns just an empty result set:

image

Why is that?