首页 > 最新文献

Theory and Practice of Logic Programming最新文献

英文 中文
Metric Temporal Equilibrium Logic over Timed Traces 定时轨迹上的公制时态均衡逻辑
IF 1.4 2区 数学 Q3 COMPUTER SCIENCE, SOFTWARE ENGINEERING Pub Date : 2024-09-18 DOI: 10.1017/s1471068424000139
ARVID BECKER, PEDRO CABALAR, MARTÍN DIÉGUEZ, TORSTEN SCHAUB, ANNA SCHUHMANN
In temporal extensions of answer set programming (ASP) based on linear time, the behavior of dynamic systems is captured by sequences of states. While this representation reflects their relative order, it abstracts away the specific times associated with each state. However, timing constraints are important in many applications like, for instance, when planning and scheduling go hand in hand. We address this by developing a metric extension of linear-time temporal equilibrium logic, in which temporal operators are constrained by intervals over natural numbers. The resulting Metric Equilibrium Logic (MEL) provides the foundation of an ASP-based approach for specifying qualitative and quantitative dynamic constraints. To this end, we define a translation of metric formulas into monadic first-order formulas and give a correspondence between their models in MEL and Monadic Quantified Equilibrium Logic, respectively. Interestingly, our translation provides a blue print for implementation in terms of ASP modulo difference constraints.
在基于线性时间的答案集编程(ASP)的时间扩展中,动态系统的行为是通过状态序列来捕捉的。虽然这种表示法反映了它们的相对顺序,但却抽象掉了与每个状态相关的具体时间。然而,时间约束在很多应用中都很重要,例如在计划和调度同时进行的情况下。为了解决这个问题,我们开发了线性时间时间平衡逻辑的度量扩展,其中时间运算符受自然数间隔的约束。由此产生的度量均衡逻辑(MEL)为基于 ASP 的方法提供了基础,可用于指定定性和定量动态约束。为此,我们定义了公因子公式到一元一阶公式的翻译,并分别给出了它们在 MEL 和一元量化均衡逻辑中的模型之间的对应关系。有趣的是,我们的翻译为 ASP 模差约束的实现提供了蓝图。
{"title":"Metric Temporal Equilibrium Logic over Timed Traces","authors":"ARVID BECKER, PEDRO CABALAR, MARTÍN DIÉGUEZ, TORSTEN SCHAUB, ANNA SCHUHMANN","doi":"10.1017/s1471068424000139","DOIUrl":"https://doi.org/10.1017/s1471068424000139","url":null,"abstract":"In temporal extensions of answer set programming (ASP) based on linear time, the behavior of dynamic systems is captured by sequences of states. While this representation reflects their relative order, it abstracts away the specific times associated with each state. However, timing constraints are important in many applications like, for instance, when planning and scheduling go hand in hand. We address this by developing a metric extension of linear-time temporal equilibrium logic, in which temporal operators are constrained by intervals over natural numbers. The resulting Metric Equilibrium Logic (MEL) provides the foundation of an ASP-based approach for specifying qualitative and quantitative dynamic constraints. To this end, we define a translation of metric formulas into monadic first-order formulas and give a correspondence between their models in MEL and Monadic Quantified Equilibrium Logic, respectively. Interestingly, our translation provides a blue print for implementation in terms of ASP modulo difference constraints.","PeriodicalId":49436,"journal":{"name":"Theory and Practice of Logic Programming","volume":"100 1","pages":""},"PeriodicalIF":1.4,"publicationDate":"2024-09-18","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"142265272","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Multi-Shot Answer Set Programming for Flexible Payroll Management 灵活薪资管理的多镜头答案集编程
IF 1.4 2区 数学 Q3 COMPUTER SCIENCE, SOFTWARE ENGINEERING Pub Date : 2024-05-02 DOI: 10.1017/s1471068424000115
BENJAMIN CALLEWAERT, JOOST VENNEKENS
Payroll management is a critical business task that is subject to a large number of rules, which vary widely between companies, sectors, and countries. Moreover, the rules are often complex and change regularly. Therefore, payroll management systems must be flexible in design. In this paper, we suggest an approach based on a flexible answer set programming (ASP) model and an easy-to-read tabular representation based on the decision model and notation standard. It allows HR consultants to represent complex rules without the need for a software engineer and to ultimately design payroll systems for a variety of different scenarios. We show how the multi-shot solving capabilities of the clingo ASP system can be used to reach the performance that is necessary to handle real-world instances.
薪资管理是一项重要的业务工作,需要遵守大量规则,这些规则因公司、行业和国家而异。此外,这些规则往往很复杂,而且经常变化。因此,薪资管理系统的设计必须具有灵活性。在本文中,我们提出了一种基于灵活答案集编程(ASP)模型的方法,以及一种基于决策模型和符号标准的易读表格表示法。它使人力资源顾问无需软件工程师就能表示复杂的规则,并最终设计出适用于各种不同情况的薪资系统。我们展示了如何利用 clingo ASP 系统的多射求解能力来达到处理现实世界实例所需的性能。
{"title":"Multi-Shot Answer Set Programming for Flexible Payroll Management","authors":"BENJAMIN CALLEWAERT, JOOST VENNEKENS","doi":"10.1017/s1471068424000115","DOIUrl":"https://doi.org/10.1017/s1471068424000115","url":null,"abstract":"Payroll management is a critical business task that is subject to a large number of rules, which vary widely between companies, sectors, and countries. Moreover, the rules are often complex and change regularly. Therefore, payroll management systems must be flexible in design. In this paper, we suggest an approach based on a flexible answer set programming (ASP) model and an easy-to-read tabular representation based on the decision model and notation standard. It allows HR consultants to represent complex rules without the need for a software engineer and to ultimately design payroll systems for a variety of different scenarios. We show how the multi-shot solving capabilities of the <jats:italic>clingo</jats:italic> ASP system can be used to reach the performance that is necessary to handle real-world instances.","PeriodicalId":49436,"journal":{"name":"Theory and Practice of Logic Programming","volume":"425 1","pages":""},"PeriodicalIF":1.4,"publicationDate":"2024-05-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"140838430","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Unit Testing in ASP Revisited: Language and Test-Driven Development Environment 重温 ASP 中的单元测试:语言和测试驱动的开发环境
IF 1.4 2区 数学 Q3 COMPUTER SCIENCE, SOFTWARE ENGINEERING Pub Date : 2024-04-02 DOI: 10.1017/s1471068424000103
GIOVANNI AMENDOLA, GIUSEPPE MAZZOTTA, FRANCESCO RICCA, TOBIAS BEREI

Unit testing frameworks are nowadays considered a best practice, included in almost all modern software development processes, to achieve rapid development of correct specifications. Knowledge representation and reasoning paradigms such as Answer Set Programming (ASP), that have been used in industry-level applications, are not an exception. Indeed, the first unit testing specification language for ASP was proposed in 2011 as a feature of the ASPIDE development environment. Later, a more portable unit testing language was included in the LANA annotation language. In this paper we revisit both languages and tools for unit testing in ASP. We propose a new unit test specification language that allows one to inline tests within ASP programs, and we identify the computational complexity of the tasks associated with checking the various program-correctness assertions. Test-case specifications are transparent to the traditional evaluation, but can be interpreted by a specific testing tool. Thus, we present a novel environment supporting test-driven development of ASP programs.

如今,单元测试框架已被视为一种最佳实践,几乎所有现代软件开发流程都包含了这种框架,以实现正确规范的快速开发。知识表示和推理范例也不例外,如答案集编程(ASP),已在行业级应用中使用。事实上,作为 ASPIDE 开发环境的一项功能,第一种 ASP 单元测试规范语言于 2011 年被提出。后来,LANA 注释语言中又包含了一种可移植性更强的单元测试语言。在本文中,我们重新审视了 ASP 中的单元测试语言和工具。我们提出了一种新的单元测试规范语言,允许在 ASP 程序中内嵌测试,并确定了与检查各种程序正确性断言相关的任务的计算复杂性。测试用例规范对传统的评估是透明的,但可以由特定的测试工具进行解释。因此,我们提出了一种支持 ASP 程序测试驱动开发的新型环境。
{"title":"Unit Testing in ASP Revisited: Language and Test-Driven Development Environment","authors":"GIOVANNI AMENDOLA, GIUSEPPE MAZZOTTA, FRANCESCO RICCA, TOBIAS BEREI","doi":"10.1017/s1471068424000103","DOIUrl":"https://doi.org/10.1017/s1471068424000103","url":null,"abstract":"<p>Unit testing frameworks are nowadays considered a best practice, included in almost all modern software development processes, to achieve rapid development of <span>correct</span> specifications. Knowledge representation and reasoning paradigms such as Answer Set Programming (ASP), that have been used in industry-level applications, are not an exception. Indeed, the first unit testing specification language for ASP was proposed in 2011 as a feature of the ASPIDE development environment. Later, a more portable unit testing language was included in the LANA annotation language. In this paper we revisit both languages and tools for unit testing in ASP. We propose a new unit test specification language that allows one to inline tests within ASP programs, and we identify the computational complexity of the tasks associated with checking the various program-correctness assertions. Test-case specifications are transparent to the traditional evaluation, but can be interpreted by a specific testing tool. Thus, we present a novel environment supporting test-driven development of ASP programs.</p>","PeriodicalId":49436,"journal":{"name":"Theory and Practice of Logic Programming","volume":"203 1","pages":""},"PeriodicalIF":1.4,"publicationDate":"2024-04-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"140569497","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Evaluating Datalog Tools for Meta-reasoning over OWL 2 QL 评估在 OWL 2 QL 上进行元推理的数据模型工具
IF 1.4 2区 数学 Q3 COMPUTER SCIENCE, SOFTWARE ENGINEERING Pub Date : 2024-03-07 DOI: 10.1017/s1471068424000073
HAYA MAJID QURESHI, WOLFGANG FABER

Metamodeling is a general approach to expressing knowledge about classes and properties in an ontology. It is a desirable modeling feature in multiple applications that simplifies the extension and reuse of ontologies. Nevertheless, allowing metamodeling without restrictions is problematic for several reasons, mainly due to undecidability issues. Practical languages, therefore, forbid classes to occur as instances of other classes or treat such occurrences as semantically different objects. Specifically, meta-querying in SPARQL under the Direct Semantic Entailment Regime uses the latter approach, thereby effectively not supporting meta-queries. However, several extensions enabling different metamodeling features have been proposed over the last decade. This paper deals with the Metamodeling Semantics (MS) over OWL 2 QL and the Metamodeling Semantic Entailment Regime (MSER), as proposed in Lenzerini et al. (2015, Description Logics) and Lenzerini et al. (2020, Information Systems 88, 101294), Cima et al. (2017, Proceedings of the 7th International Conference on Web Intelligence, Mining and Semantics, 1–6). A reduction from OWL 2 QL to Datalog for meta-querying was proposed in Cima et al. (2017, Proceedings of the 7th International Conference on Web Intelligence, Mining and Semantics, 1–6). In this paper, we experiment with various logic programming tools that support Datalog querying to determine their suitability as back-ends to MSER query answering. These tools stem from different logic programming paradigms (Prolog, pure Datalog, Answer Set Programming, Hybrid Knowledge Bases). Our work shows that the Datalog approach to MSER querying is practical also for sizeable ontologies with limited resources (time and memory). This paper significantly extends Qureshi and Faber (2021, International Joint Conference on Rules and Reasoning, Springer, 218–233.) by a more detailed experimental analysis and more background.

元建模是一种表达本体中类和属性知识的通用方法。它是多种应用中理想的建模功能,可以简化本体的扩展和重用。然而,不加限制地允许元建模是有问题的,原因有几个,主要是不可判定性问题。因此,实用语言禁止类作为其他类的实例出现,或将这种出现视为语义不同的对象。具体来说,SPARQL 在直接语义关联制度(Direct Semantic Entailment Regime)下的元查询使用的是后一种方法,因此实际上不支持元查询。不过,在过去十年中,已经提出了几种支持不同元建模功能的扩展。本文讨论的是 OWL 2 QL 上的元建模语义(MS)和元建模语义纰漏机制(MSER),如 Lenzerini 等人(2015,《描述逻辑学》)和 Lenzerini 等人(2020,《信息系统》88,101294)、Cima 等人(2017,《第七届网络智能、挖掘和语义学国际会议论文集》,1-6)所提出。Cima 等人(2017 年,第七届网络智能、挖掘和语义学国际会议论文集,1-6)提出了一种从 OWL 2 QL 到 Datalog 的还原方法,用于元查询。在本文中,我们试用了各种支持 Datalog 查询的逻辑编程工具,以确定它们是否适合作为 MSER 查询回答的后端。这些工具来自不同的逻辑编程范式(Prolog、纯 Datalog、答案集编程、混合知识库)。我们的工作表明,MSER 查询的 Datalog 方法对于资源(时间和内存)有限的大型本体也是实用的。本文对 Qureshi 和 Faber(2021 年,规则与推理国际联合会议,Springer, 218-233。
{"title":"Evaluating Datalog Tools for Meta-reasoning over OWL 2 QL","authors":"HAYA MAJID QURESHI, WOLFGANG FABER","doi":"10.1017/s1471068424000073","DOIUrl":"https://doi.org/10.1017/s1471068424000073","url":null,"abstract":"<p>Metamodeling is a general approach to expressing knowledge about classes and properties in an ontology. It is a desirable modeling feature in multiple applications that simplifies the extension and reuse of ontologies. Nevertheless, allowing metamodeling without restrictions is problematic for several reasons, mainly due to undecidability issues. Practical languages, therefore, forbid classes to occur as instances of other classes or treat such occurrences as semantically different objects. Specifically, meta-querying in SPARQL under the Direct Semantic Entailment Regime uses the latter approach, thereby effectively not supporting meta-queries. However, several extensions enabling different metamodeling features have been proposed over the last decade. This paper deals with the Metamodeling Semantics (MS) over OWL 2 QL and the Metamodeling Semantic Entailment Regime (MSER), as proposed in Lenzerini <span>et al</span>. (2015, <span>Description Logics</span>) and Lenzerini <span>et al</span>. (2020, <span>Information Systems 88</span>, 101294), Cima <span>et al</span>. (2017, <span>Proceedings of the 7th International Conference on Web Intelligence, Mining and Semantics</span>, 1–6). A reduction from OWL 2 QL to Datalog for meta-querying was proposed in Cima <span>et al</span>. (2017, <span>Proceedings of the 7th International Conference on Web Intelligence, Mining and Semantics</span>, 1–6). In this paper, we experiment with various logic programming tools that support Datalog querying to determine their suitability as back-ends to MSER query answering. These tools stem from different logic programming paradigms (Prolog, pure Datalog, Answer Set Programming, Hybrid Knowledge Bases). Our work shows that the Datalog approach to MSER querying is practical also for sizeable ontologies with limited resources (time and memory). This paper significantly extends Qureshi and Faber (2021, <span>International Joint Conference on Rules and Reasoning</span>, Springer, 218–233.) by a more detailed experimental analysis and more background.</p>","PeriodicalId":49436,"journal":{"name":"Theory and Practice of Logic Programming","volume":"19 1","pages":""},"PeriodicalIF":1.4,"publicationDate":"2024-03-07","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"140053727","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Model Explanation via Support Graphs 通过支持图解释模型
IF 1.4 2区 数学 Q3 COMPUTER SCIENCE, SOFTWARE ENGINEERING Pub Date : 2024-02-29 DOI: 10.1017/s1471068424000048
PEDRO CABALAR, BRAIS MUÑIZ
In this note, we introduce the notion of support graph to define explanations for any model of a logic program. An explanation is an acyclic support graph that, for each true atom in the model, induces a proof in terms of program rules represented by labels. A classical model may have zero, one or several explanations: when it has at least one, it is called a justified model. We prove that all stable models are justified, whereas, for disjunctive programs, some justified models may not be stable. We also provide a meta-programming encoding in Answer Set Programming that generates the explanations for a given stable model of some program. We prove that the encoding is sound and complete, that is, there is a one-to-one correspondence between each answer set of the encoding and each explanation for the original stable model.
在本注释中,我们引入了支持图的概念,以定义任何逻辑程序模型的解释。解释是一个非循环的支持图,对于模型中的每个真原子,它都能用标签表示的程序规则诱导出一个证明。一个经典模型可能有零个、一个或多个解释:当它至少有一个解释时,就被称为有理模型。我们证明了所有稳定的模型都是有理模型,而对于互斥程序,一些有理模型可能并不稳定。我们还在答案集编程中提供了一种元编程编码,可以为某个程序的给定稳定模型生成解释。我们证明该编码是完善和完整的,也就是说,编码的每个答案集与原始稳定模型的每个解释之间存在一一对应关系。
{"title":"Model Explanation via Support Graphs","authors":"PEDRO CABALAR, BRAIS MUÑIZ","doi":"10.1017/s1471068424000048","DOIUrl":"https://doi.org/10.1017/s1471068424000048","url":null,"abstract":"In this note, we introduce the notion of support graph to define explanations for any model of a logic program. An explanation is an acyclic support graph that, for each true atom in the model, induces a proof in terms of program rules represented by labels. A classical model may have zero, one or several explanations: when it has at least one, it is called a justified model. We prove that all stable models are justified, whereas, for disjunctive programs, some justified models may not be stable. We also provide a meta-programming encoding in Answer Set Programming that generates the explanations for a given stable model of some program. We prove that the encoding is sound and complete, that is, there is a one-to-one correspondence between each answer set of the encoding and each explanation for the original stable model.","PeriodicalId":49436,"journal":{"name":"Theory and Practice of Logic Programming","volume":"36 1","pages":""},"PeriodicalIF":1.4,"publicationDate":"2024-02-29","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"140009053","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
IASCAR: Incremental Answer Set Counting by Anytime Refinement IASCAR:通过随时细化进行增量答案集计数
IF 1.4 2区 数学 Q3 COMPUTER SCIENCE, SOFTWARE ENGINEERING Pub Date : 2024-02-21 DOI: 10.1017/s1471068424000036
JOHANNES K. FICHTE, SARAH ALICE GAGGL, MARKUS HECHER, DOMINIK RUSOVAC
Answer set programming (ASP) is a popular declarative programming paradigm with various applications. Programs can easily have many answer sets that cannot be enumerated in practice, but counting still allows quantifying solution spaces. If one counts under assumptions on literals, one obtains a tool to comprehend parts of the solution space, so-called answer set navigation. However, navigating through parts of the solution space requires counting many times, which is expensive in theory. Knowledge compilation compiles instances into representations on which counting works in polynomial time. However, these techniques exist only for conjunctive normal form (CNF) formulas, and compiling ASP programs into CNF formulas can introduce an exponential overhead. This paper introduces a technique to iteratively count answer sets under assumptions on knowledge compilations of CNFs that encode supported models. Our anytime technique uses the inclusion–exclusion principle to improve bounds by over- and undercounting systematically. In a preliminary empirical analysis, we demonstrate promising results. After compiling the input (offline phase), our approach quickly (re)counts.
答案集编程(ASP)是一种流行的声明式编程范式,应用广泛。程序很容易有很多答案集,在实践中无法枚举,但计数仍然可以量化解空间。如果在字面假设下进行计数,就能获得一种理解部分解空间的工具,即所谓的答案集导航。然而,浏览部分解空间需要多次计数,这在理论上是很昂贵的。知识编译可以将实例编译成表征,在多项式时间内进行计数。然而,这些技术只适用于连接正则表达式(CNF),而将 ASP 程序编译成 CNF 公式会带来指数级的开销。本文介绍了一种在编码支持模型的 CNF 知识编译假设下迭代计算答案集的技术。我们的随时计数技术利用包含-排除原理,通过系统地多计数和少计数来改进边界。在初步实证分析中,我们展示了很有前景的结果。在编译输入(离线阶段)后,我们的方法可以快速(重新)计数。
{"title":"IASCAR: Incremental Answer Set Counting by Anytime Refinement","authors":"JOHANNES K. FICHTE, SARAH ALICE GAGGL, MARKUS HECHER, DOMINIK RUSOVAC","doi":"10.1017/s1471068424000036","DOIUrl":"https://doi.org/10.1017/s1471068424000036","url":null,"abstract":"Answer set programming (ASP) is a popular declarative programming paradigm with various applications. Programs can easily have many answer sets that cannot be enumerated in practice, but counting still allows quantifying solution spaces. If one counts under assumptions on literals, one obtains a tool to comprehend parts of the solution space, so-called <jats:italic>answer set navigation</jats:italic>. However, navigating through parts of the solution space requires counting many times, which is expensive in theory. <jats:italic>Knowledge compilation</jats:italic> compiles instances into representations on which counting works in polynomial time. However, these techniques exist only for conjunctive normal form (CNF) formulas, and compiling ASP programs into CNF formulas can introduce an exponential overhead. This paper introduces a technique to iteratively count answer sets under assumptions on knowledge compilations of CNFs that encode supported models. Our anytime technique uses the inclusion–exclusion principle to improve bounds by over- and undercounting systematically. In a preliminary empirical analysis, we demonstrate promising results. After compiling the input (offline phase), our approach quickly (re)counts.","PeriodicalId":49436,"journal":{"name":"Theory and Practice of Logic Programming","volume":"93 1","pages":""},"PeriodicalIF":1.4,"publicationDate":"2024-02-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"139927873","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Clingraph: A System for ASP-based Visualization Clingraph:基于 ASP 的可视化系统
IF 1.4 2区 数学 Q3 COMPUTER SCIENCE, SOFTWARE ENGINEERING Pub Date : 2024-02-14 DOI: 10.1017/s147106842400005x
SUSANA HAHN, ORKUNT SABUNCU, TORSTEN SCHAUB, TOBIAS STOLZMANN
We present the Answer Set Programming (ASP)-based visualization tool clingraph, which aims at visualizing various concepts of ASP by means of ASP itself. This idea traces back to the aspviz tool and clingraph redevelops and extends it in the context of modern ASP systems. More precisely, clingraph takes graph specifications in terms of ASP facts and hands them over to the graph visualization system graphviz. The use of ASP provides a great interface between logic programs and/or answer sets and their visualization. Also, clingraph offers a Python application programming interface (API) that extends this ease of interfacing to clingo’s API and in turn to connect and monitor various aspects of the solving process.
我们介绍基于答案集编程(ASP)的可视化工具 clingraph,其目的是通过 ASP 本身可视化 ASP 的各种概念。这一理念可追溯到 aspviz 工具,而 clingraph 则在现代 ASP 系统的背景下对其进行了重新开发和扩展。更确切地说,clingraph 以 ASP 事实的形式获取图形规范,并将其交给图形可视化系统 graphviz。 ASP 的使用为逻辑程序和/或答案集及其可视化提供了一个很好的接口。此外,clingraph 还提供了一个 Python 应用程序编程接口(API),将这种接口的便捷性扩展到 clingo 的 API,进而连接并监控解题过程的各个方面。
{"title":"Clingraph: A System for ASP-based Visualization","authors":"SUSANA HAHN, ORKUNT SABUNCU, TORSTEN SCHAUB, TOBIAS STOLZMANN","doi":"10.1017/s147106842400005x","DOIUrl":"https://doi.org/10.1017/s147106842400005x","url":null,"abstract":"We present the Answer Set Programming (ASP)-based visualization tool <jats:italic>clingraph</jats:italic>, which aims at visualizing various concepts of ASP by means of ASP itself. This idea traces back to the <jats:italic>aspviz</jats:italic> tool and <jats:italic>clingraph</jats:italic> redevelops and extends it in the context of modern ASP systems. More precisely, <jats:italic>clingraph</jats:italic> takes graph specifications in terms of ASP facts and hands them over to the graph visualization system <jats:italic>graphviz</jats:italic>. The use of ASP provides a great interface between logic programs and/or answer sets and their visualization. Also, <jats:italic>clingraph</jats:italic> offers a Python application programming interface (API) that extends this ease of interfacing to <jats:italic>clingo</jats:italic>’s API and in turn to connect and monitor various aspects of the solving process.","PeriodicalId":49436,"journal":{"name":"Theory and Practice of Logic Programming","volume":"17 1","pages":""},"PeriodicalIF":1.4,"publicationDate":"2024-02-14","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"139752351","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Epistemic Logic Programs: A Study of Some Properties 认识论逻辑程序:一些属性的研究
IF 1.4 2区 数学 Q3 COMPUTER SCIENCE, SOFTWARE ENGINEERING Pub Date : 2024-02-05 DOI: 10.1017/s1471068424000012
STEFANIA COSTANTINI, ANDREA FORMISANO

Epistemic logic programs (ELPs), extend answer set programming (ASP) with epistemic operators. The semantics of such programs is provided in terms of world views, which are sets of belief sets, that is, syntactically, sets of sets of atoms. Different semantic approaches propose different characterizations of world views. Recent work has introduced semantic properties that should be met by any semantics for ELPs, like the Epistemic Splitting Property, that, if satisfied, allows to modularly compute world views in a bottom-up fashion, analogously to “traditional” ASP. We analyze the possibility of changing the perspective, shifting from a bottom-up to a top-down approach to splitting. We propose a basic top-down approach, which we prove to be equivalent to the bottom-up one. We then propose an extended approach, where our new definition: (i) is provably applicable to many of the existing semantics; (ii) operates similarly to “traditional” ASP; (iii) provably coincides under any semantics with the bottom-up notion of splitting at least on the class of Epistemically Stratified Programs (which are, intuitively, those where the use of epistemic operators is stratified); (iv) better adheres to common ASP programming methodology.

认识论逻辑程序(ELPs)是答案集编程(ASP)的扩展,带有认识论运算符。这类程序的语义是以世界观的形式提供的,世界观是信念集的集合,也就是语法上的原子集的集合。不同的语义方法提出了不同的世界观特征。最近的研究引入了任何 ELP 语义都应满足的语义属性,如认识分裂属性(Epistemic Splitting Property),如果满足该属性,就能以自下而上的方式模块化地计算世界观,类似于 "传统 "的 ASP。我们分析了改变视角的可能性,即从自下而上转向自上而下的分裂方法。我们提出了一种自上而下的基本方法,并证明它等同于自下而上的方法。然后,我们提出了一种扩展方法,在这种方法中,我们的新定义:(i) 可证明适用于许多现有语义;(ii) 与 "传统 "ASP 运作类似;(iii) 在任何语义下都可证明与自下而上的拆分概念重合,至少在认识论分层程序类(直观地说,就是那些认识论算子的使用被分层的程序)上是如此;(iv) 更好地遵循常见的 ASP 编程方法。
{"title":"Epistemic Logic Programs: A Study of Some Properties","authors":"STEFANIA COSTANTINI, ANDREA FORMISANO","doi":"10.1017/s1471068424000012","DOIUrl":"https://doi.org/10.1017/s1471068424000012","url":null,"abstract":"<p>Epistemic logic programs (ELPs), extend answer set programming (ASP) with epistemic operators. The semantics of such programs is provided in terms of <span>world views</span>, which are sets of belief sets, that is, syntactically, sets of sets of atoms. Different semantic approaches propose different characterizations of world views. Recent work has introduced semantic properties that should be met by any semantics for ELPs, like the <span>Epistemic Splitting Property</span>, that, if satisfied, allows to modularly compute world views in a bottom-up fashion, analogously to “traditional” ASP. We analyze the possibility of changing the perspective, shifting from a bottom-up to a top-down approach to splitting. We propose a basic top-down approach, which we prove to be equivalent to the bottom-up one. We then propose an extended approach, where our new definition: (i) is provably applicable to many of the existing semantics; (ii) operates similarly to “traditional” ASP; (iii) provably coincides under any semantics with the bottom-up notion of splitting at least on the class of <span>Epistemically Stratified Programs</span> (which are, intuitively, those where the use of epistemic operators is stratified); (iv) better adheres to common ASP programming methodology.</p>","PeriodicalId":49436,"journal":{"name":"Theory and Practice of Logic Programming","volume":"56 1","pages":""},"PeriodicalIF":1.4,"publicationDate":"2024-02-05","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"139688961","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Knowledge-Based Support for Adhesive Selection: Will it Stick? 基于知识的粘合剂选择支持:粘得住吗?
IF 1.4 2区 数学 Q3 COMPUTER SCIENCE, SOFTWARE ENGINEERING Pub Date : 2024-01-31 DOI: 10.1017/s1471068424000024
SIMON VANDEVELDE, JOOST VENNEKENS, JEROEN JORDENS, BART VAN DONINCK, MAARTEN WITTERS

As the popularity of adhesive joints in industry increases, so does the need for tools to support the process of selecting a suitable adhesive. While some such tools already exist, they are either too limited in scope or offer too little flexibility in use. This work presents a more advanced tool, that was developed together with a team of adhesive experts. We first extract the experts’ knowledge about this domain and formalize it in a Knowledge Base (KB). The IDP-Z3 reasoning system can then be used to derive the necessary functionality from this KB. Together with a user-friendly interactive interface, this creates an easy-to-use tool capable of assisting the adhesive experts. To validate our approach, we performed user testing in the form of qualitative interviews. The experts are very positive about the tool, stating that, among others, it will help save time and find more suitable adhesives.

随着粘合剂接头在工业中的普及,人们也越来越需要工具来支持选择合适粘合剂的过程。虽然已经存在一些此类工具,但它们要么范围过于有限,要么使用灵活性太低。这项工作提出了一种更先进的工具,该工具是与粘合剂专家团队共同开发的。我们首先提取了专家们关于该领域的知识,并将其形式化到知识库(KB)中。然后,可以使用 IDP-Z3 推理系统从知识库中提取必要的功能。再加上用户友好的交互界面,这就形成了一个易于使用的工具,能够为粘合剂专家提供帮助。为了验证我们的方法,我们以定性访谈的形式进行了用户测试。专家们对该工具给予了高度评价,认为它有助于节省时间并找到更合适的粘合剂。
{"title":"Knowledge-Based Support for Adhesive Selection: Will it Stick?","authors":"SIMON VANDEVELDE, JOOST VENNEKENS, JEROEN JORDENS, BART VAN DONINCK, MAARTEN WITTERS","doi":"10.1017/s1471068424000024","DOIUrl":"https://doi.org/10.1017/s1471068424000024","url":null,"abstract":"<p>As the popularity of adhesive joints in industry increases, so does the need for tools to support the process of selecting a suitable adhesive. While some such tools already exist, they are either too limited in scope or offer too little flexibility in use. This work presents a more advanced tool, that was developed together with a team of adhesive experts. We first extract the experts’ knowledge about this domain and formalize it in a Knowledge Base (KB). The IDP-Z3 reasoning system can then be used to derive the necessary functionality from this KB. Together with a user-friendly interactive interface, this creates an easy-to-use tool capable of assisting the adhesive experts. To validate our approach, we performed user testing in the form of qualitative interviews. The experts are very positive about the tool, stating that, among others, it will help save time and find more suitable adhesives.</p>","PeriodicalId":49436,"journal":{"name":"Theory and Practice of Logic Programming","volume":"19 1","pages":""},"PeriodicalIF":1.4,"publicationDate":"2024-01-31","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"139645897","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Locally Tight Programs 当地紧缺计划
IF 1.4 2区 数学 Q3 COMPUTER SCIENCE, SOFTWARE ENGINEERING Pub Date : 2024-01-19 DOI: 10.1017/s147106842300039x
JORGE FANDINNO, VLADIMIR LIFSCHITZ, NATHAN TEMPLE

Program completion is a translation from the language of logic programs into the language of first-order theories. Its original definition has been extended to programs that include integer arithmetic, accept input, and distinguish between output predicates and auxiliary predicates. For tight programs, that generalization of completion is known to match the stable model semantics, which is the basis of answer set programming. We show that the tightness condition in this theorem can be replaced by a less restrictive “local tightness” requirement. From this fact we conclude that the proof assistant anthem-p2p can be used to verify equivalence between locally tight programs.

程序完成是从逻辑程序语言翻译成一阶理论语言。它的原始定义已经扩展到包括整数运算、接受输入以及区分输出谓词和辅助谓词的程序。众所周知,对于严密性程序而言,完备性的这种概括与稳定模型语义相匹配,而稳定模型语义正是答案集程序设计的基础。我们证明,该定理中的严密性条件可以用限制性较小的 "局部严密性 "要求来代替。由此我们得出结论,证明助手 anthem-p2p 可以用来验证局部紧密程序之间的等价性。
{"title":"Locally Tight Programs","authors":"JORGE FANDINNO, VLADIMIR LIFSCHITZ, NATHAN TEMPLE","doi":"10.1017/s147106842300039x","DOIUrl":"https://doi.org/10.1017/s147106842300039x","url":null,"abstract":"<p>Program completion is a translation from the language of logic programs into the language of first-order theories. Its original definition has been extended to programs that include integer arithmetic, accept input, and distinguish between output predicates and auxiliary predicates. For tight programs, that generalization of completion is known to match the stable model semantics, which is the basis of answer set programming. We show that the tightness condition in this theorem can be replaced by a less restrictive “local tightness” requirement. From this fact we conclude that the proof assistant <span>anthem-p2p</span> can be used to verify equivalence between locally tight programs.</p>","PeriodicalId":49436,"journal":{"name":"Theory and Practice of Logic Programming","volume":"84 1","pages":""},"PeriodicalIF":1.4,"publicationDate":"2024-01-19","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"139497385","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
期刊
Theory and Practice of Logic Programming
全部 Acc. Chem. Res. ACS Applied Bio Materials ACS Appl. Electron. Mater. ACS Appl. Energy Mater. ACS Appl. Mater. Interfaces ACS Appl. Nano Mater. ACS Appl. Polym. Mater. ACS BIOMATER-SCI ENG ACS Catal. ACS Cent. Sci. ACS Chem. Biol. ACS Chemical Health & Safety ACS Chem. Neurosci. ACS Comb. Sci. ACS Earth Space Chem. ACS Energy Lett. ACS Infect. Dis. ACS Macro Lett. ACS Mater. Lett. ACS Med. Chem. Lett. ACS Nano ACS Omega ACS Photonics ACS Sens. ACS Sustainable Chem. Eng. ACS Synth. Biol. Anal. Chem. BIOCHEMISTRY-US Bioconjugate Chem. BIOMACROMOLECULES Chem. Res. Toxicol. Chem. Rev. Chem. Mater. CRYST GROWTH DES ENERG FUEL Environ. Sci. Technol. Environ. Sci. Technol. Lett. Eur. J. Inorg. Chem. IND ENG CHEM RES Inorg. Chem. J. Agric. Food. Chem. J. Chem. Eng. Data J. Chem. Educ. J. Chem. Inf. Model. J. Chem. Theory Comput. J. Med. Chem. J. Nat. Prod. J PROTEOME RES J. Am. Chem. Soc. LANGMUIR MACROMOLECULES Mol. Pharmaceutics Nano Lett. Org. Lett. ORG PROCESS RES DEV ORGANOMETALLICS J. Org. Chem. J. Phys. Chem. J. Phys. Chem. A J. Phys. Chem. B J. Phys. Chem. C J. Phys. Chem. Lett. Analyst Anal. Methods Biomater. Sci. Catal. Sci. Technol. Chem. Commun. Chem. Soc. Rev. CHEM EDUC RES PRACT CRYSTENGCOMM Dalton Trans. Energy Environ. Sci. ENVIRON SCI-NANO ENVIRON SCI-PROC IMP ENVIRON SCI-WAT RES Faraday Discuss. Food Funct. Green Chem. Inorg. Chem. Front. Integr. Biol. J. Anal. At. Spectrom. J. Mater. Chem. A J. Mater. Chem. B J. Mater. Chem. C Lab Chip Mater. Chem. Front. Mater. Horiz. MEDCHEMCOMM Metallomics Mol. Biosyst. Mol. Syst. Des. Eng. Nanoscale Nanoscale Horiz. Nat. Prod. Rep. New J. Chem. Org. Biomol. Chem. Org. Chem. Front. PHOTOCH PHOTOBIO SCI PCCP Polym. Chem.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1