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: |
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
<info:fedora/scholarsphere:6395wb555> <http://purl.org/dc/terms/title> "Leeman et al. 2014 JGR Data" . | |
<info:fedora/scholarsphere:6395wb555> <http://purl.org/dc/terms/creator> "John R. Leeman" . | |
<info:fedora/scholarsphere:6395wb555> <http://purl.org/dc/terms/description> "Data for:\r\nJournal: Journal of Geophysical Research: Solid Earth\r\n\r\nArticle title: \"On the Origin and Evolution of Electrical Signals During Frictional Stick-Slip in Sheared Granular Material\"" . | |
<info:fedora/scholarsphere:6395wb555> <http://purl.org/dc/terms/dateSubmitted> "2014-04-30Z"^^<http://www.w3.org/2001/XMLSchema#date> . | |
<info:fedora/scholarsphere:6395wb555> <http://purl.org/dc/terms/modified> "2014-04-30Z"^^<http://www.w3.org/2001/XMLSchema#date> . |
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
irb(main):018:0> f4.thumbnail.metadata.get_values(ActiveFedora::RDF::Fcrepo4.created) | |
=> [Fri, 16 Jan 2015 03:43:25 +0000] | |
irb(main):019:0> f4.thumbnail.metadata.set_value(ActiveFedora::RDF::Fcrepo4.created, "foo") | |
=> nil | |
irb(main):020:0> f4.thumbnail.metadata.get_values(ActiveFedora::RDF::Fcrepo4.created) | |
=> ["foo"] | |
irb(main):021:0> f4.thumbnail.metadata.save | |
NoMethodError: undefined method `local_attributes' for #<ActiveFedora::WithMetadata::MetadataNode:0x007fc8c9e8d340> | |
from /Users/awead/Projects/Github/psu-stewardship/scholarsphere/.bundle/ruby/2.1.0/gems/rdf-1.1.7/lib/rdf/mixin/enumerable.rb:693:in `method_missing' | |
from /Users/awead/Projects/Github/psu-stewardship/scholarsphere/.bundle/ruby/2.1.0/gems/rdf-1.1.7/lib/rdf/mixin/mutable.rb:175:in `method_missing' |
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
[16, 25] in /Users/awead/Projects/Github/projecthydra-labs/fedora-migrate/lib/fedora_migrate/rdf_datastream_mover.rb | |
16: save | |
17: end | |
18: | |
19: def migrate_rdf_triples | |
20: byebug | |
=> 21: target.resource << RDF::Reader.for(:ntriples).new(source.content) | |
22: end | |
23: |
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
~/Projects/Github/psu-stewardship/scholarsphere (fedora-4/migrate *%=)$ bundle exec cap demo deploy BRANCH_NAME=fedora-4/migrate | |
** Invoke demo (first_time) | |
** Execute demo | |
** Invoke load:defaults (first_time) | |
** Execute load:defaults | |
** Invoke rbenv:validate (first_time) | |
** Invoke rbenv:install (first_time) | |
** Execute rbenv:install | |
** Invoke rbenv:install_rbenv (first_time) | |
** Execute rbenv:install_rbenv |
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
~/Projects/Github/psu-stewardship/scholarsphere (fedora-4/migrate *%=)$ bundle exec cap demo deploy BRANCH_NAME=fedora-4/migrate | |
** Invoke demo (first_time) | |
** Execute demo | |
** Invoke load:defaults (first_time) | |
** Execute load:defaults | |
** Invoke rbenv:validate (first_time) | |
** Invoke rbenv:install (first_time) | |
** Execute rbenv:install | |
** Invoke rbenv:install_rbenv (first_time) | |
** Execute rbenv:install_rbenv |
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
GenericFilesController::create rescued ActionView::MissingTemplate | |
Missing template generic_files/jq_upload, application/jq_upload with {:locale=>[:en], :formats=>[:json], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :haml]}. Searched in: | |
* "/Users/awead/Projects/Github/psu-stewardship/scholarsphere/app/views" | |
* "/Users/awead/Projects/Github/psu-stewardship/scholarsphere/.bundle/ruby/2.1.0/gems/devise-3.2.4/app/views" | |
* "/Users/awead/Projects/Github/psu-stewardship/scholarsphere/.bundle/ruby/2.1.0/bundler/gems/sufia-81d7d2b23292/app/views" | |
* "/Users/awead/Projects/Github/psu-stewardship/scholarsphere/.bundle/ruby/2.1.0/gems/mailboxer-0.12.4/app/views" | |
* "/Users/awead/Projects/Github/psu-stewardship/scholarsphere/.bundle/ruby/2.1.0/gems/blacklight_advanced_search-5.1.2/app/views" | |
* "/Users/awead/Projects/Github/psu-stewardship/scholarsphere/.bundle/ruby/2.1.0/bundler/gems/browse-everything-d380e4b8c91a/app/views" | |
* "/Users/awead/Projects/Github/psu-stewardship/scholarsphere/. |
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
def has_verisons? | |
ActiveFedora.fedora.connection.get(versions_url) | |
true | |
rescue Ldp::Error | |
false | |
end | |
end |
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
curl -X PATCH -H "Content-type: application/sparql-update" --data-binary "insert data { <http://localhost:8983/fedora/rest/test/81/e3/aa/db/81e3aadb-e54e-423f-9ac3-85d96c726aa3/descMetadata/fcr:versions> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.jcp.org/jcr/mix/1.0versionable> . }" http://localhost:8983/fedora/rest/test/81/e3/aa/db/81e3aadb-e54e-423f-9ac3-85d96c726aa3/descMetadata/fcr:versions |
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
@prefix dc: <http://purl.org/dc/elements/1.1/> . | |
@prefix nt: <http://www.jcp.org/jcr/nt/1.0> . | |
@prefix foaf: <http://xmlns.com/foaf/0.1/> . | |
@prefix fcrepo: <http://fedora.info/definitions/v4/repository#> . | |
@prefix ns001: <http://purl.org/dc/terms/> . | |
@prefix test: <info:fedora/test/> . | |
@prefix fedoraconfig: <http://fedora.info/definitions/v4/config#> . | |
@prefix image: <http://www.modeshape.org/images/1.0> . | |
@prefix xs: <http://www.w3.org/2001/XMLSchema> . | |
@prefix xml: <http://www.w3.org/XML/1998/namespace> . |