Skip to content

Commit

Permalink
Adding _meta/facts and _meta/rules files. Also changing wording sligh…
Browse files Browse the repository at this point in the history
…tly in clips/641/rules.json
  • Loading branch information
mrryanjohnston committed Jul 31, 2024
1 parent 1c63b2a commit 0d6f574
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
13 changes: 13 additions & 0 deletions web/thesauruses/_meta/facts.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"meta": {
"structure": "facts",
"structure_name": "Facts"
},
"categories": {
"Asserting Facts": {
"assert": "Asserting Facts"
},
"Retracting Facts": {
"retract": "Retracting Facts"
}
}
13 changes: 13 additions & 0 deletions web/thesauruses/_meta/rules.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"meta": {
"structure": "rules",
"structure_name": "Rules"
},
"categories": {
"Defining Rules": {
"defrule": "Defining Rules"
},
"Undefining Rules": {
"undefrule": "Undefining Rules"
}
}
6 changes: 3 additions & 3 deletions web/thesauruses/clips/641/rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@
"structure": "rules"
},
"concepts": {
"assert": {
"defrule": {
"code": [
"(defrule my-rule",
" (my-fact ?value)",
"=>",
"(println \"My value: \" ?value))"
],
"name": "Defining a Rule in the CLIPS environment"
"name": "Creating a Defrule in the CLIPS environment"
},
"undefrule": {
"code": "(undefrule my-rule)",
"name": "Deleting a Rule from the CLIPS environment"
"name": "Deleting a Defrule from the CLIPS environment"
}
}
}
Expand Down

0 comments on commit 0d6f574

Please sign in to comment.