Hyrax no longer packages a default queuing back-end. Hyrax builds its jobs using Rails' ActiveJob framework, so you are free to use the queuing system of you choice (e.g. Resque, DelayedJob, Sidekiq) to manage long-running or slow processes. Flexibility and choice come with a cost, though, and there's some work involved in integrating whichever queueing back-end you select. This page offers guidance on installing and using Sidekiq to handle background jobs in your Hyrax app.
This file contains 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
source 'https://rubygems.org' | |
gem 'active-fedora', github: 'projecthydra/active_fedora', branch: 'master' | |
gem 'linkeddata' |
This file contains 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 Facet | |
def checked_one_liner?(field,value,params) | |
params['f'] && params['f'][field] && params['f'][field].include?(value) | |
end | |
def checked?(field,value,params) | |
params.has_key?('f') && params['f'].has_key?(field) && params['f'][field].include?(value) | |
end | |
end |
This file contains 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
<!-- Currently under embargo --> | |
<dams:Object rdf:about="http://library.ucsd.edu/ark:/20775/xx00000012"> | |
<dams:title> | |
<mads:Title> | |
<mads:authoritativeLabel>#12: Curator: Third Party Copyright, License Override (Embargoed)</mads:authoritativeLabel> | |
<mads:elementList rdf:parseType="Collection"> | |
<mads:MainTitleElement> | |
<mads:elementValue>#12: Curator: Third Party Copyright, License Override (Embargoed)</mads:elementValue> | |
</mads:MainTitleElement> | |
</mads:elementList> |
This file contains 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://data.archiveshub.ac.uk/id/archivalresource/gb1832-crck/crck2/3/34> <http://data.archiveshub.ac.uk/def/accessRestrictions> "Closed until 2061 in accordance with Data Protection laws. "@EN . | |
<http://data.archiveshub.ac.uk/id/archivalresource/gb162-mss.brit.emp.s.547> <http://data.archiveshub.ac.uk/def/accessRestrictions> "Bodleian reader's ticket required."@EN . | |
<http://data.archiveshub.ac.uk/id/archivalresource/gb29-eulms231> <http://data.archiveshub.ac.uk/def/accessRestrictions> "Usual EUL arrangements apply."@EN . | |
<http://data.archiveshub.ac.uk/id/archivalresource/gb271-gcpppower-b> <http://data.archiveshub.ac.uk/def/accessRestrictions> " Access is open to bona fide scholars by appointment only. "@EN . | |
<http://data.archiveshub.ac.uk/id/archivalresource/gb271-gcppturle> <http://data.archiveshub.ac.uk/def/accessRestrictions> " Access is open to bona fide scholars by appointment only. "@EN . | |
<http://data.archiveshub.ac.uk/id/archivalresource/gb162-mss.ind.ocn.s.341> <http://data.archiveshub.ac. |
This file contains 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
require 'json' | |
# test object: bb08540731 | |
# test a file with unique names | |
uniq_file = File.read('names_uniq_test.json') | |
json1 = JSON.parse(uniq_file) | |
names1 = json1['name_tesim'] |
This file contains 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
it "should support VALUES" do | |
# should support single value construct (less verbose form) | |
expect(subject.select | |
.where([:s, RDF::URI('http://purl.org/dc/terms/title'), :title]) | |
.values([:title], ["This title", "Another title"]).to_s) | |
.to eq "SELECT * WHERE { ?s <http://purl.org/dc/terms/title> ?o . VALUES ?title { 'This title' 'Another title' } }" | |
# should support single value construct (general form) | |
expect(subject.select | |
.where([:s, RDF::URI('http://purl.org/dc/terms/title'), :title]) |
This file contains 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
DBPedia record for UCSD RDF type listing | |
http://umbel.org/umbel/rc/University | |
http://dbpedia.org/class/yago/School108276720 | |
http://dbpedia.org/ontology/EducationalInstitution | |
http://umbel.org/umbel/rc/EducationalOrganization | |
http://umbel.org/umbel/rc/Organization | |
http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#Agent | |
http://www.w3.org/2002/07/owl#Thing | |
http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#SocialPerson | |
http://dbpedia.org/class/yago/Abstraction100002137 |
I hereby claim:
- I am mcritchlow on github.
- I am mcritchlow (https://keybase.io/mcritchlow) on keybase.
- I have a public key ASDyr0WKT0J_Ty-IximEu92jNyzBiz4IhUol2HTgmxKfBwo
To claim this, I am signing this object:
OlderNewer