Class: RDF::Query
Instance Method Summary (collapse)
-
- (Boolean) ==(other)
Equivalence for Queries:.
-
- (Array) to_sse
Transform Query into an Array form of an SSE.
Instance Method Details
- (Boolean) ==(other)
Equivalence for Queries: Same Patterns Same Context
184 185 186 |
# File 'lib/sparql/algebra/extensions.rb', line 184 def ==(other) other.is_a?(RDF::Query) && patterns == other.patterns && context == context end |
- (Array) to_sse
Transform Query into an Array form of an SSE
If Query is named, it’s treated as a GroupGraphPattern, otherwise, a BGP
193 194 195 196 |
# File 'lib/sparql/algebra/extensions.rb', line 193 def to_sse res = [:bgp] + patterns.map(&:to_sse) (context ? [:graph, context, res] : res) end |