Object
This class provides query language support for RDF models either via an adaptor class or direct by persistant storage.
You shouldn't use this. Used internally for cleanup.
# File rdf/redland/query.rb, line 36 def Query.create_finalizer(query) proc{|id| # "Finalizer on #{id}" #$log_final.info "closing query" Redland::librdf_free_query(query) } end
Constructor - create a new Query object query - the query string language - the name of the query language uri - the URI identifying the query language
# File rdf/redland/query.rb, line 17 def initialize(query,language=nil,uri=nil,base_uri=nil) @language = language @uri = uri @query = Redland.librdf_new_query($world.world,language,uri,query,base_uri) return nil if not @query ObjectSpace.define_finalizer(self,Query.create_finalizer(@query)) end
(C) Copyright 2004-2013 Dave Beckett, (C) Copyright 2004-2005 University of Bristol