Skip to content

Commit f08480c

Browse files
put in the right variable
1 parent 8a79516 commit f08480c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

sider/sider.php

+3-6
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,6 @@ function run() {
136136
parent::getWriteFile()->write($dataset_description);
137137
parent::getWriteFile()->close();
138138
echo "done!".PHP_EOL;
139-
140-
//reset graph URI to default value
141-
parent::setGraphURI($graph_uri);
142139
}
143140

144141
function GetPCFromFlat($id)
@@ -189,8 +186,8 @@ function se()
189186
$declared[$cui] = '';
190187
}
191188
if(!isset($declared[$stitch_flat])) {
192-
$pubchem_id = "pubchem.compound:".ltrim( substr($stitch_flat,4), "0");
193-
$stereo_id = "pubchem.compound:".ltrim( substr($stitch_stereo,4), "0");
189+
$pubchem_id = "pubchem.compound:".ltrim( substr($a[0],4), "0");
190+
$stereo_id = "pubchem.compound:".ltrim( substr($a[1],4), "0");
194191
parent::addRDF(
195192
parent::triplify($stitch_flat, "rdf:type", parent::getVoc()."Flat-Compound").
196193
parent::describeClass(parent::getVoc()."Flat-Compound", "Flat compound").
@@ -200,7 +197,7 @@ function se()
200197
$declared[$stitch_flat] = '';
201198
}
202199
if(!isset($declared[$stitch_stereo])) {
203-
$pubchem_id = "pubchem.compound:".ltrim( substr($stitch_stereo,4), "0");
200+
$pubchem_id = "pubchem.compound:".ltrim( substr($a[1],4), "0");
204201
parent::addRDF(
205202
parent::triplify($stitch_stereo, "rdf:type", parent::getVoc()."Stereo-Compound").
206203
parent::describeClass(parent::getVoc()."Stereo-Compound", "Stereo compound").

0 commit comments

Comments
 (0)