Skip to content

Commit 654a243

Browse files
committed
Rename and document files
1 parent 1a00a16 commit 654a243

File tree

9 files changed

+28
-8
lines changed

9 files changed

+28
-8
lines changed

constraint_language.pl renamed to csl.pl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
%
2+
% Constraint-specification language, defined using a definite-clause
3+
% grammar (DCG).
4+
%
5+
16
%
27
% DCG grammar
38
%

grammar.pl renamed to dcg.pl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
%
2+
% Definite-clause grammar (DCG) prototype.
3+
%
4+
15
%
26
% Rules
37
%

dsl.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
% A domain-specific language (DSL) defining taxonomy and partonomy
33
% operators and rules.
44
%
5-
:- ensure_loaded('meta_dsl.pl').
5+
:- ensure_loaded('mdsl.pl').
66
:- style_check(-discontiguous).
77

88

predicate_generator.pl renamed to gen.pl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
%
2+
% Alternative constraint-specification language definition.
3+
%
4+
15
%
26
% Logical operators
37
%

kb.pl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22
% An example knowledge base of pancreatic anatomy. Defines taxonomy,
33
% partonomy and ad-hoc relations.
44
%
5-
65
:- ensure_loaded('dsl.pl').
7-
:- ensure_loaded('constraint_language.pl').
6+
:- ensure_loaded('csl.pl').
87
:- style_check(-discontiguous).
98

109

meta_dsl.pl renamed to mdsl.pl

File renamed without changes.

meta_interpreters.pl renamed to mint.pl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
%
2+
% Meta-interpreter experiments.
3+
%
4+
15
%
26
% Basic knowledge for testing purposes
37
%

readme.org

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ Developed and tested using [[https://swi-prolog.org][SWI-Prolog]].
1616
1. Evaluate ~[kb].~ to load a knowledge base example describing a
1717
pancreatic anatomy model.
1818

19-
2. Evaluate ~[constraints].~ to verify a set of model constraints
20-
expressed in natural language.
19+
2. Evaluate ~[spec].~ to verify a set of model constraints expressed
20+
in natural language.
2121

2222
* License
2323

constraints.pl renamed to spec.pl

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
1-
:- ensure_loaded('constraint_language.pl').
1+
%
2+
% Example model specification using constraints defined in a subset of
3+
% natural language.
4+
%
5+
:- ensure_loaded('csl.pl').
26

37

48
%
5-
% General Constraints
9+
% General constraints
610
%
711
:- constraint([every, exocrine_cell, secretes, a, enzyme]).
812
:- constraint([every, endocrine_cell, secretes, a, hormone]).
913
:- constraint([every, pancreatic_cell, part_of, pancreas]).
1014

1115

1216
%
13-
% Model-specific Constraints
17+
% Model-specific constraints
1418
%
1519
:- constraint([every, cell, which, part_for, pancreas, secretes, a, substance]).
1620
:- constraint([pancreas, secretes, every, substance]).

0 commit comments

Comments
 (0)