OverviewFilesCommitsIssuesDocsReleasesPeers

opencog-sensory commits / 7e6e98d

Working set of queries
7e6e98d01a2bbea3157824842c8a858c7b17b21c
by Linas Vepstas <linas@linas.org> · 2025-12-29T19:48:20.000Z

Changed files (1) +20 -2

sandbox/count.scm +20 -2
……@@ -4,11 +4,29 @@
44(use-modules (opencog))
55
66(define get-all-types
7 (Query
7 (Query
88 (Variable "$atom") ; vardecl
99 (Variable "$atom") ; match anything
10 (TypeOf (Variable "$atom")) ; rewrite
10 (TypeOf (DontExec (Variable "$atom"))) ; rewrite
1111 ))
1212
1313(cog-execute! get-all-types)
1414
15(define get-all-atoms
16 (Meet
17 (Variable "$atom") ; vardecl
18 (Variable "$atom") ; match anything
19 ))
20
21(cog-execute! get-all-atoms)
22
23(define get-all-queries
24 (Query
25 (TypedVariable (Variable "$atom") (Type 'Query))
26 (Variable "$atom") ; match anything
27 (DontExec (Variable "$atom")) ; rewrite
28 ))
29
30(cog-execute! get-all-queries)
31
32