mirror of
https://github.com/semantica-agi/semantica.git
synced 2026-09-08 04:00:15 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e8b55cf351 | ||
|
|
16860fabfd | ||
|
|
c239b43ae7 |
@@ -323,7 +323,7 @@ all_facts = datalog.derive_all()
|
|||||||
|
|
||||||
# Query with variable pattern: variables start with uppercase or ?
|
# Query with variable pattern: variables start with uppercase or ?
|
||||||
results = datalog.query("ancestor(alice, ?Z)")
|
results = datalog.query("ancestor(alice, ?Z)")
|
||||||
# → [{"Z": "bob"}, {"Z": "charlie"}, {"Z": "dave"}]
|
# → a list of binding dicts: [{"Z": "bob"}, {"Z": "charlie"}, {"Z": "dave"}] (order not guaranteed)
|
||||||
|
|
||||||
# Clear and start over
|
# Clear and start over
|
||||||
datalog.clear()
|
datalog.clear()
|
||||||
|
|||||||
Reference in New Issue
Block a user