Skip to content

Commit

Permalink
Rename and document files
Browse files Browse the repository at this point in the history
  • Loading branch information
arcadio committed Jun 29, 2024
1 parent 1a00a16 commit 654a243
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 8 deletions.
5 changes: 5 additions & 0 deletions constraint_language.pl → csl.pl
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
%
% Constraint-specification language, defined using a definite-clause
% grammar (DCG).
%

%
% DCG grammar
%
Expand Down
4 changes: 4 additions & 0 deletions grammar.pl → dcg.pl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
%
% Definite-clause grammar (DCG) prototype.
%

%
% Rules
%
Expand Down
2 changes: 1 addition & 1 deletion dsl.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
% A domain-specific language (DSL) defining taxonomy and partonomy
% operators and rules.
%
:- ensure_loaded('meta_dsl.pl').
:- ensure_loaded('mdsl.pl').
:- style_check(-discontiguous).


Expand Down
4 changes: 4 additions & 0 deletions predicate_generator.pl → gen.pl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
%
% Alternative constraint-specification language definition.
%

%
% Logical operators
%
Expand Down
3 changes: 1 addition & 2 deletions kb.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
% An example knowledge base of pancreatic anatomy. Defines taxonomy,
% partonomy and ad-hoc relations.
%

:- ensure_loaded('dsl.pl').
:- ensure_loaded('constraint_language.pl').
:- ensure_loaded('csl.pl').
:- style_check(-discontiguous).


Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions meta_interpreters.pl → mint.pl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
%
% Meta-interpreter experiments.
%

%
% Basic knowledge for testing purposes
%
Expand Down
4 changes: 2 additions & 2 deletions readme.org
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Developed and tested using [[https://swi-prolog.org][SWI-Prolog]].
1. Evaluate ~[kb].~ to load a knowledge base example describing a
pancreatic anatomy model.

2. Evaluate ~[constraints].~ to verify a set of model constraints
expressed in natural language.
2. Evaluate ~[spec].~ to verify a set of model constraints expressed
in natural language.

* License

Expand Down
10 changes: 7 additions & 3 deletions constraints.pl → spec.pl
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
:- ensure_loaded('constraint_language.pl').
%
% Example model specification using constraints defined in a subset of
% natural language.
%
:- ensure_loaded('csl.pl').


%
% General Constraints
% General constraints
%
:- constraint([every, exocrine_cell, secretes, a, enzyme]).
:- constraint([every, endocrine_cell, secretes, a, hormone]).
:- constraint([every, pancreatic_cell, part_of, pancreas]).


%
% Model-specific Constraints
% Model-specific constraints
%
:- constraint([every, cell, which, part_for, pancreas, secretes, a, substance]).
:- constraint([pancreas, secretes, every, substance]).
Expand Down

0 comments on commit 654a243

Please sign in to comment.