-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #50 from WSE-research/revert-49-revert-48-explanat…
…ion_api_Qanary Revert "Revert "Explanation api qanary""
- Loading branch information
Showing
11 changed files
with
208 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/main/java/com/wse/qanaryexplanationservice/exceptions/ExplanationException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package com.wse.qanaryexplanationservice.exceptions; | ||
|
||
public class ExplanationException extends Exception { | ||
|
||
|
||
public ExplanationException(String message) { | ||
super(message); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/com/wse/qanaryexplanationservice/exceptions/ExplanationExceptionComponent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.wse.qanaryexplanationservice.exceptions; | ||
|
||
public class ExplanationExceptionComponent extends ExplanationException { | ||
public ExplanationExceptionComponent() { | ||
super("Error code 1"); // | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/com/wse/qanaryexplanationservice/exceptions/ExplanationExceptionPipeline.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.wse.qanaryexplanationservice.exceptions; | ||
|
||
public class ExplanationExceptionPipeline extends ExplanationException { | ||
public ExplanationExceptionPipeline() { | ||
super("Error code 2"); // Pipeline explanation creation error | ||
} | ||
} |
60 changes: 60 additions & 0 deletions
60
src/main/java/com/wse/qanaryexplanationservice/helper/dtos/QanaryExplanationData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
package com.wse.qanaryexplanationservice.helper.dtos; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnore; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
public class QanaryExplanationData { | ||
|
||
private String graph; | ||
private String questionId; | ||
private String component; | ||
private String serverHost; | ||
private Map<String,String> explanations; | ||
|
||
public QanaryExplanationData() { | ||
|
||
} | ||
|
||
public Map<String,String> getExplanations() { | ||
return explanations; | ||
} | ||
|
||
public void setExplanations(Map<String, String> explanations) { | ||
this.explanations = explanations; | ||
} | ||
|
||
public String getComponent() { | ||
return component; | ||
} | ||
|
||
public String getGraph() { | ||
return graph; | ||
} | ||
|
||
public String getQuestionId() { | ||
return questionId; | ||
} | ||
|
||
public void setQuestionId(String questionId) { | ||
this.questionId = questionId; | ||
} | ||
|
||
public void setComponent(String component) { | ||
this.component = component; | ||
} | ||
|
||
public void setGraph(String graph) { | ||
this.graph = graph; | ||
} | ||
|
||
public String getServerHost() { | ||
return serverHost; | ||
} | ||
|
||
public void setServerHost(String serverHost) { | ||
this.serverHost = serverHost; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
The pipeline component ${component} has executed the components ${components} with the following explanations: | ||
|
||
${componentsAndExplanations} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters