+ All Categories
Home > Documents > ArgQL: A Declarative Language for Querying Argumentative...

ArgQL: A Declarative Language for Querying Argumentative...

Date post: 17-Aug-2020
Category:
Upload: others
View: 0 times
Download: 0 times
Share this document with a friend
24
ArgQL: A Declarative Language for Querying Argumentative Dialogues RULEML+RR: INTERNATIONAL JOINT CONFERENCE ON RULES AND REASONING DIMITRA ZOGRAFISTOU, GIORGOS FLOURIS, DIMITRIS PLEXOUSAKIS FOUNDATION FOR RESEARCH AND TECHNOLOGY (FORTH) JULY 2017 FOUNDATION FOR RESEARCH AND TECHNOLOGY - FORTH 1
Transcript
Page 1: ArgQL: A Declarative Language for Querying Argumentative ...2017.ruleml-rr.org/wp-content/uploads/2018/03/RuleML_Zografistou.… · Mental factors that affect that process like preferences,

ArgQL: A Declarative Language for Querying Argumentative Dialogues

R U L E M L + R R : I N T E R N AT I O N A L J O I N T C O N F E R E N C E O N R U L E S A N D R E A S O N I N G

D I M I T R A Z O G R A F I S T O U , G I O R G O S F L O U R I S , D I M I T R I S P L E X O U S A K I S

F O U N D AT I O N F O R R E S E A R C H A N D T E C H N O L O G Y ( F O R T H )

J U LY 2 0 1 7

FOUNDATION FOR RESEARCH AND TECHNOLOGY - FORTH 1

Page 2: ArgQL: A Declarative Language for Querying Argumentative ...2017.ruleml-rr.org/wp-content/uploads/2018/03/RuleML_Zografistou.… · Mental factors that affect that process like preferences,

The big picture• The recent growth of the social side of the web offers new incentive for users to:

◦ Easily upload digital content

◦ Communicate with each other

◦ Express themselves

• Outcome: online communities populated with tons of unstructured and unexploited data about:◦ Opinions and beliefs about political or social topics

◦ Criticisms and consultations and

◦ Reviews on products, services etc.

• Objective: Development of methods to make data, created from users’ participation in online communities, machine interpretable, retrievable and computable.

FOUNDATION FOR RESEARCH AND TECHNOLOGY - FORTH 2

Page 3: ArgQL: A Declarative Language for Querying Argumentative ...2017.ruleml-rr.org/wp-content/uploads/2018/03/RuleML_Zografistou.… · Mental factors that affect that process like preferences,

Role of Computational Argumentation• Branch of Artificial Intelligence which studies the process of human reasoning while arguing and debating.

• Theoretical and computational models addressing miscellaneous issues like:◦ The process of resolving controversial positions through reasoning

◦ Mental factors that affect that process like preferences, intents, beliefs, desires , trust, etc.

◦ Evaluation of debates

◦ Persuasiveness and impact of arguments

Basic component is the argument.

• User created dialogues as an application field for argumentation models

FOUNDATION FOR RESEARCH AND TECHNOLOGY - FORTH 3

Page 4: ArgQL: A Declarative Language for Querying Argumentative ...2017.ruleml-rr.org/wp-content/uploads/2018/03/RuleML_Zografistou.… · Mental factors that affect that process like preferences,

Problem descriptionNeed for mechanisms for navigation and information identification and extraction from a graph of interconnected arguments

ArgQL: a declarative query language designed on a data model for argumentation

Why is it important? ◦ Focus on understanding the information requirements when extracting information from dialogues.

◦ Familiar terminology to the community of argumentation

Why not using traditional query languages like SPARQL?◦ We can use traditional languages for our purpose but …

◦ Argumentation defines distinct and solid concepts different than the triples of RDF e.g.

◦ Generates much simpler and descriptive queries for its purpose.

FOUNDATION FOR RESEARCH AND TECHNOLOGY - FORTH 4

Page 5: ArgQL: A Declarative Language for Querying Argumentative ...2017.ruleml-rr.org/wp-content/uploads/2018/03/RuleML_Zografistou.… · Mental factors that affect that process like preferences,

Similar approachesNo similar approach to a query language for arguments

Significant efforts towards the realization of a web of opinions

