11: How many Actions have DNA-Strans as base
Shaken formulation:
How many Action have a DNA-Strand as a base?
Answer
There are no which are a Action .
Question in KM
Template
How many <class> have <instance> as a <slot>?
Parameters
| CLASS | Action |
|---|---|
| SLOT | base |
| INSTANCE | _DNA-Strand927 |
Code
("p2: How many <class> have <instance> as a <slot>? -> <number> <values>
This is the inverse version of p2 (What is the inverse (<slot>) of <instance>), so use p2 for this."
(defun answer-p2-data0 (class0 slot instance)
(let* ( (class (cond ((is-wildcard class0) '#$Thing) (t class0)))
(vals (km `#$(the ,CLASS ,SLOT of ,INSTANCE) :fail-mode 'fail)) )
`(answer
(question-type p2)
(class ,class)
(slot ,slot)
(instance ,instance)
(number ,(length vals))
(values ,vals)))))
Raw Answer
((question-type p2i) (class action) (slot base) (instance _dna-strand927) (number 0) (values nil) (explanations nil))
Terms
SHAKEN - Unpublished Copyright © 1999-2001, SRI Team