首页> 外文会议>International Conference on Intelligent Engineering Systems >Reasonable Python or how to Integrate F-Logic into an Object-Oriented Scripting Language
【24h】

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

机译:合理的Python或如何将F-Logic集成到面向对象的脚本语言中

获取原文

摘要

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.
机译:Python是一种面向对象的脚本语言,以其支持各种编程范例的能力。在Python中,可以编写过程,功能,面向对象,并且感谢MetaClasses甚至面向方面的代码。即使已经完成了一些努力来支持最后一个主要的编程范式,逻辑编程仍然不受Python程序员友好方式支持。在本文中,提出了一种解决此目标的解决方案,该解决方案使用F逻辑(特别是Flora-2),该解决方案与传统的Prolog语法相比,该语法与Python语言更兼容。为了使这种集成有用的ZoDB(Zope对象基座)用于促进Python对象的永久存储,而基于XSB的Flora-2发动机用于推理设施。要利用逻辑编程概念,如事实,规则,变量或查询,介绍了特殊的逻辑Python对象。最后,显示了一些使用的例子,并提供了未来的发展指南。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号