File tree Expand file tree Collapse file tree 4 files changed +18
-5
lines changed Expand file tree Collapse file tree 4 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -7,4 +7,7 @@ xsi:schemaLocation="http://appengine.google.com/ns/1.0 http://googleappengine.go
77 <public-root >/public</public-root >
88 <sessions-enabled >true</sessions-enabled >
99 <threadsafe >true</threadsafe >
10+ <automatic-scaling >
11+ <max-concurrent-requests >50</max-concurrent-requests >
12+ </automatic-scaling >
1013</appengine-web-app >
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
2- <datastore-indexes
3- autoGenerate =" true" >
2+ <datastore-indexes autoGenerate =" true" >
43 <datastore-index kind =" term" ancestor =" false" source =" manual" >
54 <property name =" parent" direction =" asc" />
65 <property name =" name" direction =" asc" />
Original file line number Diff line number Diff line change @@ -71,9 +71,16 @@ rdf.prototype.buildTriple = function(term) {
7171 for ( var i in names ) {
7272 var jsonName = JSON . stringify ( names [ i ] ) ;
7373 if ( jsonName != undefined ) {
74- jsonName = jsonName . replace ( / \\ " / g, "" ) ;
75- this . turtle += '<' + this . uri + term . id + '> <http://www.w3.org/2000/01/rdf-schema#label> ' + jsonName + '@' + languages . getIso [ i ] . toLowerCase ( ) + ' .\n' ;
76- this . turtle += '<' + this . uri + term . id + '> <http://www.w3.org/2004/02/skos/core#prefLabel> ' + jsonName + '@' + languages . getIso [ i ] . toLowerCase ( ) + ' .\n' ;
74+ if ( term [ 'id' ] . indexOf ( 'ROOT' ) != - 1 ) {
75+ jsonName = jsonName . replace ( / \\ " / g, "" ) ;
76+ this . turtle += '<' + this . uri + term . id + '> <http://www.w3.org/2000/01/rdf-schema#label> ' + jsonName . slice ( 0 , - 1 ) + ' trait"' + '@' + languages . getIso [ i ] . toLowerCase ( ) + ' .\n' ;
77+ this . turtle += '<' + this . uri + term . id + '> <http://www.w3.org/2004/02/skos/core#prefLabel> ' + jsonName . slice ( 0 , - 1 ) + ' trait"' + '@' + languages . getIso [ i ] . toLowerCase ( ) + ' .\n' ;
78+ } else {
79+ jsonName = jsonName . replace ( / \\ " / g, "" ) ;
80+ this . turtle += '<' + this . uri + term . id + '> <http://www.w3.org/2000/01/rdf-schema#label> ' + jsonName + '@' + languages . getIso [ i ] . toLowerCase ( ) + ' .\n' ;
81+ this . turtle += '<' + this . uri + term . id + '> <http://www.w3.org/2004/02/skos/core#prefLabel> ' + jsonName + '@' + languages . getIso [ i ] . toLowerCase ( ) + ' .\n' ;
82+ }
83+
7784
7885 }
7986 }
@@ -396,6 +403,8 @@ rdf.prototype.buildNtriples = function(ontologyId) {
396403 } )
397404 . sort ( 'id' , 'DESC' )
398405 . each ( function ( ) {
406+ if ( this [ "Variable status" ] == 'deprecated' || this [ "Trait status" ] == 'deprecated' || this [ "Variable status" ] == 'deprecated' || this [ "Variable status" ] == 'deprecated' )
407+ return ;
399408 that . buildTriple ( this ) ;
400409 /*
401410 if(this.relationship) {
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ <h1>Banana Ontology</h1>
1616 < ul >
1717 < li > Rhiannon Crichton, Bioversity International</ li >
1818 < li > Leo Valette, Bioversity International</ li >
19+ < li > Guillaume Bauchet, BTI</ li >
1920 </ ul >
2021 </ td >
2122 < td >
@@ -30,6 +31,7 @@ <h1>Banana Ontology</h1>
3031 < a href ='http://www.iita.org/ '> < img src ='/images/IITA.jpg '/> </ a >
3132 </ td >
3233 < td >
34+ < a href ='http://bti.cornell.edu/ '> < img src ='/images/BTI_cornell.jpg '> </ a >
3335 </ td >
3436 < td >
3537< a href ='http://www.cgiar.org/our-research/cgiar-research-programs/cgiar-research-program-on-roots-tubers-and-bananas/ '> < img src ='/images/CRP_RTB.jpg ' /> </ a >
You can’t perform that action at this time.
0 commit comments