Skip to content
Navigation Menu
Toggle navigation
Sign in
In this repository
All GitHub Enterprise
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub Enterprise
↵
Jump to
↵
In this user
All GitHub Enterprise
↵
Jump to
↵
In this repository
All GitHub Enterprise
↵
Jump to
↵
Sign in
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
gadelrab
/
ExFaKT
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
0
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security
Insights
Files
c2288d2
Api
Client
Demo
Extras
FactSpotting
QueryRewriting
Utils
WebService
app
controllers
views
eval_main.scala.html
evaluation.scala.html
explain_form.scala.html
explan_card.scala.html
explans.scala.html
index.scala.html
main.scala.html
EbeanServerProvider.java
Module.java
conf
project
public
test
LICENSE
README.md
build.sbt
pom.xml
WebService2
data
scripts
src
.gitignore
.gitmodules
README.md
install_external_jars.sh
pom.xml
rules_splitq_heursitic.out.json
Breadcrumbs
ExFaKT
/
WebService
/
app
/
views
/
explan_card.scala.html
Blame
Blame
Latest commit
History
History
executable file
·
106 lines (87 loc) · 4.62 KB
Breadcrumbs
ExFaKT
/
WebService
/
app
/
views
/
explan_card.scala.html
Top
File metadata and controls
Code
Blame
executable file
·
106 lines (87 loc) · 4.62 KB
Raw
@import extendedsldnf.datastructure.Explanation @(explan: Explanation, index: Int) <div class="card border-dark m-1"> <div class="card-header"> <div class="row"> <div class="col-md-4"> <h5>Explanation #@{index + 1}</h5> </div> <div class="col-md-8"> <div class="btn-group btn-group-sm pull-right" role="group" aria-label="feedback"> <button type="button" class="btn btn-success ">Relevant</button> <button type="button" class="btn btn-warning">Semi-Relevant</button> <button type="button" class="btn btn-danger">Irrelevant</button> <button type="button" class="btn btn-secondary">Unknown</button> </div> </div> </div> </div> <div class="card-body "> @*<h5 class="card-title">Explanation #@{*@ @*index + 1*@ @*}</h5>*@ <h6 class="card-title">This fact is true given:</h6> <div class="card-text py-1 m-1" > @*<p class="card-text p-y-1">@explan.toString()</p>*@ <div class="panel-group col-md-9"> <div class="panel panel-default"> <div class="header-panel m-1"> <h6 class="panel-title"> <a data-toggle="collapse" href="#factsdiv@{index}">Facts</a> </h6> </div> <div class="panel-collapse collapse show" id="factsdiv@{index}"> <div class="list-group"> @for((node, eviIndex) <- explan.getVerificationEvidences().zipWithIndex) { @if(node.getSourceActionType().toString().startsWith("TEXT")) { <div class="list-group-item"><strong><em>@node.getReadableQuery().toString()</em></strong> <a class="badge badge-pill badge-warning" data-toggle="collapse" href="#textE@{index}-@{eviIndex}">Source:Text </a> <div class="panel-collapse collapse" id="textE@{index}-@{eviIndex}"> <em>Text Evidences:</em> <lu> @for(doc<-node.getTextResults().getEvidence().getDocuments()){ <li>(<a href="@doc.getUrl()">@doc.getTitle()</a>) @doc.getText()</li> } </lu> </div> </div> }else{ <div class="list-group-item"><strong><em>@node.getReadableQuery().toString()</em></strong> <a class="badge badge-pill badge-success">Source: KG Fact</a> </div> } } </div> </div> <div class="header-panel m-1"> @if(explan.getRulesEvidences().size()==0){ <h6 class="panel-title disabled"> <a data-toggle="collapse" href="#rulesdiv@{index}">No rules are used!</a> </h6> @*<div class="panel-collapse collapse" id="rulesdiv@{index}">*@ @*<div class="list-group">*@ @*<div class="list-group-item"><em>No rules are used!</em>*@ @*</div>*@ @*</div>*@ @*</div>*@ }else { <h6 class="panel-title"> <a data-toggle="collapse" href="#rulesdiv@{index}">Rules</a> </h6> @for(node <- explan.getRulesEvidences()) { <div class="panel-collapse collapse show" id="rulesdiv@{index}"> <div class="list-group"> <div class="list-group-item"><strong><em>@node.getRule()</em></strong> </div> </div> </div> } } </div> </div> </div> </div> @*<a href="#" class="card-link">link</a>*@ @*<a href="#" class="card-link">Second link</a>*@ </div> </div>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
You can’t perform that action at this time.