Sha256: 8b9681e3c454ab755e4045d59d09734489821b98d9c9ca0bf3ca5738591dcbc9

Contents?: true

Size: 1.65 KB

Versions: 47

Compression:

Stored size: 1.65 KB

Contents

# frozen_string_literal: true

module Hyrax
  module BasicMetadata
    def self.included(work)
      work.property :label, predicate: ActiveFedora::RDF::Fcrepo::Model.downloadFilename, multiple: false
      work.property :relative_path, predicate: ::RDF::URI.new('http://scholarsphere.psu.edu/ns#relativePath'), multiple: false
      work.property :import_url, predicate: ::RDF::URI.new('http://scholarsphere.psu.edu/ns#importUrl'), multiple: false
      work.property :resource_type, predicate: ::RDF::Vocab::DC.type
      work.property :creator, predicate: ::RDF::Vocab::DC11.creator
      work.property :contributor, predicate: ::RDF::Vocab::DC11.contributor
      work.property :description, predicate: ::RDF::Vocab::DC11.description
      work.property :keyword, predicate: ::RDF::Vocab::DC11.relation
      work.property :license, predicate: ::RDF::Vocab::DC.rights
      work.property :rights_statement, predicate: ::RDF::Vocab::EDM.rights
      work.property :publisher, predicate: ::RDF::Vocab::DC11.publisher
      work.property :date_created, predicate: ::RDF::Vocab::DC.created
      work.property :subject, predicate: ::RDF::Vocab::DC11.subject
      work.property :language, predicate: ::RDF::Vocab::DC11.language
      work.property :identifier, predicate: ::RDF::Vocab::DC.identifier

      # Note: based_near is defined differently here than in Hyrax.
      work.property :based_near, predicate: ::RDF::Vocab::FOAF.based_near

      work.property :related_url, predicate: ::RDF::RDFS.seeAlso
      work.property :bibliographic_citation, predicate: ::RDF::Vocab::DC.bibliographicCitation
      work.property :source, predicate: ::RDF::Vocab::DC.source
    end
  end
end

Version data entries

47 entries across 47 versions & 2 rubygems

Version Path
zizia-5.5.0 spec/support/hyrax/basic_metadata.rb
zizia-5.4.0 spec/support/hyrax/basic_metadata.rb
zizia-5.3.0 spec/support/hyrax/basic_metadata.rb
zizia-5.2.0 spec/support/hyrax/basic_metadata.rb
zizia-5.1.0 spec/support/hyrax/basic_metadata.rb
zizia-5.0.1 spec/support/hyrax/basic_metadata.rb
zizia-5.0.0 spec/support/hyrax/basic_metadata.rb
zizia-4.6.0.alpha.01 spec/support/hyrax/basic_metadata.rb
zizia-4.5.4.alpha.01 spec/support/hyrax/basic_metadata.rb
zizia-4.5.3.alpha.01 spec/support/hyrax/basic_metadata.rb
zizia-4.5.2.alpha.01 spec/support/hyrax/basic_metadata.rb
zizia-4.5.1.alpha.01 spec/support/hyrax/basic_metadata.rb
zizia-4.4.1.alpha.01 spec/support/hyrax/basic_metadata.rb
zizia-4.4.0.alpha.01 spec/support/hyrax/basic_metadata.rb
zizia-4.3.1.alpha.01 spec/support/hyrax/basic_metadata.rb
zizia-4.2.0.alpha.01 spec/support/hyrax/basic_metadata.rb
zizia-4.1.0.alpha.01 spec/support/hyrax/basic_metadata.rb
zizia-4.0.4.alpha.01 spec/support/hyrax/basic_metadata.rb
zizia-3.1.0.alpha.01 spec/support/hyrax/basic_metadata.rb
zizia-3.0.0.alpha.01 spec/support/hyrax/basic_metadata.rb