Skip to content

Commit

Permalink
Added CHEMBLxxx id's in the CHEMINF syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw committed May 1, 2012
1 parent 667bd40 commit 0f554da
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assays.php
Expand Up @@ -28,6 +28,10 @@
echo data_triple( $assay, $RDFS . "label", $row['chembl_id'] );
echo triple( $chembl, $OWL . "equivalentClass", $assay );
echo triple( $assay, $OWL . "equivalentClass", $chembl );
$chemblChemInfRes = $chembl . "/chemblid";
echo triple($chembl, $CHEMINF . "CHEMINF_000200", $chemblChemInfRes);
echo triple($chemblChemInfRes, $RDF . "type", $CHEMINF . "CHEMINF_000412");
echo data_triple($chemblChemInfRes, $CHEMINF . "SIO_000300", $row['chembl_id']);

if ($row['description']) {
# clean up description
Expand Down
4 changes: 4 additions & 0 deletions compounds.php
Expand Up @@ -54,6 +54,10 @@
echo triple( $chembl, $OWL . "equivalentClass", $molecule );
echo triple( $molecule, $OWL . "equivalentClass", $chembl );
echo data_triple( $molecule, $RDFS . "label", $chebiRow['chembl_id'] );
$chemblChemInfRes = $chembl . "/chemblid";
echo triple($chembl, $CHEMINF . "CHEMINF_000200", $chemblChemInfRes);
echo triple($chemblChemInfRes, $RDF . "type", $CHEMINF . "CHEMINF_000412");
echo data_triple($chemblChemInfRes, $CHEMINF . "SIO_000300", $chebiRow['chembl_id']);
}

# get the structure information
Expand Down
4 changes: 4 additions & 0 deletions targets.php
Expand Up @@ -29,6 +29,10 @@
echo triple( $chembl, $OWL . "equivalentClass", $target );
echo triple( $target, $OWL . "equivalentClass", $chembl );
echo data_triple( $target, $RDFS . "label", $row['chembl_id'] );
$chemblChemInfRes = $chembl . "/chemblid";
echo triple($chembl, $CHEMINF . "CHEMINF_000200", $chemblChemInfRes);
echo triple($chemblChemInfRes, $RDF . "type", $CHEMINF . "CHEMINF_000412");
echo data_triple($chemblChemInfRes, $CHEMINF . "SIO_000300", $row['chembl_id']);

if ($row['organism'])
echo data_triple( $target, $ONTO . "organism", $row['organism'] );
Expand Down

0 comments on commit 0f554da

Please sign in to comment.