Paulo Moura
Current Organizations / Institutes
The organizations/institutes from the scholar's latest article
Previous Organizations / Institutes
The organizations / institutes from the scholar's other articles in the past ten years
Research Subjects
Paulo Moura has a total of 22 co-authors. Here are the top co-authors by number of shared publications:
- Ricardo Rocha
University of Porto
3 shared publications Sergio Castro
3 shared publicationsKim Mens
Université catholique de Louvain
2 shared publications- Kim Mens
Université Catholique de Louvain, Louvain-la-Neuve, Belgium
2 shared publications - Sara Cordeiro Madeira
University of Lisbon
2 shared publications Artur Miguel Dias
CITI / Dep. of Computer Science Faculdade de Ciências e Tecnologia Universidade Nova de Lisboa Portugal
1 shared publication
Latest Publications
- 1 February 2017
- Published by Elsevier in Science of Computer Programming
- Vol. 134, 75-99
JPC: A library for categorising and applying inter-language conversions between Java and Prolog
- 1 February 2017
- Published by Elsevier in Science of Computer Programming
- Vol. 134, 75-99
JPC: A library for categorising and applying inter-language conversions between Java and Prolog
- 21 July 2014
- Published by Cambridge University Press (CUP) in Theory and Practice of Logic Programming
- Vol. 14 (4-5) , 429-443
Tabling, Rational Terms, and Coinduction Finally Together!
Tabling is a commonly used technique in logic programming for avoiding cyclic behavior of logic programs and enabling more declarative program definitions. Furthermore, tabling often improves computational performance. Rational term are terms with one or more infinite sub-terms but with a finite representation. Rational terms can be generated in Prolog by omitting the occurs check when unifying two terms. Applications of rational terms include definite clause grammars, constraint handling systems, and coinduction. In this paper, we report our extension of YAP's Prolog tabling mechanism to support rational terms. We describe the internal representation of rational terms within the table space and prove its correctness. We then use this extension to implement a tabling based approach to coinduction. We compare our approach with current coinductive transformations and describe the implementation. In addition, we present an algorithm that ensures a canonical representation for rational terms.
- 21 July 2014
- Published by Cambridge University Press (CUP) in Theory and Practice of Logic Programming
- Vol. 14 (4-5) , 429-443
Tabling, Rational Terms, and Coinduction Finally Together!
Tabling is a commonly used technique in logic programming for avoiding cyclic behavior of logic programs and enabling more declarative program definitions. Furthermore, tabling often improves computational performance. Rational term are terms with one or more infinite sub-terms but with a finite representation. Rational terms can be generated in Prolog by omitting the occurs check when unifying two terms. Applications of rational terms include definite clause grammars, constraint handling systems, and coinduction. In this paper, we report our extension of YAP's Prolog tabling mechanism to support rational terms. We describe the internal representation of rational terms within the table space and prove its correctness. We then use this extension to implement a tabling based approach to coinduction. We compare our approach with current coinductive transformations and describe the implementation. In addition, we present an algorithm that ensures a canonical representation for rational terms.
- Open Access
Customisable Handling of Java References in Prolog Programs
Integration techniques for combining programs written in distinct language paradigms facilitate the implementation of specialised modules in the best language for their task. In the case of Java-Prolog integration, a known problem is the proper representation of references to Java objects on the Prolog side. To solve it adequately, multiple dimensions should be considered, including reference representation, opacity of the representation, identity preservation, reference life span, and scope of the inter-language conversion policies. This paper presents an approach that addresses all these dimensions, generalising and building on existing representation patterns of foreign references in Prolog, and taking inspiration from similar inter-language representation techniques found in other domains. Our approach maximises portability by making few assumptions about the Prolog engine interacting with Java (e.g., embedded or executed as an external process). We validate our work by extending JPC, an open-source integration library, with features supporting our approach. Our JPC library is currently compatible with three different open source Prolog engines (SWI, YAP} and XSB) by means of drivers. To appear in Theory and Practice of Logic Programming (TPLP).
Open AccessCustomisable Handling of Java References in Prolog Programs
Integration techniques for combining programs written in distinct language paradigms facilitate the implementation of specialised modules in the best language for their task. In the case of Java-Prolog integration, a known problem is the proper representation of references to Java objects on the Prolog side. To solve it adequately, multiple dimensions should be considered, including reference representation, opacity of the representation, identity preservation, reference life span, and scope of the inter-language conversion policies. This paper presents an approach that addresses all these dimensions, generalising and building on existing representation patterns of foreign references in Prolog, and taking inspiration from similar inter-language representation techniques found in other domains. Our approach maximises portability by making few assumptions about the Prolog engine interacting with Java (e.g., embedded or executed as an external process). We validate our work by extending JPC, an open-source integration library, with features supporting our approach. Our JPC library is currently compatible with three different open source Prolog engines (SWI, YAP} and XSB) by means of drivers. To appear in Theory and Practice of Logic Programming (TPLP).
- Open Access
Tabling, Rational Terms, and Coinduction Finally Together!
To appear in Theory and Practice of Logic Programming (TPLP). Tabling is a commonly used technique in logic programming for avoiding cyclic behavior of logic programs and enabling more declarative program definitions. Furthermore, tabling often improves computational performance. Rational term are terms with one or more infinite sub-terms but with a finite representation. Rational terms can be generated in Prolog by omitting the occurs check when unifying two terms. Applications of rational terms include definite clause grammars, constraint handling systems, and coinduction. In this paper, we report our extension of YAP's Prolog tabling mechanism to support rational terms. We describe the internal representation of rational terms within the table space and prove its correctness. We then use this extension to implement a tabling based approach to coinduction. We compare our approach with current coinductive transformations and describe the implementation. In addition, we present an algorithm that ensures a canonical representation for rational terms.
Open AccessTabling, Rational Terms, and Coinduction Finally Together!
To appear in Theory and Practice of Logic Programming (TPLP). Tabling is a commonly used technique in logic programming for avoiding cyclic behavior of logic programs and enabling more declarative program definitions. Furthermore, tabling often improves computational performance. Rational term are terms with one or more infinite sub-terms but with a finite representation. Rational terms can be generated in Prolog by omitting the occurs check when unifying two terms. Applications of rational terms include definite clause grammars, constraint handling systems, and coinduction. In this paper, we report our extension of YAP's Prolog tabling mechanism to support rational terms. We describe the internal representation of rational terms within the table space and prove its correctness. We then use this extension to implement a tabling based approach to coinduction. We compare our approach with current coinductive transformations and describe the implementation. In addition, we present an algorithm that ensures a canonical representation for rational terms.
- 1 January 2013
- Published by Springer Nature in Lecture Notes in Computer Science
- p. 77-92
A Portable and Efficient Implementation of Coinductive Logic Programming
- 1 January 2013
- Published by Springer Nature in Lecture Notes in Computer Science
- p. 77-92
A Portable and Efficient Implementation of Coinductive Logic Programming
- 1 January 2013
- Published by Springer Nature
- p. 26-42
LogicObjects: Enabling Logic Programming in Java through Linguistic Symbiosis
- 1 January 2013
- Published by Springer Nature
- p. 26-42
LogicObjects: Enabling Logic Programming in Java through Linguistic Symbiosis
- Open Access
- 23 October 2012
- Published by Association for Computing Machinery (ACM)
- p. 263-268
Agent spaces
- 23 October 2012
- Published by Association for Computing Machinery (ACM)
- p. 263-268
Open AccessAgent spaces
- Open Access
- 13 June 2012
- Published by Association for Computing Machinery (ACM)
- p. 11-16
LogicObjects
Logic programming is well suited for declaratively solving computational problems that require knowledge representation and reasoning. Object-oriented languages, on the other hand, are well suited for modeling real-world concepts and profit from rich ecosystems developed around them, which are often missing from logic languages. For applications that require both the declarative power of logic programming and the rich modeling expressiveness and development environments offered by object-oriented languages, there is a need for reconciling both worlds. LogicObjects is our linguistic symbiosis framework for integrating Prolog within the Java language. It extends Java with annotations that allow Java programs to interact transparently and automatically with Prolog programs.
- 13 June 2012
- Published by Association for Computing Machinery (ACM)
- p. 11-16
Open AccessLogicObjects
Logic programming is well suited for declaratively solving computational problems that require knowledge representation and reasoning. Object-oriented languages, on the other hand, are well suited for modeling real-world concepts and profit from rich ecosystems developed around them, which are often missing from logic languages. For applications that require both the declarative power of logic programming and the rich modeling expressiveness and development environments offered by object-oriented languages, there is a need for reconciling both worlds. LogicObjects is our linguistic symbiosis framework for integrating Prolog within the Java language. It extends Java with annotations that allow Java programs to interact transparently and automatically with Prolog programs.
- 1 January 2012
- Published by Springer Nature in Lecture Notes in Computer Science
- p. 155-172
Meta-predicate Semantics
- 1 January 2012
- Published by Springer Nature in Lecture Notes in Computer Science
- p. 155-172
Meta-predicate Semantics
- Open Access
L-FLAT: Logtalk Toolkit for Formal Languages and Automata Theory
We describe L-FLAT, a Logtalk Toolkit for teaching Formal Languages and Automata Theory. L-FLAT supports the definition of \textsl{alphabets}, the definition of \textsl{orders} over alphabet symbols, the partial definition of \textsl{languages} using unit tests, and the definition of \textsl{mechanisms}, which implement language generators or language recognizers. Supported mechanisms include \textsl{predicates}, \textsl{regular expressions}, \textsl{finite automata}, \textsl{context-free grammars}, \textsl{Turing machines}, and \textsl{push-down automata}. L-FLAT entities are implemented using the object-oriented features of Logtalk, providing a highly portable and easily extendable framework. The use of L-FLAT in educational environments is enhanced by supporting Mooshak, a web application that features automatic grading of submitted programs.
Open AccessL-FLAT: Logtalk Toolkit for Formal Languages and Automata Theory
We describe L-FLAT, a Logtalk Toolkit for teaching Formal Languages and Automata Theory. L-FLAT supports the definition of \textsl{alphabets}, the definition of \textsl{orders} over alphabet symbols, the partial definition of \textsl{languages} using unit tests, and the definition of \textsl{mechanisms}, which implement language generators or language recognizers. Supported mechanisms include \textsl{predicates}, \textsl{regular expressions}, \textsl{finite automata}, \textsl{context-free grammars}, \textsl{Turing machines}, and \textsl{push-down automata}. L-FLAT entities are implemented using the object-oriented features of Logtalk, providing a highly portable and easily extendable framework. The use of L-FLAT in educational environments is enhanced by supporting Mooshak, a web application that features automatic grading of submitted programs.