A number of tools that facilitate the participation in online debates.◦ Argument mining from text (Natural Language Processing)◦ Visualization (e.g. Debate Graph, Argunet, Opinion Space etc.)◦ Reasoning (e.g. Parmenides, Avicenna, etc. )◦ User engagement (CreateDebate, Debate.org, etc.)◦ Storage and Searching engines (AIFdb, ArgDF, DourcourseDB etc.)

AIF (Argument Interchange Format). Interlingua that bridges arguments among the tools.

None of those tools defines a pure language for argumentation◦ Application fields for traditional languages like SQL, SPARQL.

FOUNDATION FOR RESEARCH AND TECHNOLOGY - FORTH 5

Page 6: ArgQL: A Declarative Language for Querying Argumentative ...2017.ruleml-rr.org/wp-content/uploads/2018/03/RuleML_Zografistou.… · Mental factors that affect that process like preferences,

Argumentation data model (1/3)

𝑃 : infinite set of propositions

−⊆ 𝑃 × 𝑃: contrariness relation◦ 𝑝1, 𝑝2 ∈ − : 𝑝1 in conflict with 𝑝2

≃⊆ 𝑃 × 𝑃: equivalence relation◦ 𝑝1, 𝑝2 ∈ ≃ : 𝑝1 equivalent to 𝑝2

→ : Inference as commonly used◦ a, b, c → d : propositions a, b, c imply proposition d

L = P, −, ≃ , →

FOUNDATION FOR RESEARCH AND TECHNOLOGY - FORTH 6

Page 7: ArgQL: A Declarative Language for Querying Argumentative ...2017.ruleml-rr.org/wp-content/uploads/2018/03/RuleML_Zografistou.… · Mental factors that affect that process like preferences,

Argumentation data model (2/3)Arguments:

Relations:

A = 𝑝𝑟, 𝑐 where 𝑝𝑟 ⊂ 𝑃 , 𝑐 ∈ 𝑃 , 𝑝𝑟 → 𝑐

{ p1 p2 … pn }

c1

Attack

{ s1 s2 … sm }

c2

Rebut

{ p1 p2 … pn }

c1

{ s1 s2 … sm }

c2

Undercut

{ p1 p2 … pn }

c1

Support

{ s1 s2 … sm }

c2

Endorse

{ p1 p2 … pn }

c1

{ s1 s2 … sm }

c2

Backing: equivalence: conflict

FOUNDATION FOR RESEARCH AND TECHNOLOGY - FORTH 7

Page 8: ArgQL: A Declarative Language for Querying Argumentative ...2017.ruleml-rr.org/wp-content/uploads/2018/03/RuleML_Zografistou.… · Mental factors that affect that process like preferences,

Argumentation data model (3/3)

FOUNDATION FOR RESEARCH AND TECHNOLOGY - FORTH 8

< {“prop1”,”prop2”}, “concl1”>

<{“prop3”}, “concl2”>

<{“prop4”} , “concl3”>

<{“prop5”, “prop6”} , “concl4”>

“concl1” in_conflict “concl2”

“concl3” in_conflict “prop3”

“concl4” equivalent “concl1”

Data

< {“prop1”,”prop2”}, “concl1”>

< {“prop3”}, “concl2”>

< {“prop4”}, “concl3”>

<{“prop5”,”prop6”}, “concl4”>

Attacks/Undercut

Debate graph : A : set of argumentsR⊆ 𝐴 × 𝐴 : set of relations

D = (A, R)

Page 9: ArgQL: A Declarative Language for Querying Argumentative ...2017.ruleml-rr.org/wp-content/uploads/2018/03/RuleML_Zografistou.… · Mental factors that affect that process like preferences,

Query examples

<{“prop1”,”prop2”}, “concl1”>

<{“prop3”}, “concl2”>

<{“prop4”}, “concl3”>

<{“prop5”,”prop6”}, “concl4”>Attacks/Undercut

Data1. Find arguments which "defend” (attack their attackers) all arguments with conclusion ”concl1".

match ?arg (attack/attack)+ <?pr, "concl1">

return ?arg

Results: <{“prop4”}, “concl3”>

2. Find arguments which support an argument with the proposition “prop2” in its premise set.

match ?arg support <?pr[/{“prop2”}], ?c>

return ?arg

Results: <{“prop5”, “prop6”}, “concl4”>

FOUNDATION FOR RESEARCH AND TECHNOLOGY - FORTH 9

Page 10: ArgQL: A Declarative Language for Querying Argumentative ...2017.ruleml-rr.org/wp-content/uploads/2018/03/RuleML_Zografistou.… · Mental factors that affect that process like preferences,

