Module: ActiveFedora::Rdf::Indexing::ClassMethods

Defined in:
lib/active_fedora/rdf/indexing.rb

Instance Method Summary collapse

Instance Method Details

#prefix(dsid, name) ⇒ Object



46
47
48
49
# File 'lib/active_fedora/rdf/indexing.rb', line 46

def prefix(dsid, name)
  Deprecation.warn Indexing, "prefix is deprecated and will be removed in active-fedora 8.0.0.", caller
  "#{dsid.underscore}__#{name}".to_sym
end

#type(field) ⇒ Object

Gives the datatype for a column.



52
53
54
# File 'lib/active_fedora/rdf/indexing.rb', line 52

def type(field)
  config_for_term_or_uri(field).type
end