Skip to content

Commit fa1e227

Browse files
committed
few updates
update the banana ontology contributor information fix rdf output add automatic stalling
1 parent 8dabd03 commit fa1e227

File tree

4 files changed

+18
-5
lines changed

4 files changed

+18
-5
lines changed

WEB-INF/appengine-web.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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>

WEB-INF/datastore-indexes.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
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"/>

rdf.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff 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) {

skins/crop_projects/CO_325_banana_project.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)