ArgQL Syntax

𝑉: an infinite set of variables◦ Start with the character ‘?’ (e.g. ?x)

Values for propositions are quoted (e.g. “propi”)

Language expressions combined by the two basic constructs:◦ Argument patterns: expressions used to match arguments in the debate graph

◦ Path patterns: expressions used to match sequences of arguments in the debate graph

FOUNDATION FOR RESEARCH AND TECHNOLOGY - FORTH 10

Page 11: ArgQL: A Declarative Language for Querying Argumentative ...2017.ruleml-rr.org/wp-content/uploads/2018/03/RuleML_Zografistou.… · Mental factors that affect that process like preferences,

ArgQL Syntax Argument patterns

A single variable, or be of the form:

◦ 𝑝𝑟 ∈ 𝑉 a variable that matches the premise set

◦ 𝑐 ∈ 𝑃⋃𝑉 a variable or proposition value that matches with the conclusion.

◦ the part [filters] is optional and adds constraints on the premise set

Given that 𝑝𝑖 ∈ 𝑃, the supported filters are:◦ Inclusion: [/{p1, …, pn}] propositions 𝑝𝑖 must be included in pr.

◦ Join: [.?x] or [.{p1, …, pn}] pr must be joint with the given set.

◦ Disjoin: [!.?x] or [!.{p1, …, pn}] pr must be disjoint with the given set

◦ Equality: [= ?x] or [= {p1, …, pn}] pr must have exactly the same elements with the given set

< pr [filters], c >

FOUNDATION FOR RESEARCH AND TECHNOLOGY - FORTH 11

Page 12: ArgQL: A Declarative Language for Querying Argumentative ...2017.ruleml-rr.org/wp-content/uploads/2018/03/RuleML_Zografistou.… · Mental factors that affect that process like preferences,

ArgQL SyntaxPath patterns

Keywords for relations:◦ ‘rebut’ , ‘undercut’ , ‘attack’ , ‘endorse’ , ‘back’ , ‘support’

Symbol for relation sequence: ‘/’◦ E.g. rebut/endorse/attack

Numerical indicators◦ ‘+’ : one or more occurrences of the path e.g. (attack/support)+

◦ ‘*n ‘ :exactly n occurrences of the path e.g. (endorse/undercut)*3

Arbitrary combinations to support many complex types of path patterns◦ E.g. ((attack/support)*2)/rebut, ((rebut/undercut)*2/(support/attack)*3)+

Issues to be addressed at performance evaluation stage:◦ Complexity of ‘+’

◦ Cycles on the paths

FOUNDATION FOR RESEARCH AND TECHNOLOGY - FORTH 12

Page 13: ArgQL: A Declarative Language for Querying Argumentative ...2017.ruleml-rr.org/wp-content/uploads/2018/03/RuleML_Zografistou.… · Mental factors that affect that process like preferences,

ArgQL SyntaxBNF grammar for the syntax of ArgQL

FOUNDATION FOR RESEARCH AND TECHNOLOGY - FORTH 13

Page 14: ArgQL: A Declarative Language for Querying Argumentative ...2017.ruleml-rr.org/wp-content/uploads/2018/03/RuleML_Zografistou.… · Mental factors that affect that process like preferences,

Semantics description

FOUNDATION FOR RESEARCH AND TECHNOLOGY - FORTH 14

Query: Match ?arg (attack/support)+ <?pr, “c1”> return ?arg

Semantics are defined above a function μ: S ∪ 𝑉 → 𝑆, where 𝑆 = 𝑃 ∪ 2𝑃 ∪ 𝐴

A1: <{“p1”,”p2”},

“c1”>

A2: <{“p3”},

“c2”>

A7: <{“p7”,”p8”},

“c6”>

A3: <{“p4”,”p2”},

“c3”>

A8: <{“p9”},

“c7”>

A5: <{“p6”},

“c5”>

A4: <{“p5”},

“c4”>

Endorse

Rebut

Undercut

Page 15: ArgQL: A Declarative Language for Querying Argumentative ...2017.ruleml-rr.org/wp-content/uploads/2018/03/RuleML_Zografistou.… · Mental factors that affect that process like preferences,

Semantics description

FOUNDATION FOR RESEARCH AND TECHNOLOGY - FORTH 15

Query: Match ?arg (attack/support)+ <?pr, “c1”> return ?arg

