Created
January 27, 2015 20:42
-
-
Save awead/73dff46f95ac30e1a4ff to your computer and use it in GitHub Desktop.
scholarsphere:x346d634h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<rdf:RDF xmlns:ns0="info:fedora/fedora-system:def/relations-external#" xmlns:ns1="info:fedora/fedora-system:def/model#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> | |
<rdf:Description rdf:about="info:fedora/scholarsphere:x346d634h"> | |
<ns1:hasModel rdf:resource="info:fedora/afmodel:GenericFile"></ns1:hasModel> | |
<ns0:isPartOf rdf:resource="info:fedora/scholarsphere:x346d619d"></ns0:isPartOf> | |
</rdf:Description> | |
</rdf:RDF> | |
irb(main):012:0> f = GenericFile.find("scholarsphere:x346d634h") | |
=> #<GenericFile pid: "scholarsphere:x346d634h", mime_type: "application/pdf", format_label: ["Portable Document Format"], file_size: ["1309183"], last_modified: ["2014:10:21 16:10:38-04:00"], filename: ["2006.001.Jones-Stolper.pdf"], original_checksum: ["8daaea4d5e7d94adf06a0d75b7612911"], rights_basis: [], copyright_basis: [], copyright_note: [], well_formed: ["true"], valid: ["true"], status_message: [], file_title: [], file_author: [], page_count: ["22"], file_language: [], word_count: [], character_count: [], paragraph_count: [], line_count: [], table_count: [], graphics_count: [], byte_order: [], compression: [], color_space: [], profile_name: [], profile_version: [], orientation: [], color_map: [], image_producer: [], capture_device: [], scanning_software: [], exif_version: [], gps_timestamp: [], latitude: [], longitude: [], character_set: [], markup_basis: [], markup_language: [], bit_depth: [], channels: [], data_format: [], offset: [], frame_rate: [], relative_path: "", depositor: "cej14", import_url: nil, date_uploaded: Tue, 21 Oct 2014, date_modified: Thu, 23 Oct 2014 13:06:08 -0400, related_url: ["http://www.achemenet.com/ressources/enligne/arta/pdf/2006.001.Jones-Stolper.pdf"], based_near: [], part_of: [], creator: ["Charles Ellwood Jones", "Matthew W. Stolper"], contributor: [], title: ["Fortification Texts Sold at the Auction of the Erlenmeyer Collection"], tag: [], description: ["ARTA 2006:001"], rights: ["http://creativecommons.org/licenses/by-nc/3.0/us/"], publisher: ["Achemenet"], date_created: ["2006"], subject: ["Achaemenid dynasty, 559-330 B.C."], resource_type: ["", "Article"], identifier: [], language: ["English"], proxy_depositor: nil, on_behalf_of: nil, batch_id: nil> | |
irb(main):013:0> f.batch_id | |
=> nil | |
irb(main):014:0> Batch.find("scholarsphere:x346d619d") | |
ActiveFedora::ObjectNotFoundError: Unable to find 'scholarsphere:x346d619d' in fedora. See logger for details. | |
from /opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/active-fedora-7.1.2/lib/active_fedora/digital_object.rb:39:in `rescue in find' | |
from /opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/active-fedora-7.1.2/lib/active_fedora/digital_object.rb:36:in `find' | |
from /opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/active-fedora-7.1.2/lib/active_fedora/relation/finder_methods.rb:172:in `load_from_fedora' | |
from /opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/active-fedora-7.1.2/lib/active_fedora/relation/finder_methods.rb:160:in `find_one' | |
from /opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/active-fedora-7.1.2/lib/active_fedora/relation/finder_methods.rb:187:in `find_with_ids' | |
from /opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/active-fedora-7.1.2/lib/active_fedora/relation/finder_methods.rb:59:in `find' | |
from /opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/active-fedora-7.1.2/lib/active_fedora/querying.rb:6:in `find' | |
from (irb):14 | |
from /opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/railties-4.1.7/lib/rails/commands/console.rb:90:in `start' | |
from /opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/railties-4.1.7/lib/rails/commands/console.rb:9:in `start' | |
from /opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/railties-4.1.7/lib/rails/commands/commands_tasks.rb:69:in `console' | |
from /opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/railties-4.1.7/lib/rails/commands/commands_tasks.rb:40:in `run_command!' | |
from /opt/heracles/deploy/scholarsphere/shared/bundle/ruby/2.1.0/gems/railties-4.1.7/lib/rails/commands.rb:17:in `<top (required)>' | |
from script/rails:6:in `require' | |
from script/rails:6:in `<main>' | |
irb(main):015:0> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment