Sha256: 8a4b04fb12203a4f6aebcb1faade259ed35cf5510b9e94955b3bf58fa733e51f

Contents?: true

Size: 627 Bytes

Versions: 6

Compression:

Stored size: 627 Bytes

Contents

module Spread2RDF
  module Schema
    module StatementMapping

      def statement_mapping_mode
        case
          when statement == :none then :ignore
          when statement == :none then :ignore
          when predicate.nil?     then :ignore
          when restriction_mode   then :restriction
          else                         :default
        end
      end

      def restriction_mode
        case statement
          when :restriction then RDF::OWL.hasValue
          when Hash         then restriction_mode[:restriction]
          else false
        end
      end


    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spread2rdf-0.1.3 lib/spread2rdf/schema/statement_mapping_schema.rb
spread2rdf-0.1.2 lib/spread2rdf/schema/statement_mapping_schema.rb
spread2rdf-0.1.1 lib/spread2rdf/schema/statement_mapping_schema.rb
spread2rdf-0.1.0 lib/spread2rdf/schema/statement_mapping_schema.rb
spread2rdf-0.0.2 lib/spread2rdf/schema/statement_mapping_schema.rb
spread2rdf-0.0.1 lib/spread2rdf/schema/statement_mapping_schema.rb