Go to Redland Home - Language Bindings Home - Ruby API Home
Class Redland::QueryResult
In: rdf/redland/query.rb
Parent: Object

Methods

Public Class methods

[Source]

# File rdf/redland/query.rb, line 42
    def initialize()
    end

Public Instance methods

Get binding name for the current result

[Source]

# File rdf/redland/query.rb, line 52
    def binding_name(index)
      return Redland.librdf_query_results_get_binding_name(@query_results,index)
    end

Get one binding value for the current result

[Source]

# File rdf/redland/query.rb, line 57
    def binding_value(index)
      node = Redland.librdf_query_results_get_binding_value(@query_results,index)
      return Redland::Node.new_from_object(node)
    end

Get an array of bindings (?? confirm)

[Source]

# File rdf/redland/query.rb, line 46
    def bindings
      results = []
      (0...self.size).each{|i| binding_value( i ) }
    end

Get number of bindings so far

[Source]

# File rdf/redland/query.rb, line 63
    def size()
      return Redland.librdf_query_results_get_bindings_count(@query_results)
    end

Go to Redland Home - Language Bindings Home - Ruby API Home

Copyright 2004-2005 Dave Beckett, Institute for Learning and Research Technology, University of Bristol