Skip to content

Commit 5514fbe

Browse files
committed
adding minor changes
1 parent edfe6d3 commit 5514fbe

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Diff for: dbpedia/dbpedia2bio2rdf.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ function read_dbpedia_properties($inFile, $outFile){
170170
}
171171
}elseif(count($prosite)){
172172
//get the triple
173-
$t = getLiteralTripleFromString($iupacname[0]);
173+
$t = getLiteralTripleFromString($prosite[0]);
174174
if(count($t)==3){
175175
//make a valid bio2rdf triple
176176
$triple = $t["subject"]." <http://bio2rdf.org/dbpedia_vocabulary:has_prosite_id> ".$t["object"].".\n";

Diff for: ipi/ipi2nt.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,13 @@ function parse_ipi_OSCODE_xref_file($inpath,$outpath){
148148
if(count($tair_ids)){
149149
foreach($tair_ids as $t){
150150
if($t != ""){
151-
$buf .= "<$entryURI> <http://bio2rdf.org/ipi_vocabulary:has_tair_id> <http://bio2rdf.org/tair:".$t."> .\n";
151+
if(!strstr($t,",")){
152+
$buf .= "<$entryURI> <http://bio2rdf.org/ipi_vocabulary:has_tair_id> <http://bio2rdf.org/tair:".$t."> .\n";
153+
}else{
154+
$x = explode(",",$t);
155+
$buf .= "<$entryURI> <http://bio2rdf.org/ipi_vocabulary:has_hgnc_id> <http://bio2rdf.org/hgnc:".$x[0]."> .\n";
156+
157+
}
152158
}
153159
}
154160
}

0 commit comments

Comments
 (0)