Skip to content
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.

Commit

Permalink
assert VoID dataset "hasPart" to evidence if set
Browse files Browse the repository at this point in the history
Asserts the "Dataset hasPart Evidence" triple only if the
void_dataset_uri option is set when translating to RDF.

refs #66
  • Loading branch information
Anthony Bargnesi committed Dec 14, 2015
1 parent 400182c commit 4280b24
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/bel/translator/plugins/rdf/writer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ def <<(evidence)
statements.each do |statement|
@writer.write_statement(statement)
end
@writer.write_statement(RDF::Statement.new(@void_dataset_uri, RDF::DC.hasPart, evidence_uri))

if @void_dataset_uri
@writer.write_statement(RDF::Statement.new(@void_dataset_uri, RDF::DC.hasPart, evidence_uri))
end
end

def done
Expand Down

0 comments on commit 4280b24

Please sign in to comment.