Sha256: c44fbcfa90204dfc603b0af25816d47a5142d360a4065650b1659d99da73b289

Contents?: true

Size: 1.16 KB

Versions: 7

Compression:

Stored size: 1.16 KB

Contents

module Hydra::Works::Characterization
  class DocumentSchema < ActiveTriples::Schema
    property :file_title, predicate: RDF::Vocab::DC11.title
    property :file_author, predicate: RDF::Vocab::DC11.creator
    property :page_count, predicate: RDF::Vocab::NFO.pageCount
    property :file_language, predicate: RDF::Vocab::DC11.language
    property :word_count, predicate: RDF::Vocab::NFO.wordCount
    property :character_count, predicate: RDF::Vocab::NFO.characterCount
    property :line_count, predicate: RDF::Vocab::NFO.lineCount
    property :character_set, predicate: RDF::URI.new("http://www.w3.org/2011/content#characterEncoding")
    property :markup_basis, predicate: RDF::URI.new("http://www.w3.org/2011/content#doctypeName")
    property :markup_language, predicate: RDF::URI.new("http://www.w3.org/2011/content#systemId")
    # properties without canonical URIs
    property :paragraph_count, predicate: RDF::URI.new("http://projecthydra.org/ns/odf/paragraphCount")
    property :table_count, predicate: RDF::URI.new("http://projecthydra.org/ns/odf/tableCount")
    property :graphics_count, predicate: RDF::URI.new("http://projecthydra.org/ns/odf/graphicsCount")
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hydra-works-0.8.1 lib/hydra/works/characterization/schema/document_schema.rb
hydra-works-0.8 lib/hydra/works/characterization/schema/document_schema.rb
hydra-works-0.7.1 lib/hydra/works/characterization/schema/document_schema.rb
hydra-works-0.7.0 lib/hydra/works/characterization/schema/document_schema.rb
hydra-works-0.6.0 lib/hydra/works/characterization/schema/document_schema.rb
hydra-works-0.5.0 lib/hydra/works/characterization/schema/document_schema.rb
hydra-works-0.4.0 lib/hydra/works/characterization/schema/document_schema.rb