Skip to content

Commit

Permalink
put in the right variable
Browse files Browse the repository at this point in the history
  • Loading branch information
micheldumontier committed Oct 7, 2015
1 parent 8a79516 commit f08480c
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions sider/sider.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,6 @@ function run() {
parent::getWriteFile()->write($dataset_description);
parent::getWriteFile()->close();
echo "done!".PHP_EOL;

//reset graph URI to default value
parent::setGraphURI($graph_uri);
}

function GetPCFromFlat($id)
Expand Down Expand Up @@ -189,8 +186,8 @@ function se()
$declared[$cui] = '';
}
if(!isset($declared[$stitch_flat])) {
$pubchem_id = "pubchem.compound:".ltrim( substr($stitch_flat,4), "0");
$stereo_id = "pubchem.compound:".ltrim( substr($stitch_stereo,4), "0");
$pubchem_id = "pubchem.compound:".ltrim( substr($a[0],4), "0");
$stereo_id = "pubchem.compound:".ltrim( substr($a[1],4), "0");
parent::addRDF(
parent::triplify($stitch_flat, "rdf:type", parent::getVoc()."Flat-Compound").
parent::describeClass(parent::getVoc()."Flat-Compound", "Flat compound").
Expand All @@ -200,7 +197,7 @@ function se()
$declared[$stitch_flat] = '';
}
if(!isset($declared[$stitch_stereo])) {
$pubchem_id = "pubchem.compound:".ltrim( substr($stitch_stereo,4), "0");
$pubchem_id = "pubchem.compound:".ltrim( substr($a[1],4), "0");
parent::addRDF(
parent::triplify($stitch_stereo, "rdf:type", parent::getVoc()."Stereo-Compound").
parent::describeClass(parent::getVoc()."Stereo-Compound", "Stereo compound").
Expand Down

0 comments on commit f08480c

Please sign in to comment.