Method: ActiveTriples::Relation#predicate

Defined in:
lib/active_triples/relation.rb

#predicateRDF::Term?

Gives the predicate used by the Relation. Values of this object are those that match the pattern ‘<rdf_subject> <predicate> [value] .`

Returns:

  • (RDF::Term, nil)

    the predicate for this relation; nil if no predicate can be found

See Also:



354
355
356
357
# File 'lib/active_triples/relation.rb', line 354

def predicate
  return property if property.is_a?(RDF::Term)
  property_config[:predicate] if is_property?
end