1. Domain-specific languages in Prolog for declarative expert knowledge in rules and ontologies
- Author
-
Dietmar Seipel, Falco Nogatz, and Salvador Abreu
- Subjects
Domain-specific language ,Knowledge representation and reasoning ,Syntax (programming languages) ,Computer Networks and Communications ,business.industry ,Programming language ,Computer science ,Deductive database ,020207 software engineering ,02 engineering and technology ,Legal expert system ,computer.software_genre ,Expert system ,Prolog ,0202 electrical engineering, electronic engineering, information engineering ,020201 artificial intelligence & image processing ,Definite clause grammar ,Artificial intelligence ,business ,computer ,Software ,Natural language processing ,computer.programming_language - Abstract
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 ( Dsl s) for declarative expert rules. They can be embedded in Prolog systems in internal Dsl s using term expansion and as external Dsl s 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.
- Published
- 2017