Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tutorials:intermediate:json_prolog [2019/04/24 11:37] – [Importing a package with queries] gkazhoya | tutorials:intermediate:json_prolog [2019/04/24 11:43] – [Importing a package with queries] gkazhoya | ||
---|---|---|---|
Line 175: | Line 175: | ||
(NIL) | (NIL) | ||
</ | </ | ||
+ | |||
+ | In JSON Prolog '' | ||
| | ||
This allows us to use the '' | This allows us to use the '' | ||
Line 181: | Line 183: | ||
<code lisp> | <code lisp> | ||
- | CL-USER (json-prolog: | + | CL-USER (json-prolog: |
- | (((|?Result| | + | (((?RESULT |
. # | . # | ||
:GENERATOR #< | :GENERATOR #< | ||
Line 188: | Line 190: | ||
</ | </ | ||
- | This query converts the first elements upper case letters into lower case, and stores the obtained result in the '' | + | This query converts the first elements upper case letters into lower case, and stores the obtained result in the '' |
- | An overview of the currently available packages and their queries can be found [[http:// | + | An overview of the currently available packages and their queries can be found [[http:// |
<code bash> | <code bash> | ||
| | ||
Line 199: | Line 201: | ||
| | ||
<code lisp> | <code lisp> | ||
- | |||
Prolog query failed: PrologException: | Prolog query failed: PrologException: | ||
[Condition of type SIMPLE-ERROR] | [Condition of type SIMPLE-ERROR] | ||
- | | ||
</ | </ | ||
| | ||
- | and if you check your terminal, in which the **json_prolog** node is running, there will be a huge java print as well, basically explaining the same thing. | + | and if you check your terminal, in which the '' |
| | ||
| | ||
- | ==== Some more information about Prolog in LISP ==== | + | ==== (NIL) vs NIL ==== |
| | ||
If we want to check, if a certain number is member of the list, we must declare the variable accordingly. e.g. | If we want to check, if a certain number is member of the list, we must declare the variable accordingly. e.g. |