Domain-specific languages in Prolog for declarative expert knowledge in rules and ontologies

•We use domain-specific languages and deductive databases for declarative rule bases.•We present the design and implementation of DSLs for declarative expert rules in Prolog as an internal and as an external DSL.•Our approach makes use of Prolog’s term-expansion, definite clause grammars and quasi-q...

Full description

Saved in:
Bibliographic Details
Published inComputer languages, systems & structures Vol. 51; pp. 102 - 117
Main Authors Seipel, Dietmar, Nogatz, Falco, Abreu, Salvador
Format Journal Article
LanguageEnglish
Published Elsevier Ltd 01.01.2018
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:•We use domain-specific languages and deductive databases for declarative rule bases.•We present the design and implementation of DSLs for declarative expert rules in Prolog as an internal and as an external DSL.•Our approach makes use of Prolog’s term-expansion, definite clause grammars and quasi-quotations.•The declarative expert knowledge in rules can be analysed, evaluated, and visualised.•More general expert knowledge can be stated in rules and ontologies, rules and findings are extended by annotations and meta-information. Declarative if–then rules have proven very useful in many applications of expert systems. They can be managed in deductive databases and evaluated using the well-known forward-chaining approach. For domain-experts, however, the syntax of rules becomes complicated quickly, and already many different knowledge representation formalisms exist. Expert knowledge is often acquired in story form using interviews. In this paper, we discuss its representation by defining domain-specific languages (Dsls) for declarative expert rules. They can be embedded in Prolog systems in internal Dsls using term expansion and as external Dsls using definite clause grammars and quasi-quotations – for more sophisticated syntaxes. Based on the declarative rules and the integration with the Prolog-based deductive database system DDbase, multiple rules acquired in practical case studies can be combined, compared, graphically analysed by domain-experts, and evaluated, resulting in an extensible system for expert knowledge. As a result, the actual modeling Dsl becomes executable; the declarative forward-chaining evaluation of deductive databases can be understood by the domain experts. Our Dsl for rules can be further improved by integrating ontologies and rule annotations.
ISSN:1477-8424
1873-6866
DOI:10.1016/j.cl.2017.06.006