Skip to content

Commit 3818beb

Browse files
fixed the setting graph problem
1 parent 7570115 commit 3818beb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clinicaltrials/clinicaltrials.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ function parse_dir(){
179179
$this->process_file($file);
180180

181181
// make the dataset description
182-
$ouri = parent::getGraphURI(parent::getDatasetURI());
182+
$ouri = parent::getGraphURI();
183183
parent::setGraphURI(parent::getDatasetURI());
184184

185185
$rfile = "http://clinicaltrials.gov/ct2/show/".$trial_id."?resultsxml=true";
@@ -198,10 +198,10 @@ function parse_dir(){
198198
->setDataset("http://identifiers.org/clinicaltrials/");
199199

200200
parent::writeToReleaseFile($source_file->toRDF());
201-
parent::setGraphURI(parent::setDatasetURI($ouri));
201+
parent::setGraphURI($ouri);
202202
}
203203
}
204-
echo "Finished\n.";
204+
echo "Finished.".PHP_EOL;
205205
closedir($handle);
206206

207207
$output_file = (new DataResource($this))

0 commit comments

Comments
 (0)