Skip to content

Commit

Permalink
Capture options in the demo
Browse files Browse the repository at this point in the history
  • Loading branch information
gadelrab committed May 6, 2019
1 parent 68b5539 commit f87499e
Showing 1 changed file with 55 additions and 1 deletion.
56 changes: 55 additions & 1 deletion Api/src/main/java/web/data/Query.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

import com.google.gson.Gson;

import java.util.ArrayList;
import java.util.List;

public class Query /*extends QueryExplanations*/{

String name;
Expand All @@ -17,11 +20,60 @@ public class Query /*extends QueryExplanations*/{
String object;
String rules;


List<String> kgs=new ArrayList<>();
List<String> text=new ArrayList<>();
List<String> textWeight=new ArrayList<>();

int numOfRules=5;
int numOfexplan=5;

public void setName(String name) {
this.name = name;
}

public void setId(int id) {
this.id = id;
}

public void setKgs(List<String> kgs) {
this.kgs = kgs;
}

public void setText(List<String> text) {
this.text = text;
}

public void setTextWeight(List<String> textWeight) {
this.textWeight = textWeight;
}

public void setNumOfRules(int numOfRules) {
this.numOfRules = numOfRules;
}

public void setNumOfexplan(int numOfexplan) {
this.numOfexplan = numOfexplan;
}

public List<String> getKgs() {
return kgs;
}

public List<String> getText() {
return text;
}

public List<String> getTextWeight() {
return textWeight;
}

public int getNumOfRules() {
return numOfRules;
}

public int getNumOfexplan() {
return numOfexplan;
}

// @Override
// public String getQuery() {
Expand All @@ -48,6 +100,8 @@ public Query(int id, String name, String subject, String predicate, String objec
this.object = object;
this.rules = rules;



}

public Query() {
Expand Down

0 comments on commit f87499e

Please sign in to comment.