@@ -136,9 +136,6 @@ function run() {
136
136
parent ::getWriteFile ()->write ($ dataset_description );
137
137
parent ::getWriteFile ()->close ();
138
138
echo "done! " .PHP_EOL ;
139
-
140
- //reset graph URI to default value
141
- parent ::setGraphURI ($ graph_uri );
142
139
}
143
140
144
141
function GetPCFromFlat ($ id )
@@ -189,8 +186,8 @@ function se()
189
186
$ declared [$ cui ] = '' ;
190
187
}
191
188
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 " );
194
191
parent ::addRDF (
195
192
parent ::triplify ($ stitch_flat , "rdf:type " , parent ::getVoc ()."Flat-Compound " ).
196
193
parent ::describeClass (parent ::getVoc ()."Flat-Compound " , "Flat compound " ).
@@ -200,7 +197,7 @@ function se()
200
197
$ declared [$ stitch_flat ] = '' ;
201
198
}
202
199
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 " );
204
201
parent ::addRDF (
205
202
parent ::triplify ($ stitch_stereo , "rdf:type " , parent ::getVoc ()."Stereo-Compound " ).
206
203
parent ::describeClass (parent ::getVoc ()."Stereo-Compound " , "Stereo compound " ).
0 commit comments