Sha256: 48f248857984c8d9983d388410a92043bdfc27b29ab3c4eb8b2ef1fc5718bb9c

Contents?: true

Size: 329 Bytes

Versions: 39

Compression:

Stored size: 329 Bytes

Contents

require "delegate"

module Ddr::Models
  # Wraps an RDF term (RDF::Vocabulary::Term)
  class MetadataTerm < SimpleDelegator

    def qualified_name
      qname.join("_").to_sym
    end

    def unqualified_name
      qname.last
    end

    def predicate
      to_uri
    end

    def prefix
      qname.first
    end

  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
ddr-models-3.0.0.beta.16 lib/ddr/models/metadata/metadata_term.rb
ddr-models-3.0.0.beta.15 lib/ddr/models/metadata/metadata_term.rb
ddr-models-3.0.0.beta.14 lib/ddr/models/metadata/metadata_term.rb
ddr-models-3.0.0.beta.13 lib/ddr/models/metadata/metadata_term.rb
ddr-models-3.0.0.beta.12 lib/ddr/models/metadata/metadata_term.rb
ddr-models-3.0.0.beta.11 lib/ddr/models/metadata/metadata_term.rb
ddr-models-3.0.0.beta.10 lib/ddr/models/metadata/metadata_term.rb
ddr-models-3.0.0.beta.9 lib/ddr/models/metadata/metadata_term.rb
ddr-models-3.0.0.beta.8 lib/ddr/models/metadata/metadata_term.rb
ddr-models-3.0.0.beta.7 lib/ddr/models/metadata/metadata_term.rb
ddr-models-3.0.0.beta.6 lib/ddr/models/metadata/metadata_term.rb
ddr-models-3.0.0.beta.4 lib/ddr/models/metadata/metadata_term.rb
ddr-models-3.0.0.beta.3 lib/ddr/models/metadata/metadata_term.rb
ddr-models-3.0.0.beta.2 lib/ddr/models/metadata/metadata_term.rb
ddr-models-3.0.0.beta.1 lib/ddr/models/metadata/metadata_term.rb
ddr-models-3.0.0.alpha.4 lib/ddr/models/metadata/metadata_term.rb
ddr-models-3.0.0.alpha.3 lib/ddr/models/metadata/metadata_term.rb
ddr-models-3.0.0.alpha.2 lib/ddr/models/metadata/metadata_term.rb
ddr-models-3.0.0.alpha.1 lib/ddr/models/metadata/metadata_term.rb