Semantics are defined above a function μ: S ∪ 𝑉 → 𝑆, where 𝑆 = 𝑃 ∪ 2𝑃 ∪ 𝐴

A1: <{“p1”,”p2”},

“c1”>

A2: <{“p3”},

“c2”>

A7: <{“p7”,”p8”},

“c6”>

A3: <{“p4”,”p2”},

“c3”>

A8: <{“p9”},

“c7”>

A5: <{“p6”},

“c5”>

A4: <{“p5”},

“c4”>

Endorse

Rebut

Undercut

?arg {“p1”, “p2”,…, “c7”, {“p1”,”p2”}, {“p1,p3”} …. , Α1, Α2,..Α8}μ

Page 16: ArgQL: A Declarative Language for Querying Argumentative ...2017.ruleml-rr.org/wp-content/uploads/2018/03/RuleML_Zografistou.… · Mental factors that affect that process like preferences,

Semantics description

FOUNDATION FOR RESEARCH AND TECHNOLOGY - FORTH 16

Query: Match ?arg (attack/support)+ <?pr, “c1”> return ?arg

Semantics are defined above a function μ: S ∪ 𝑉 → 𝑆, where 𝑆 = 𝑃 ∪ 2𝑃 ∪ 𝐴

A1: <{“p1”,”p2”},

“c1”>

A2: <{“p3”},

“c2”>

A7: <{“p7”,”p8”},

“c6”>

A3: <{“p4”,”p2”},

“c3”>

A8: <{“p9”},

“c7”>

A5: <{“p6”},

“c5”>

A4: <{“p5”},

“c4”>

Endorse

Rebut

Undercut

<?pr, “c1”> <μ(?pr), μ(“c1”)> = A1: <{“p1”, “p2”}, c1>μ

Page 17: ArgQL: A Declarative Language for Querying Argumentative ...2017.ruleml-rr.org/wp-content/uploads/2018/03/RuleML_Zografistou.… · Mental factors that affect that process like preferences,

Semantics description

FOUNDATION FOR RESEARCH AND TECHNOLOGY - FORTH 17

Query: Match ?arg (attack/support)+ <?pr, “c1”> return ?arg

Semantics are defined above a function μ: S ∪ 𝑉 → 𝑆, where 𝑆 = 𝑃 ∪ 2𝑃 ∪ 𝐴

A1: <{“p1”,”p2”},

“c1”>

A2: <{“p3”},

“c2”>

A7: <{“p7”,”p8”},

“c6”>

A3: <{“p4”,”p2”},

“c3”>

A8: <{“p9”},

“c7”>

A5: <{“p6”},

“c5”>

A4: <{“p5”},

“c4”>

Endorse

Rebut

Undercut

(attack/support)+ = {attack/support , attack/support/attack/support , attack/support/attack/support/attack/support ….}

Page 18: ArgQL: A Declarative Language for Querying Argumentative ...2017.ruleml-rr.org/wp-content/uploads/2018/03/RuleML_Zografistou.… · Mental factors that affect that process like preferences,

Semantics description

FOUNDATION FOR RESEARCH AND TECHNOLOGY - FORTH 18

Query: Match ?arg (attack/support)+ <?pr, “c1”> return ?arg

Semantics are defined above a function μ: S ∪ 𝑉 → 𝑆, where 𝑆 = 𝑃 ∪ 2𝑃 ∪ 𝐴

A1: <{“p1”,”p2”},

“c1”>

A2: <{“p3”},

“c2”>

A7: <{“p7”,”p8”},

“c6”>

A3: <{“p4”,”p2”},

“c3”>

A8: <{“p9”},

“c7”>

A5: <{“p6”},

“c5”>

A4: <{“p5”},

“c4”>

Endorse

Rebut

Undercut

Expression evaluation in D =

Page 19: ArgQL: A Declarative Language for Querying Argumentative ...2017.ruleml-rr.org/wp-content/uploads/2018/03/RuleML_Zografistou.… · Mental factors that affect that process like preferences,

Semantics description

FOUNDATION FOR RESEARCH AND TECHNOLOGY - FORTH 19

Query: Match ?arg (attack/support)+ <?pr, “c1”> return ?arg

Semantics are defined above a function μ: S ∪ 𝑉 → 𝑆, where 𝑆 = 𝑃 ∪ 2𝑃 ∪ 𝐴

A1: <{“p1”,”p2”},

“c1”>

A2: <{“p3”},

“c2”>

