Skip to content

Commit

Permalink
Fix: only create an owl:sameAs to uniprot when we have an accession n…
Browse files Browse the repository at this point in the history
…umber
  • Loading branch information
egonw committed Mar 10, 2012
1 parent 473f6dd commit c997593
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion targets.php
Expand Up @@ -52,9 +52,10 @@
echo data_triple( $target, $DC . "identifier", $row['ec_number'] );
echo triple( $target, $OWL . "sameAs", "http://bio2rdf.org/ec:" . $row['ec_number'] );
}
if ($row['protein_accession'])
if ($row['protein_accession']) {
echo data_triple( $target, $DC . "identifier", "uniprot:" . $row['protein_accession'] );
echo triple( $target, $OWL . "sameAs", "http://bio2rdf.org/uniprot:" . $row['protein_accession'] );
}
if ($row['tax_id'])
echo triple( $target, $ONTO . "hasTaxonomy", "http://bio2rdf.org/taxonomy:" . $row['tax_id'] );

Expand Down

0 comments on commit c997593

Please sign in to comment.