Skip to content

Commit

Permalink
Use the PRO ontology, for protein
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw committed Mar 2, 2012
1 parent a5e9130 commit 5c31df6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions namespaces.php
Expand Up @@ -15,6 +15,7 @@
$NMR = "http://www.nmrshiftdb.org/onto#";
$CHEMINF = "http://semanticscience.org/resource/";
$CHEBI = "http://purl.org/obo/owl/CHEBI#";
$PRO = "http://purl.obolibrary.org/obo/";

$ONTO = "http://rdf.farmbio.uu.se/chembl/onto/#";
$ACT = $rooturi . "activity/";
Expand Down
6 changes: 5 additions & 1 deletion targets.php
Expand Up @@ -19,7 +19,11 @@
while ($row = mysql_fetch_assoc($allIDs)) {
$target = $TRG . "t" . $row['tid'];
echo triple( $target, $RDF . "type", $ONTO . "Target" );
echo triple( $target, $ONTO . "hasTargetType", $TGT . $row['target_type'] );
if ($row['target_type'] = 'PROTEIN') {
echo triple( $target, $RDFS . "subClassOf", $PRO . "PR_000000001" );
} else {
echo triple( $target, $ONTO . "hasTargetType", $TGT . $row['target_type'] );
}
if ($row['organism'])
echo data_triple( $target, $ONTO . "organism", $row['organism'] );
if ($row['description'])
Expand Down

0 comments on commit 5c31df6

Please sign in to comment.