Skip to content

Commit

Permalink
More fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Trey Terrell committed Aug 26, 2014
1 parent acc3b65 commit 1f76381
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/oregon_digital/bag_ingestible.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ def ingest_bag(ingester, assets)
def bag_exists?(bag)
ntriples = bag.tag_files.find{|x| x.include? "descMetadata.nt"}
graph = ::RDF::Graph.load(ntriples)
title = graph.query([nil, ::RDF::DC.title, nil]).first.try(:object).to_s
identifier = graph.query([nil, ::RDF::DC.identifier, nil]).first.try(:object).to_s
title_exists?(title, identifier)
title = graph.query([nil, ::RDF::DC.title, nil]).map{|x| x.object.to_s}
identifier = graph.query([nil, ::RDF::DC.identifier, nil]).map{|x| x.object.to_s}
title_exists?(title.first, identifier)
end

def title_exists?(title, identifier)
Expand Down

0 comments on commit 1f76381

Please sign in to comment.