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
class Collection < ActiveFedora::Base | |
include Hydra::Works::CollectionBehavior | |
property :title, predicate: ::RDF::DC.title, multiple: false | |
end | |
=> nil | |
irb(main):005:0> Collection.create(title: 'Test') | |
=> #<Collection id: "0b8e39f7-38e9-45aa-a8ca-596aaa139b41", head: [], tail: [], title: "Test"> | |
irb(main):006:0> col = Collection.find('0b8e39f7-38e9-45aa-a8ca-596aaa139b41') | |
=> #<Collection id: "0b8e39f7-38e9-45aa-a8ca-596aaa139b41", head: [], tail: [], title: "Test"> |
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
HTTP PATCH (16.78ms) http://localhost:8983/fedora/rest/test/cv/43/nw/81/cv43nw81s | |
``` | |
DELETE { <> <http://purl.org/dc/terms/created> ?change . } | |
WHERE { <> <http://purl.org/dc/terms/created> ?change . } ; | |
DELETE { <#timespan_g70254963944300> <http://www.europeana.eu/schemas/edm/begin> ?change . } | |
WHERE { <#timespan_g70254963944300> <http://www.europeana.eu/schemas/edm/begin> ?change . } ; | |
DELETE { <#timespan_g70254963944300> <http://www.cidoc-crm.org/cidoc-crm/P79_beginning_is_qualified_by> ?change . } | |
WHERE { <#timespan_g70254963944300> <http://www.cidoc-crm.org/cidoc-crm/P79_beginning_is_qualified_by> ?change . } ; | |
DELETE { <#timespan_g70254963944300> <http://www.europeana.eu/schemas/edm/end> ?change . } | |
WHERE { <#timespan_g70254963944300> <http://www.europeana.eu/schemas/edm/end> ?change . } ; |
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
ActiveFedora::SolrService.instance.conn.delete_by_query '*:*', params: { 'softCommit' => true } | |
RSolr::Error::Http: RSolr::Error::Http - 500 Internal Server Error | |
Error: {'responseHeader'=>{'status'=>500,'QTime'=>0},'error'=>{'trace'=>'java.lang.NullPointerException | |
at org.apache.lucene.search.BooleanClause.hashCode(BooleanClause.java:99) | |
at java.util.AbstractList.hashCode(AbstractList.java:541) | |
at org.apache.lucene.search.BooleanQuery.hashCode(BooleanQuery.java:656) | |
at java.util.HashMap.hash(HashMap.java:338) | |
at java.util.HashMap.put(HashMap.java:611) | |
at org.apache.lucene.index.BufferedUpdates.addQuery(BufferedUpdates.java:198) | |
at org.apache.lucene.index.DocumentsWriterDeleteQueue$QueryArrayNode.apply(DocumentsWriterDeleteQueue.java:369) |
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
[ 2016-01-04 21:05:09.9429 27275/7f4e2a5f8700 age/Hel/Req/CheckoutSession.cpp:252 ]: [Client 5-75] Cannot checkout session because a spawning error occurred. The identifier of the error is db2ef6f7. Please see earlier logs for details about the error. | |
App 3179 stdout: | |
App 3179 stdout: | |
[ 2016-01-04 21:06:16.3138 27275/7f4e280da700 App/Implementation.cpp:303 ]: Could not spawn process for application /opt/goldenseal/current: An error occured while starting up the preloader. | |
Error ID: bde1995a | |
Error details saved to: /tmp/passenger-error-PeqtL4.html | |
Message from application: No such file to load -- badge_label_helper (LoadError) | |
/opt/goldenseal/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `require' | |
/opt/goldenseal/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:274:in `block in require' | |
/opt/goldenseal/shared/bundle/ruby/2.2.0/gems/activesupport-4.2.5/lib/active_support/dependencies.rb:240:in `load_dependency' |
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
$ traceroute 50.16.245.129 | |
traceroute to 50.16.245.129 (50.16.245.129), 64 hops max, 52 byte packets | |
1 192.168.2.1 (192.168.2.1) 4.257 ms 1.491 ms 2.137 ms | |
2 192.168.30.1 (192.168.30.1) 3.041 ms 2.999 ms 2.540 ms | |
3 67-220-14-129.usiwireless.com (67.220.14.129) 16.225 ms 19.675 ms 20.022 ms | |
4 g1-3.usi-cr03-mpls.usinternet.com (206.55.180.136) 16.870 ms * 21.815 ms | |
5 v102.usi-cr02-mpls.usinternet.com (216.17.51.25) 16.665 ms 25.702 ms * | |
6 10ge5-5.core1.msp1.he.net (216.66.73.173) 77.616 ms 22.860 ms 22.531 ms | |
7 100ge7-1.core1.chi1.he.net (184.105.223.177) 32.110 ms 26.738 ms 24.539 ms | |
8 equinix01-chi2.amazon.com (206.223.119.98) 23.775 ms |
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
Completed 500 Internal Server Error in 36ms (ActiveRecord: 0.7ms) | |
ActionView::MissingTemplate (Missing template pirates/show, application/show with {:locale=>[:en], :formats=>[:yaml], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :jbuilder]}. Searched in: | |
* "/Users/justin/workspace/my_app/app/views" | |
): | |
actionview (4.2.5) lib/action_view/path_set.rb:46:in `find' | |
actionview (4.2.5) lib/action_view/lookup_context.rb:121:in `find' | |
actionview (4.2.5) lib/action_view/renderer/abstract_renderer.rb:18:in `find_template' | |
actionview (4.2.5) lib/action_view/renderer/template_renderer.rb:40:in `determine_template' | |
actionview (4.2.5) lib/action_view/renderer/template_renderer.rb:8:in `render' |
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
$ rails new spotlight_demo -m https://raw.githubusercontent.com/sul-dlss/spotlight/master/template.rb | |
create | |
create README.rdoc | |
create Rakefile | |
create config.ru | |
create .gitignore | |
create Gemfile | |
create app | |
create app/assets/javascripts/application.js |
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
specs: | |
curation_concerns (0.3.0) | |
blacklight_advanced_search (>= 5.1.4, < 6.0) | |
breadcrumbs_on_rails (~> 2.3) | |
curation_concerns-models (= 0.3.0) | |
hydra-editor (~> 1.1) | |
hydra-head (~> 9.0) | |
jquery-ui-rails | |
rails_autolink | |
simple_form (~> 3.1) |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure(2) do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at | |
# https://docs.vagrantup.com. |
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 | |
irb(main):001:0> require 'rdf' | |
=> true | |
irb(main):002:0> require 'rdf/vocab' | |
=> true | |
irb(main):003:0> RDF::Vocab::DC.title | |
=> #<RDF::Vocabulary::Term:0x3fe339d69280 URI:http://purl.org/dc/terms/title> |