Module: Spread2RDF::Schema::StatementMapping
- Included in:
- Column, ColumnBlock
- Defined in:
- lib/spread2rdf/schema/statement_mapping_schema.rb
Instance Method Summary collapse
Instance Method Details
#restriction_mode ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/spread2rdf/schema/statement_mapping_schema.rb', line 15 def restriction_mode case statement when :restriction then RDF::OWL.hasValue when Hash then restriction_mode[:restriction] else false end end |
#statement_mapping_mode ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/spread2rdf/schema/statement_mapping_schema.rb', line 5 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 |