Skip to content

Commit b6ce54e

Browse files
authored
Merge pull request #633 from geneontology/issue-620-change-default-closure
Issue 620 change default closure
2 parents 792a036 + 4467c34 commit b6ce54e

File tree

14 files changed

+245
-231
lines changed

14 files changed

+245
-231
lines changed

golr/solr/conf/schema.xml

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
<!-- bioentity: Gene of gene product ID. -->
2424
<!-- annotation: A unique (and internal) combination of bioentity and ontology class. -->
2525
<!-- general: The mangled internal ID for this entity. -->
26-
<!-- model_annotation: A unique (and internal) thing. -->
26+
<!-- model_annotation: CURIE form of annoton (molecular function individual) -->
2727
<!-- noctua_model_meta: The mangled internal ID for this entity. -->
2828
<!-- family: Family ID. -->
2929
<!-- bbop_ann_ev_agg: Gene/product ID. -->
@@ -126,6 +126,8 @@
126126
<field name="topology_graph_json" type="string" required="false" multiValued="false" indexed="false" stored="true"/>
127127
<!-- ontology: JSON blob form of the local relation transitivity graph. Uses various relations (including regulates, occurs in, capable_of). -->
128128
<field name="regulates_transitivity_graph_json" type="string" required="false" multiValued="false" indexed="false" stored="true"/>
129+
<!-- ontology: JSON blob form of the local relation transitivity graph. -->
130+
<field name="isa_partof_transitivity_graph_json" type="string" required="false" multiValued="false" indexed="false" stored="true"/>
129131
<!-- ontology: JSON blob form of all immediate neighbors of the term. -->
130132
<field name="neighborhood_graph_json" type="string" required="false" multiValued="false" indexed="false" stored="true"/>
131133
<!-- ontology: JSON blob form of all immediate neighbors of the term; in the case that there are too many neighbors to transport, the number will be artificially reduced. -->
@@ -201,14 +203,14 @@
201203
<!-- bioentity_for_browser: Taxonomic group -->
202204
<!-- annotation: Taxonomic group. -->
203205
<!-- annotation_for_browser: Taxonomic group. -->
204-
<!-- model_annotation: GAF column 13 (taxon). -->
206+
<!-- model_annotation: taxon of the entity in enabled_by -->
205207
<!-- bbop_ann_ev_agg: Column 13: taxon. -->
206208
<field name="taxon" type="string" required="false" multiValued="false" indexed="true" stored="true"/>
207209
<!-- bioentity: Taxonomic group -->
208210
<!-- bioentity_for_browser: Taxonomic group -->
209211
<!-- annotation: Taxonomic group and ancestral groups. -->
210212
<!-- annotation_for_browser: Taxonomic group and ancestral groups. -->
211-
<!-- model_annotation: Taxon derived from GAF column 13 and ncbi_taxonomy.obo. -->
213+
<!-- model_annotation: label for taxon -->
212214
<!-- bbop_ann_ev_agg: Derived from C13 + ncbi_taxonomy.obo. -->
213215
<field name="taxon_label" type="string" required="false" multiValued="false" indexed="true" stored="true"/>
214216
<!--An easily searchable (TextField tokenized) version of taxon_label.-->
@@ -218,14 +220,14 @@
218220
<!-- bioentity_for_browser: Taxonomic group and ancestral groups. -->
219221
<!-- annotation: Taxonomic group and ancestral groups. -->
220222
<!-- annotation_for_browser: Taxonomic group and ancestral groups. -->
221-
<!-- model_annotation: Taxon IDs derived from GAF column 13 and ncbi_taxonomy.obo. -->
223+
<!-- model_annotation: is_a closure of taxon -->
222224
<!-- bbop_ann_ev_agg: IDs derived from C13 + ncbi_taxonomy.obo. -->
223225
<field name="taxon_closure" type="string" required="false" multiValued="true" indexed="true" stored="true"/>
224226
<!-- bioentity: Taxonomic group and ancestral groups. -->
225227
<!-- bioentity_for_browser: Taxonomic group and ancestral groups. -->
226228
<!-- annotation: Taxonomic group and ancestral groups. -->
227229
<!-- annotation_for_browser: Taxonomic group and ancestral groups. -->
228-
<!-- model_annotation: Taxon label closure derived from GAF column 13 and ncbi_taxonomy.obo. -->
230+
<!-- model_annotation: labels of is_a closure. -->
229231
<!-- bbop_ann_ev_agg: Labels derived from C13 + ncbi_taxonomy.obo. -->
230232
<field name="taxon_closure_label" type="string" required="false" multiValued="true" indexed="true" stored="true"/>
231233
<!--An easily searchable (TextField tokenized) version of taxon_closure_label.-->
@@ -262,7 +264,7 @@
262264
<field name="annotation_class_list_map" type="string" required="false" multiValued="false" indexed="false" stored="true"/>
263265
<!-- bioentity: PANTHER families that are associated with this entity. -->
264266
<!-- annotation: PANTHER families that are associated with this entity. -->
265-
<!-- model_annotation: PANTHER family IDs that are associated with this entity. -->
267+
<!-- model_annotation: PANTHER family IDs that are associated with this entity, not yet populated. -->
266268
<!-- family: PANTHER family IDs that are associated with this entity. -->
267269
<!-- bbop_ann_ev_agg: Family IDs that are associated with this entity. -->
268270
<field name="panther_family" type="string" required="false" multiValued="false" indexed="true" stored="true"/>
@@ -413,52 +415,52 @@
413415
<!--An easily searchable (TextField tokenized) version of general_blob.-->
414416
<field name="general_blob_searchable" type="text_searchable" required="false" multiValued="false" indexed="true" stored="true"/>
415417
<copyField source="general_blob" dest="general_blob_searchable"/>
416-
<!-- model_annotation: ???. -->
418+
<!-- model_annotation: Same as id -->
417419
<!-- noctua_model_meta: The title(s) associated with the model. -->
418420
<field name="annotation_unit" type="string" required="false" multiValued="false" indexed="true" stored="true"/>
419-
<!-- model_annotation: ???. -->
421+
<!-- model_annotation: Generally not display but for debug purpose can be concatenation of gene product label, function, process etc -->
420422
<!-- noctua_model_meta: The title(s) associated with the model. -->
421423
<field name="annotation_unit_label" type="string" required="false" multiValued="false" indexed="true" stored="true"/>
422424
<!--An easily searchable (TextField tokenized) version of annotation_unit_label.-->
423425
<field name="annotation_unit_label_searchable" type="text_searchable" required="false" multiValued="false" indexed="true" stored="true"/>
424426
<copyField source="annotation_unit_label" dest="annotation_unit_label_searchable"/>
425-
<!-- model_annotation: ???. -->
427+
<!-- model_annotation: The CURIE of the model to which the annoton belongs -->
426428
<field name="model" type="string" required="false" multiValued="false" indexed="true" stored="true"/>
427-
<!-- model_annotation: ???. -->
429+
<!-- model_annotation: The dc:title of the model to which the annoton belongs -->
428430
<field name="model_label" type="string" required="false" multiValued="false" indexed="true" stored="true"/>
429431
<!--An easily searchable (TextField tokenized) version of model_label.-->
430432
<field name="model_label_searchable" type="text_searchable" required="false" multiValued="false" indexed="true" stored="true"/>
431433
<copyField source="model_label" dest="model_label_searchable"/>
432-
<!-- model_annotation: ???. -->
434+
<!-- model_annotation: The URI of the model to which the annoton belongs -->
433435
<field name="model_url" type="string" required="false" multiValued="false" indexed="true" stored="true"/>
434-
<!-- model_annotation: ???. -->
436+
<!-- model_annotation: Curation status -->
435437
<!-- noctua_model_meta: The editorial state of the model. -->
436438
<field name="model_state" type="string" required="false" multiValued="false" indexed="true" stored="true"/>
437439
<!-- model_annotation: set of all literal values of all annotation assertions in model -->
438440
<field name="annotation_value" type="string" required="false" multiValued="true" indexed="true" stored="true"/>
439-
<!-- model_annotation: ???. -->
441+
<!-- model_annotation: Value of dc:contributor fields for the annoton -->
440442
<!-- noctua_model_meta: Contributor identity. -->
441443
<field name="contributor" type="string" required="false" multiValued="true" indexed="true" stored="true"/>
442444
<!--An easily searchable (TextField tokenized) version of contributor.-->
443445
<field name="contributor_searchable" type="text_searchable" required="false" multiValued="true" indexed="true" stored="true"/>
444446
<copyField source="contributor" dest="contributor_searchable"/>
445-
<!-- model_annotation: Last modified -->
447+
<!-- model_annotation: Value of dc:date field for the annoton -->
446448
<!-- noctua_model_meta: Model last modification dates. -->
447449
<field name="model_date" type="string" required="false" multiValued="false" indexed="true" stored="true"/>
448450
<!--An easily searchable (TextField tokenized) version of model_date.-->
449451
<field name="model_date_searchable" type="text_searchable" required="false" multiValued="false" indexed="true" stored="true"/>
450452
<copyField source="model_date" dest="model_date_searchable"/>
451-
<!-- model_annotation: ??? -->
453+
<!-- model_annotation: The CURIE for the ro:enabled_by.rdf:type value of the annoton/MF individual -->
452454
<field name="enabled_by" type="string" required="false" multiValued="false" indexed="true" stored="true"/>
453455
<!--An easily searchable (TextField tokenized) version of enabled_by.-->
454456
<field name="enabled_by_searchable" type="text_searchable" required="false" multiValued="false" indexed="true" stored="true"/>
455457
<copyField source="enabled_by" dest="enabled_by_searchable"/>
456-
<!-- model_annotation: ??? -->
458+
<!-- model_annotation: Searchable label version of the gene product -->
457459
<field name="enabled_by_label" type="string" required="false" multiValued="false" indexed="true" stored="true"/>
458460
<!--An easily searchable (TextField tokenized) version of enabled_by_label.-->
459461
<field name="enabled_by_label_searchable" type="text_searchable" required="false" multiValued="false" indexed="true" stored="true"/>
460462
<copyField source="enabled_by_label" dest="enabled_by_label_searchable"/>
461-
<!-- model_annotation: Function acc/ID. -->
463+
<!-- model_annotation: This is the value of rdf:type for the annoton/MF instance -->
462464
<field name="function_class" type="string" required="false" multiValued="false" indexed="true" stored="true"/>
463465
<!-- model_annotation: Common function name. -->
464466
<field name="function_class_label" type="string" required="false" multiValued="false" indexed="true" stored="true"/>

