module ActiveFedora::SemanticNode::ClassMethods
def predicate_lookup(predicate)
If predicate is not a Symbol, returns the predicate untouched
If predicate is a symbol, looks up the predicate in the PREDICATE_MAPPINGS
def predicate_lookup(predicate) if predicate.class == Symbol if PREDICATE_MAPPINGS.has_key?(predicate) return PREDICATE_MAPPINGS[predicate] else throw UnregisteredPredicateError end end return predicate end