A7: <{“p7”,”p8”},

“c6”>

A3: <{“p4”,”p2”},

“c3”>

A8: <{“p9”},

“c7”>

A5: <{“p6”},

“c5”>

A4: <{“p5”},

“c4”>

Endorse

Rebut

Undercut

{A3 attack/support A1,Evaluation of expression in D =

Page 20: ArgQL: A Declarative Language for Querying Argumentative ...2017.ruleml-rr.org/wp-content/uploads/2018/03/RuleML_Zografistou.… · Mental factors that affect that process like preferences,

Semantics description

FOUNDATION FOR RESEARCH AND TECHNOLOGY - FORTH 20

Query: Match ?arg (attack/support)+ <?pr, “c1”> return ?arg

Semantics are defined above a function μ: S ∪ 𝑉 → 𝑆, where 𝑆 = 𝑃 ∪ 2𝑃 ∪ 𝐴

A1: <{“p1”,”p2”},

“c1”>

A2: <{“p3”},

“c2”>

A7: <{“p7”,”p8”},

“c6”>

A3: <{“p4”,”p2”},

“c3”>

A8: <{“p9”},

“c7”>

A5: <{“p6”},

“c5”>

A4: <{“p5”},

“c4”>

Endorse

Rebut

Undercut

{A3 attack/support A1,Evaluation of expression in D =

A5 attack/support/attack/support A1}

Page 21: ArgQL: A Declarative Language for Querying Argumentative ...2017.ruleml-rr.org/wp-content/uploads/2018/03/RuleML_Zografistou.… · Mental factors that affect that process like preferences,

Semantics description

FOUNDATION FOR RESEARCH AND TECHNOLOGY - FORTH 21

Query: Match ?arg (attack/support)+ <?pr, “c1”> return ?arg

Semantics are defined above a function μ: S ∪ 𝑉 → 𝑆, where 𝑆 = 𝑃 ∪ 2𝑃 ∪ 𝐴

A1: <{“p1”,”p2”},

“c1”>

A2: <{“p3”},

“c2”>

A7: <{“p7”,”p8”},

“c6”>

A3: <{“p4”,”p2”},

“c3”>

A8: <{“p9”},

“c7”>

A5: <{“p6”},

“c5”>

A4: <{“p5”},

“c4”>

Endorse

Rebut

Undercut

{A3 attack/support A1,Evaluation of expression in D =

A5 attack/support/attack/support A1}

Query Answer: ?arg = {A3, A5}

Page 22: ArgQL: A Declarative Language for Querying Argumentative ...2017.ruleml-rr.org/wp-content/uploads/2018/03/RuleML_Zografistou.… · Mental factors that affect that process like preferences,

Query executionTranslation into standard and well-optimized storage schemes

◦ Independence from the storage scheme.

◦ RDF and AIF scheme (target field is the Web, exploit SPARQL1.1 property paths)

Definition of two translation functions:◦ trA: translates Argumentation data model into RDF instances of AIF ontology

◦ trQ: translates ArgQL queries into SPARQL

Formally prove that translation is semantics preserving

FOUNDATION FOR RESEARCH AND TECHNOLOGY - FORTH 22

Argument DatabaseD = (A, R)

RDF DatabaseAIF ontology

QArgQL

trA

QSPARQL

trQ

Page 23: ArgQL: A Declarative Language for Querying Argumentative ...2017.ruleml-rr.org/wp-content/uploads/2018/03/RuleML_Zografistou.… · Mental factors that affect that process like preferences,

Conclusionso Initial results from the definition of ArgQL, a declarative query language for querying dialogues constructed of arguments.• Syntax and semantics

o Future directions • Complete the proof of correctness for translation

• Experimentation on real datasets and development of an endpoint to run queries

• Data model enrichment with more complicated concepts (e.g. topics) and expand the syntax with the new concepts.

• Integration with reasoning mechanisms for dynamic computations (e.g. Dung’s acceptability)

• Smart searching facilities (like keyword searching, imprecise textual mappings etc.)

• Expressive power

FOUNDATION FOR RESEARCH AND TECHNOLOGY - FORTH 23

Page 24: ArgQL: A Declarative Language for Querying Argumentative ...2017.ruleml-rr.org/wp-content/uploads/2018/03/RuleML_Zografistou.… · Mental factors that affect that process like preferences,

Questions?

FOUNDATION FOR RESEARCH AND TECHNOLOGY - FORTH 24


Recommended