Method: Lbp::Resource#value
- Defined in:
- lib/lbp/resource.rb
#value(property) ⇒ Object
should return a single resource identifier; and error if there is more than one property for this value
65 66 67 68 69 70 71 72 73 74 |
# File 'lib/lbp/resource.rb', line 65 def value(property) # should return a single resource identifier; and error if there is more than one property for this value value = @results.dup.filter(:p => RDF::URI(property)) if value.count > 0 value = value.first[:o] ResourceIdentifier.new(value) else nil end end |