Skip to content

Commit 54d51f4

Browse files
author
Gaurav SinghaRoy
committed
added method to get url of retrieving subclasses url
1 parent a7a4b7a commit 54d51f4

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

app/assets/javascripts/resources/querybuilder.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,14 @@ QueryBuilder = {
139139
get_selected_class : function(){
140140
return $("#hdn_qb_class").val();
141141
},
142-
//this method returns a hashmap containing examples of a class
142+
//this method returns a url to retrieve examples of a class
143143
get_examples_action_url : function(class_uri){
144144
return "/query/class_examples?class="+class_uri+"&dataset="+QueryBuilder.datasets.get_selected();
145145
},
146+
//this method returns a url to subclasses examples of a class
147+
get_subclasses_action_url : function(class_uri){
148+
return "/query/class_subclasses?class="+class_uri+"&dataset="+QueryBuilder.datasets.get_selected();
149+
},
146150
select : function(class_uri, class_name){
147151
$("#hdn_qb_class").val(class_uri);
148152
$("#tbl_classes_search_result").hide("fast");
@@ -171,6 +175,9 @@ QueryBuilder = {
171175
}
172176
element.find("strong").after(element_append_html);
173177
});
178+
},
179+
add_subclasses_details : function(element,class_uri){
180+
174181
}
175182

176183
},

0 commit comments

Comments
 (0)