Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Am I doing it right? #4

Open
agoloborodko opened this issue Apr 9, 2023 · 1 comment
Open

Am I doing it right? #4

agoloborodko opened this issue Apr 9, 2023 · 1 comment

Comments

@agoloborodko
Copy link

agoloborodko commented Apr 9, 2023

Hi Lars!

I was able to run bareclad and populate it with data, but search confused me a lot.

After executing example.tracula script, I was trying to query all names of people who was born at certain day:

search +p[{(+x, birth date)}, '1972-02-13', *],
         [{(x, name)}, +n, +t]
return
    n, t;

But result in console is empty:

Traqula file to run on startup: traqula/startup.traqula
Local variables: ["x"]
Local variables: ["x"]
Return recall: n
Return recall: t
Variables: {"x": ResultSet { mode: Empty, thing: None, multi: None }}

Also, I definitely see posits in bareclad.db with value of 1972-02-13.

So, am I doing it wrong? Is search already implemented?

@agoloborodko
Copy link
Author

Maybe this is a clue. In sqlite database, I don't see things, that related to appearance sets.

For example, posit with id=13 refers to something with id=12, role=6 and id=11, role=5, but there are no such identifiers in Thing or Posit table.

image

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant