Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • N ndl
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pro
  • ndl
  • Wiki
  • knowledge base

knowledge base · Changes

Page history
msl created page: knowledge base authored Mar 29, 2018 by Mateusz Ślażyński's avatar Mateusz Ślażyński
Hide whitespace changes
Inline Side-by-side
knowledge-base.md 0 → 100644
View page @ ce211e91
# Semantics
A Prolog-like knowledge base containing only binary and unary facts. The only allowed constants are integers.
# Syntax
Prolog expressed with s-expressions, e.g.
```
(unary-fact 1)
(unary-fact 2)
(binary-fact 1 2)
(binary-fact 2 1)
```
# Queries
Similarly to Prolog, query is a conjunction of atoms:
```
((unary-fact X) (binary-fact 1 X))
```
As in Prolog, user can use both constants and variables.
The only difference from Prolog is that there should be two ways of executing the query:
* deterministic - the same as in Prolog; should be able to generate all the possible results to the query in a repeatable way
* indeterministic - generating one random result to the query
\ No newline at end of file
Clone repository
  • 20181018
  • Theory
  • Home
  • knowledge base
  • specification