Skip to content

Commit 7d68c17

Browse files
Update sgd.php
removed mapping file. added escapes for ids with commas
1 parent 21fea7a commit 7d68c17

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sgd/sgd.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ function process(){
126126
"complex" => "curation/literature/go_protein_complex_slim.tab",
127127
"interaction" => "curation/literature/interaction_data.tab",
128128
"phenotype" => "curation/literature/phenotype_data.tab",
129-
"pathways" => "curation/literature/biochemical_pathways.tab",
130-
"mapping" => "mapping"
129+
"pathways" => "curation/literature/biochemical_pathways.tab"#,
130+
#"mapping" => "mapping"
131131
);
132132

133133
$graph_uri = parent::getGraphURI();
@@ -468,7 +468,7 @@ function features()
468468
);
469469
}
470470
if($a[1] == "ORF" && $a[4] != '') {
471-
$p2 = ucfirst(strtolower(str_replace(array("(",")"), array("%28","%29"), $a[4])))."p";
471+
$p2 = ucfirst(strtolower(str_replace(array("(",")",","), array("%28","%29","%2C"), $a[4])))."p";
472472
$p2label = "$p2";
473473
$this->AddRDF(
474474
parent::triplify($sid, $this->getVoc()."encodes", "sgd:$p2").
@@ -507,7 +507,7 @@ function features()
507507

508508
// common names
509509
if($a[4]) {
510-
$nid = str_replace(array("(",")"), array("%28","%29"), $a[4]);
510+
$nid = str_replace(array("(",")",","), array("%28","%29","%2C"), $a[4]);
511511
$this->AddRDF(
512512
parent::triplifyString($sid, $this->getVoc()."standardName", $a[4]).
513513
parent::triplify($sid, "owl:sameAs", "sgd:$nid").
@@ -526,7 +526,7 @@ function features()
526526
// parent feature
527527
$parent_type = '';
528528
if($a[6]) {
529-
$parent = str_replace(array("(",")"," "), array("%28","%29","_"), $a[6]);
529+
$parent = str_replace(array("(",")"," ",","), array("%28","%29","_","%2C"), $a[6]);
530530
$this->addRDF(
531531
parent::triplify($sid, $this->getVoc()."is-proper-part-of", $this->getRes().$parent).
532532
parent::describeProperty($this->getVoc()."is-proper-part-of", "Relationship between an SGD entity and an entity it is a proper part of")
@@ -1125,7 +1125,7 @@ function pathways(){
11251125

11261126
$eid = '';
11271127
if($a[3]) { // there is a protein
1128-
$eid = ucfirst(strtolower($a[3]))."p";
1128+
$eid = ucfirst(strtolower(str_replace(",","%2C",$a[3])))."p";
11291129
$this->AddRDF(
11301130
parent::triplify($this->getRes().$pid, $this->getVoc()."has-participant", $this->getRes().$eid)
11311131
);

0 commit comments

Comments
 (0)