@tuprolog/arg2p 0.16.2 → 0.16.4

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/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 (version `ARG2P_VERSION`) into your Kotlin-based Gradle project, declare the dependency in your `build.gradle(.kts)` file:
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:ARG2P_VERSION")
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": "ARG2P_VERSION"
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('buildLabelSets', `
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(grounded_hash).
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-ARG2P_VERSION-redist.jar
139
+ arg2p-ide-<VERSION>-redist.jar
95
140
  ```
96
- a self-contained, executable Jar containing the 2P-Kt-based Prolog interpreter (`ARG2P_VERSION` will vary depending on the
97
- actual release version).
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 `arg2p-ide-ARG2P_VERSION-redist.jar`, you can simply launch it by running:
144
+ After you download the jar, you can simply launch it by running:
100
145
  ```bash
101
- java -jar arg2p-ide-ARG2P_VERSION-redist.jar
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 [official wiki](https://pika-lab.gitlab.io/argumentation/arg2p-kt/wiki/predicate).
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
  ![Web Playground](./imgs/playground.png)
123
168
 
124
- It functions the same as the Java IDE, offering an interactive experience without installation.
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