- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我看过很多关于 SATCHMO 定理证明器的论文,其中讨论了 Prolog 实现。但到目前为止,我发现的唯一源代码实现在一本书中,它确实很有限,并且仅用于给出如何评估和触发规则的示例。有人在 Prolog 中见过 SATCHMO 的良好开源实现吗?
请注意,我指的并不是 Django 的 Python 语言工具 Satchmo,这就是为什么我没有在标签中包含 Satchmo,因为这是 Stack Overflow 所显示的该标签的主要定义。
最佳答案
第一篇关于 Satchmo 的论文(也在上面提到的“主题变奏”中列出)是
Rainer Manthey and François Bry. SATCHMO: A Theorem Prover Implemented in Prolog. In Proceedings of the 9th International Conference on Automated Deduction, pages 415–434. Springer-Verlag, 1988.
本文介绍了 Satchmo 的几种 Prolog 实现并讨论了它们的优点。还给出了一些例子。这是一个 Satchmo 版本,我用它作为我的 Reasoner RACE for Attempto Controlled English 的起点:
:- op(1200, xfx, '--->').
:- unknown(_, fail).
satisfiable :-
setof(Clause, violated_instance(Clause), Clauses),
!,
satisfy_all(Clauses),
satisfiable.
satisfiable.
violated_instance((B ---> H)) :-
(B ---> H),
B,
\+ H.
satisfy_all([]).
satisfy_all([(_B ---> H) | RestClauses]) :-
H,
!,
satisfy_all(RestClauses).
satisfy_all([(_B ---> H) | RestClauses]) :-
satisfy(H),
satisfy_all(RestClauses).
/*
satisfy((A,B)) :-
!,
satisfy(A),
satisfy(B).
*/
satisfy((A;B)) :-
!,
(satisfy(A) ; satisfy(B)).
satisfy(Atom) :-
\+ Atom = untrue,
(
predicate_property(Atom, built_in)
->
call(Atom)
;
assume(Atom)
).
assume(Atom) :-
% nl, write(['Asserting ': Atom]),
asserta(Atom).
assume(Atom) :-
% nl, write(['Retracting ': Atom]),
retract(Atom),
!,
fail.
关于prolog - 有人见过 SATCHMO 定理证明器的一个很好的开源 Prolog 实现吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9188163/
我使用 clonesatchmo 启动并运行了基本的 Satchmo 商店,但是,图像没有显示。 来源显示: 在图像源应该是空白的地方。当我运行 python manage.py satchmo_c
我正在尝试扩展 satchmo 商店中包含的基本用户注册表和个人资料,但我遇到了问题。 这是我所做的: 创建一个新的应用程序“extendedprofile” 编写了一个扩展 satchmo_stor
已经有一些运输模块,例如 FEDEX、Flat Rate、Per pieced 和 UPS,但我如何让用户选择其首选的运输方式和/或价格? 对于那些不知道的人,Satchmo是一个 Django 应用
我是 Satchmo 的新手 - 选择它是因为我需要对网站订阅和实体产品进行付款处理。 我的网站将有两类用户:付费订阅者和免费用户。两者都可以订购实物产品。付费订阅者的所有订单均可享受自动折扣。 我在
我正在尝试将 Satchmo 0.9.2 安装的默认和唯一商店语言设置为荷兰语。 我正在按照 translating content 上的说明进行操作: 从目录 /home/myusername/we
我正在自定义我的 Satchmo 商店表单,并在任何必填字段前显示一个图标。问题是,Satchmo 似乎想要在必填字段之后呈现一个文本星号。我正在使用 field.label 获取此标签,我应该使用其
我想知道是否需要进行任何设置才能使 Satchmo 在每次下订单时向我发送电子邮件(到商店配置电子邮件地址)?我已经设置了模板: templates/shop/email/order_placed_n
作为一名经验丰富的 PHP 程序员,我倾向于避免使用 Python 之类的东西。然而,我们都必须玩我们已经处理过的牌,我现在必须使用 Satchmo 网站。 我很少使用 python、django 和
有没有satchmo像 Java 中的项目吗? 编辑 对于那些试图关闭问题的人,我按照要求做了,并询问服务器故障在哪里 it并没有受到好评。 最佳答案 有Apach OFBiz ,但它非常抓地力。 为
我希望实现一个非常基本的购物车。 Satchmo似乎安装了很多我不需要的应用程序和额外的东西。我听说其他人提到 django-cart .有没有人尝试过这个 Django 应用程序(django-ca
我看过很多关于 SATCHMO 定理证明器的论文,其中讨论了 Prolog 实现。但到目前为止,我发现的唯一源代码实现在一本书中,它确实很有限,并且仅用于给出如何评估和触发规则的示例。有人在 Prol
我有一个正在运行的 Django 项目,我想将 Satchmo 与该项目集成。问题是,我不想将 satchmo 放入我的站点包目录,而是希望它用作 django 应用程序,即所有 satchmo 应用
对于我当前的 satchmo 商店,我想发送 html 电子邮件而不是所有 txt 电子邮件。从 satchmo_store 帐户注册代码来看,所有电子邮件都是硬编码的,并且使用 .txt 格式而不是
我建立了一个 django/satchmo 电子商务网站,该网站开始获得一些流量,但我遇到了一个问题,因为我没有处理数据库更改的智能方法。当我在本地系统上开发网站时,我对布局和管理产品属性的数据库进行
我在一个名为 satchmo 的 django 项目中遇到了一个奇怪的问题,我正在使用 nginx 和 uwsgi 进行部署。 发生的情况是应用程序确实响应,它重定向到 https,然后重定向到 ht
我知道数据存储有很大的不同,但肯定是因为 django 是捆绑的并且它从 Satchmo 中抽象出数据存储,所以可以做些什么? 事实上,我不是 Python 专家,到目前为止主要是 Java/PHP,
我让 satchmo 尝试,但我在第一次尝试时遇到了一个很大的问题,我不明白哪里出了问题。当我将 $ python clonesatchmo.py 制作成清晰的 django 项目时,它会报错: $
谁能解释一下 Satchmo 中 local_settings.py 和 settings.py 的区别? 我知道 settings.py 模块在最后一步导入了 local_settings.py 模
我是一名优秀的程序员,十分优秀!