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

Last edited by Mateusz Ślażyński Oct 12, 2018
Page history
This is an old version of this page. You can view the most recent version or browse the history.

knowledge base

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
Clone repository
  • 20181018
  • Theory
  • Home
  • knowledge base
  • specification