Sha256: a045271b665942fcb3fa9c998d9452b63a25326b31d69c15ca7fe54ef070f6ca
Contents?: true
Size: 1.29 KB
Versions: 3
Compression:
Stored size: 1.29 KB
Contents
# These are the default properties defined on a resource that has WithMetadata # added to it. This is most commonly used with ActiveFedora::File, when we want # to add rdf triples to a non-rdf resource and have them persisted. module ActiveFedora::WithMetadata class DefaultSchema < ActiveTriples::Schema def self.legacy_ebucore_vocabulary @legacy_ebucore_vocabulary ||= Class.new(RDF::StrictVocabulary("http://www.ebu.ch/metadata/ontologies/ebucore/ebucore#")) do property :filename, comment: %(The name of the file containing the Resource.).freeze, domain: "ebucore:Resource".freeze, label: "File name".freeze, range: "xsd:string".freeze, type: "rdf:Property".freeze end end property :label, predicate: ::RDF::RDFS.label property :file_name, predicate: legacy_ebucore_vocabulary.filename property :file_size, predicate: ::RDF::Vocab::EBUCore.fileSize property :date_created, predicate: ::RDF::Vocab::EBUCore.dateCreated property :date_modified, predicate: ::RDF::Vocab::EBUCore.dateModified property :byte_order, predicate: SweetJPLTerms.byteOrder # This is a server-managed predicate which means Fedora does not let us change it. property :file_hash, predicate: ::RDF::Vocab::PREMIS.hasMessageDigest end end
Version data entries
3 entries across 3 versions & 1 rubygems