Sha256: 36f6ca132a6c0cd8c16336298fde72f0104065bf15321f111e6e3a835a0f17fc

Contents?: true

Size: 427 Bytes

Versions: 22

Compression:

Stored size: 427 Bytes

Contents

module Spira::Types

  ##
  # This type takes RDF Resource objects and provides RDF::URI objects for the
  # ruby representation.
  #
  # @see Spira::Type
  # @see http://rdf.rubyforge.org/RDF/URI.html
  class URI

    include Spira::Type

    def self.unserialize(value)
      RDF::URI(value)
    end

    def self.serialize(value)
      RDF::URI(value)
    end

    register_alias :uri
    register_alias RDF::URI

  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
spira-3.1.1 lib/spira/types/uri.rb
spira-3.1.0 lib/spira/types/uri.rb
spira-3.0.0 lib/spira/types/uri.rb
spira-2.1.0 lib/spira/types/uri.rb
spira-2.0.2 lib/spira/types/uri.rb
spira-2.0.1 lib/spira/types/uri.rb
spira-2.0.0 lib/spira/types/uri.rb
spira-1.1.1 lib/spira/types/uri.rb
spira-0.7.1 lib/spira/types/uri.rb
spira-0.7 lib/spira/types/uri.rb
spira-0.5.0 lib/spira/types/uri.rb
spira-0.0.12 lib/spira/types/uri.rb
spira-0.0.11 lib/spira/types/uri.rb
spira-0.0.10 lib/spira/types/uri.rb
spira-0.0.9 lib/spira/types/uri.rb
spira-0.0.8 lib/spira/types/uri.rb
spira-0.0.7 lib/spira/types/uri.rb
spira-0.0.6 lib/spira/types/uri.rb
spira-0.0.5 lib/spira/types/uri.rb
spira-0.0.4 lib/spira/types/uri.rb