Skip to content

Commit

Permalink
Only cite literature, when the data was published
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw committed Jan 18, 2012
1 parent d926982 commit 474768f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion activities.php
Expand Up @@ -15,7 +15,9 @@
while ($row = mysql_fetch_assoc($allIDs)) {
$activity = $ACT . "a" . $row['activity_id'];
echo triple( $activity, $RDF . "type", $ONTO . "Activity" );
echo triple( $activity, $CITO . "citesAsDataSource", $RES . "r" . $row['doc_id'] );
if ($row['doc_id'] != '-1') {
echo triple( $activity, $CITO . "citesAsDataSource", $RES . "r" . $row['doc_id'] );
}
echo triple( $activity, $ONTO . "onAssay", $ASS . "a" . $row['assay_id'] );
echo triple( $activity, $ONTO . "forMolecule", $MOL . "m" . $row['molregno'] );
if ($row['relation']) {
Expand Down

0 comments on commit 474768f

Please sign in to comment.