Class: RDF::Tabular::Schema
- Defined in:
- lib/rdf/tabular/metadata.rb
Constant Summary collapse
- PROPERTIES =
{ :@id => :link, :@type => :atomic, columns: :array, foreignKeys: :array, primaryKey: :column_reference, }.freeze
- REQUIRED =
[].freeze
Constants inherited from Metadata
Metadata::DATATYPES, Metadata::INHERITED_PROPERTIES, Metadata::LOCAL_CONTEXT, Metadata::NAME_SYNTAX
Instance Attribute Summary
Attributes inherited from Metadata
#filenames, #id, #object, #parent, #url
Instance Method Summary collapse
-
#method_missing(method, *args) ⇒ Object
Logic for accessing elements as accessors.
Methods inherited from Metadata
#==, #[], #[]=, #base, #common_properties, #context, #dialect, #dialect=, #each, #each_row, #errors, for_input, #has_annotations?, #initialize, #inspect, #merge, #merge!, new, #normalize!, #normalize_datatype, #normalize_jsonld, open, #to_json, #type, #valid?, #valid_inherited_property?, #valid_natural_language_property?, #validate!
Methods included from Utils
Constructor Details
This class inherits a constructor from RDF::Tabular::Metadata
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *args) ⇒ Object
Logic for accessing elements as accessors
1450 1451 1452 1453 1454 1455 1456 |
# File 'lib/rdf/tabular/metadata.rb', line 1450 def method_missing(method, *args) if INHERITED_PROPERTIES.has_key?(method.to_sym) inherited_property_value(method.to_sym) else PROPERTIES.has_key?(method.to_sym) ? object[method.to_sym] : super end end |