javascript/web/Browse.js

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ var jquery_engine = require('bbop-rest-manager').jquery;
2727
var golr_manager = require('bbop-manager-golr');
2828
var golr_response = require('bbop-response-golr');
2929

30+
// Default closure relation. Starting setup to deal with future of
31+
// #620.
32+
//var default_closure_relation_set = 'regulates';
33+
var default_closure_relation_set = 'isa_partof';
34+
3035
// // Graphs.
3136
// var model = require('bbop-graph');
3237

@@ -40,33 +45,33 @@ var golr_response = require('bbop-response-golr');
4045

4146
// Manager creation wrapper (we use it a couple of times).
4247
function _create_manager(personality){
43-
48+
4449
// Create manager.
4550
var engine = new jquery_engine(golr_response);
4651
engine.method('GET');
4752
engine.use_jsonp(true);
4853
var manager = new golr_manager(gserv, gconf, engine, 'async');
49-
54+
5055
// Manager settings.
5156
var confc = gconf.get_class(personality);
5257
manager.set_personality(personality);
5358
manager.add_query_filter('document_category',
5459
confc.document_category(), ['*']);
55-
56-
return manager;
60+
61+
return manager;
5762
}
5863

5964
///
6065
///
6166
///
6267

6368
function BrowseInit(){
64-
69+
6570
///
6671
/// General setup--resource locations.
6772
/// Solr server, GOlr config, etc.
6873
///
69-
74+
7075
///
7176
/// The info shield.
7277
///
@@ -103,7 +108,7 @@ function BrowseInit(){
103108
uid,
104109
{
105110
'transitivity_graph_field':
106-
'regulates_transitivity_graph_json',
111+
default_closure_relation_set + '_transitivity_graph_json',
107112
'base_icon_url': sd.image_base,
108113
'info_icon': 'info',
109114
'current_icon': 'current_term',

0 commit comments

Comments
 (0)