Skip to content

Commit

Permalink
Also keep track of the hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw committed Apr 11, 2012
1 parent e885241 commit ab67392
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion targetOntology.php
Expand Up @@ -27,7 +27,10 @@ function level($classRow, $level, $ontology) {
if (!$ontology[$desc]) {
$counter = $counter + 1;
$ontology[$desc] = "http://www.openphacts.org/chembl/target/TARONT" . $counter;
echo " \"" . $desc . "\" => \"" . $ontology[$desc] . "\",\n";
echo " \"" . $desc . "\" => [\n";
echo " \"uri\" => \"" . $ontology[$desc] . "\",\n";
echo " \"higher\" => \"" . $higher . "\",\n";
echo " ],\n";
$ontology["ops:counter"] = $counter;
}
$ontology["ops:higher"] = $ontology[$desc];
Expand Down

0 comments on commit ab67392

Please sign in to comment.