class Ldpath::LoosePropertySelector
Attributes
property[R]
Public Class Methods
new(property)
click to toggle source
# File lib/ldpath/selectors.rb, line 91 def initialize(property) @property = property end
Public Instance Methods
evaluate_one(uri, context)
click to toggle source
# File lib/ldpath/selectors.rb, line 95 def evaluate_one(uri, context) return PropertySelector.new(property).evaluate_one(uri_context) unless defined? RDF::Reasoner context.query([uri, nil, nil]).lazy.select do |result| result.predicate.entail(:subPropertyOf).include? property end.map(&:object) end