@tuprolog/arg2p 0.16.2 → 0.16.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2p-core.js +3214 -3035
- package/2p-core.js.map +1 -1
- package/2p-dsl-core.js +303 -303
- package/2p-dsl-core.js.map +1 -1
- package/2p-dsl-solve.js +252 -252
- package/2p-dsl-theory.js +160 -160
- package/2p-dsl-unify.js +6 -6
- package/2p-io-lib.js +3496 -0
- package/2p-io-lib.js.map +1 -0
- package/2p-parser-core.js +124 -123
- package/2p-parser-core.js.map +1 -1
- package/2p-parser-impl.js +1480 -1389
- package/2p-parser-impl.js.map +1 -1
- package/2p-parser-theory.js +89 -88
- package/2p-parser-theory.js.map +1 -1
- package/2p-solve-classic.js +1004 -1004
- package/2p-solve.js +3933 -3464
- package/2p-solve.js.map +1 -1
- package/2p-theory.js +1423 -1423
- package/2p-theory.js.map +1 -1
- package/2p-unify.js +349 -349
- package/2p-utils.js +391 -391
- package/README.md +59 -12
- package/arg2p-causality-solver.js +151 -151
- package/arg2p-core.js +1792 -1744
- package/arg2p-core.js.map +1 -1
- package/arg2p.js +95 -95
- package/kotlin-kotlin-stdlib.js +2583 -1714
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kt-math.js +1531 -1531
- package/okio-parent-okio-nodefilesystem.js +211 -0
- package/okio-parent-okio-nodefilesystem.js.map +1 -0
- package/okio-parent-okio.js +3873 -0
- package/okio-parent-okio.js.map +1 -0
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -5,6 +5,50 @@ Built on top of the [tuProlog](https://apice.unibo.it/xwiki/bin/view/Tuprolog/)
|
|
|
5
5
|
|
|
6
6
|
More details are available on the [official wiki](https://tuprolog.github.io/arg2p-kt/).
|
|
7
7
|
|
|
8
|
+
## References
|
|
9
|
+
|
|
10
|
+
Arg2P is described in:
|
|
11
|
+
|
|
12
|
+
- Roberta Calegari, Andrea Omicini, Giuseppe Pisano, Giovanni Sartor.
|
|
13
|
+
**Arg2P: an argumentation framework for explainable intelligent systems.**
|
|
14
|
+
_Journal of Logic and Computation_, 32(2):369–401, 2022.
|
|
15
|
+
[doi:10.1093/logcom/exab089](https://doi.org/10.1093/logcom/exab089)
|
|
16
|
+
- Giuseppe Pisano.
|
|
17
|
+
**Argumentation for legal reasoning: meta-models, technology and beyond.**
|
|
18
|
+
PhD thesis, Alma Mater Studiorum — Università di Bologna, 2024.
|
|
19
|
+
[doi:10.48676/unibo/amsdottorato/11671](https://doi.org/10.48676/unibo/amsdottorato/11671)
|
|
20
|
+
|
|
21
|
+
Individual features — burden of persuasion, defeasible preferences, modularity, causality, distributed
|
|
22
|
+
reasoning — have their own papers, listed on the
|
|
23
|
+
[References](https://tuprolog.github.io/arg2p-kt/docs/references/) page of the wiki.
|
|
24
|
+
|
|
25
|
+
### Cite me
|
|
26
|
+
|
|
27
|
+
If you use Arg2P in academic work, please cite:
|
|
28
|
+
|
|
29
|
+
```bibtex
|
|
30
|
+
@article{arg2p,
|
|
31
|
+
author = {Calegari, Roberta and Omicini, Andrea and Pisano, Giuseppe and Sartor, Giovanni},
|
|
32
|
+
title = {{Arg2P}: an argumentation framework for explainable intelligent systems},
|
|
33
|
+
journal = {Journal of Logic and Computation},
|
|
34
|
+
volume = {32},
|
|
35
|
+
number = {2},
|
|
36
|
+
pages = {369--401},
|
|
37
|
+
year = {2022},
|
|
38
|
+
doi = {10.1093/logcom/exab089}
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
```bibtex
|
|
43
|
+
@phdthesis{pisano2024argumentation,
|
|
44
|
+
author = {Pisano, Giuseppe},
|
|
45
|
+
title = {Argumentation for legal reasoning: meta-models, technology and beyond},
|
|
46
|
+
school = {Alma Mater Studiorum --- Universit\`a di Bologna},
|
|
47
|
+
year = {2024},
|
|
48
|
+
doi = {10.48676/unibo/amsdottorato/11671}
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
8
52
|
---
|
|
9
53
|
|
|
10
54
|
## Getting Started
|
|
@@ -13,14 +57,15 @@ Arg2p is available as a [2P-Kt](https://github.com/tuProlog/2p-kt/) library.
|
|
|
13
57
|
|
|
14
58
|
#### JVM Library - Gradle
|
|
15
59
|
|
|
16
|
-
To import the Arg2p module
|
|
60
|
+
To import the Arg2p module into your Kotlin-based Gradle project, declare the dependency in your `build.gradle(.kts)` file
|
|
61
|
+
(the version below is the latest release, see the [releases page](https://github.com/tuProlog/arg2p-kt/releases/latest)):
|
|
17
62
|
```kotlin
|
|
18
63
|
repositories {
|
|
19
64
|
mavenCentral()
|
|
20
65
|
}
|
|
21
66
|
|
|
22
67
|
dependencies {
|
|
23
|
-
implementation("it.unibo.tuprolog.argumentation:arg2p-jvm:
|
|
68
|
+
implementation("it.unibo.tuprolog.argumentation:arg2p-jvm:0.16.2")
|
|
24
69
|
}
|
|
25
70
|
```
|
|
26
71
|
|
|
@@ -52,7 +97,7 @@ To use the library, add the dependency to your `package.json`:
|
|
|
52
97
|
```json
|
|
53
98
|
{
|
|
54
99
|
"dependencies": {
|
|
55
|
-
"@tuprolog/arg2p": "
|
|
100
|
+
"@tuprolog/arg2p": "0.16.2"
|
|
56
101
|
}
|
|
57
102
|
}
|
|
58
103
|
```
|
|
@@ -62,12 +107,12 @@ To use the library, add the dependency to your `package.json`:
|
|
|
62
107
|
```js
|
|
63
108
|
const arg2p = require('@tuprolog/arg2p').it.unibo.tuprolog.argumentation.bridge.JsBridge
|
|
64
109
|
|
|
65
|
-
const graph = arg2p.solve('
|
|
110
|
+
const graph = arg2p.solve('arg2p::solve', `
|
|
66
111
|
f1 :=> d.
|
|
67
112
|
f2 :=> -d.`, `
|
|
68
113
|
graphBuildMode(standard_af).
|
|
69
114
|
statementLabellingMode(statement).
|
|
70
|
-
argumentLabellingMode(
|
|
115
|
+
argumentLabellingMode(grounded).
|
|
71
116
|
orderingPrinciple(last).
|
|
72
117
|
orderingComparator(elitist).
|
|
73
118
|
graphExtension(standardPref).
|
|
@@ -91,14 +136,14 @@ GitHub repository](https://github.com/tuProlog/arg2p-kt/releases/latest).
|
|
|
91
136
|
|
|
92
137
|
In the [latest release](https://github.com/tuProlog/arg2p-kt/releases/latest) page, download the _Asset_ named:
|
|
93
138
|
```
|
|
94
|
-
arg2p-ide
|
|
139
|
+
arg2p-ide-<VERSION>-redist.jar
|
|
95
140
|
```
|
|
96
|
-
a self-contained, executable Jar containing the 2P-Kt-based Prolog interpreter (
|
|
97
|
-
|
|
141
|
+
a self-contained, executable Jar containing the 2P-Kt-based Prolog interpreter (`<VERSION>` is the release
|
|
142
|
+
version, `0.16.2` at the time of writing).
|
|
98
143
|
|
|
99
|
-
After you download the
|
|
144
|
+
After you download the jar, you can simply launch it by running:
|
|
100
145
|
```bash
|
|
101
|
-
java -jar arg2p-ide-
|
|
146
|
+
java -jar arg2p-ide-0.16.2-redist.jar
|
|
102
147
|
```
|
|
103
148
|
If your JVM is properly configured, you can also start the IDE by double-clicking the JAR file.
|
|
104
149
|
|
|
@@ -111,7 +156,7 @@ If your JVM is properly configured, you can also start the IDE by double-clickin
|
|
|
111
156
|
### Additional Tabs
|
|
112
157
|
|
|
113
158
|
- **Graph Tab:** Displays a graphical representation of the abstract argumentation graph.
|
|
114
|
-
- **Arg Flag Tab:** Shows and allows modification of Arg2P flags. Detailed descriptions are on the [
|
|
159
|
+
- **Arg Flag Tab:** Shows and allows modification of Arg2P flags. Detailed descriptions are on the [Flags Reference](https://tuprolog.github.io/arg2p-kt/docs/flags/) page of the wiki.
|
|
115
160
|
|
|
116
161
|
---
|
|
117
162
|
|
|
@@ -121,7 +166,9 @@ Try Arg2P directly in your browser using the [Web Playground](https://tuprolog.g
|
|
|
121
166
|
|
|
122
167
|

|
|
123
168
|
|
|
124
|
-
It
|
|
169
|
+
No installation required. It runs in two modes: **Structured**, to write a theory and query it as in the
|
|
170
|
+
desktop IDE, and **Abstract**, to draw an argumentation framework and evaluate it with `abstract::solve/5`
|
|
171
|
+
under any of the supported semantics. It ships ready-made examples, and setups can be shared as a link.
|
|
125
172
|
|
|
126
173
|
---
|
|
127
174
|
|