• DocumentCode
    3184750
  • Title

    Reasonable Python or how to Integrate F-Logic into an Object-Oriented Scripting Language

  • Author

    Schatten, Markus

  • Author_Institution
    Univ. of Zagreb, Varazdin
  • fYear
    2007
  • fDate
    June 29 2007-July 2 2007
  • Firstpage
    297
  • Lastpage
    300
  • Abstract
    Python is an object-oriented scripting language known for its ability to support various programming paradigms. In Python one can write procedural, functional, object-oriented, and thanks to metaclasses even aspect-oriented code. Even if some efforts were done to support the last major programming paradigm, logic programming is still not supported in a Python programmer friendly way. In this paper a solution that aims on this target using F-Logic (particularly FLORA-2), which syntax is much more compatible with the Python language than traditional Prolog syntax, is presented. In order to make such an integration useful ZODB (Zope object base) is used to facilitate permanent storage of Python objects, while the FLORA-2 engine built on XSB is used for reasoning facilities. To take advantage of logic programming concepts like facts, rules, variables or queries, special logical Python object are introduced. In the end some examples of usage are shown and future development guidelines are given.
  • Keywords
    authoring languages; logic programming languages; object-oriented languages; F-logic; FLORA-2; Prolog syntax; XSB; Zope object base; aspect-oriented code; logic programming; object-oriented scripting language; reasonable Python; special logical Python object; Code standards; Dictionaries; Functional programming; Guidelines; Informatics; Logic programming; Object oriented programming; Operating systems; Programming profession; Search engines;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Intelligent Engineering Systems, 2007. INES 2007. 11th International Conference on
  • Conference_Location
    Budapest
  • Print_ISBN
    1-4244-1147-5
  • Electronic_ISBN
    1-4244-1148-3
  • Type

    conf

  • DOI
    10.1109/INES.2007.4283715
  • Filename
    4283715