Class: RDF::Query::Pattern
Instance Method Summary collapse
-
#executable? ⇒ Boolean
Returns
true
as this is executable. -
#ndvars ⇒ Array<RDF::Query::Variable>
Return the non-destinguished variables contained within this pattern.
-
#to_sxp(prefixes: nil, base_uri: nil) ⇒ String
Returns an S-Expression (SXP) representation.
-
#vars ⇒ Array<RDF::Query::Variable>
Return the variables contained within this pattern.
Instance Method Details
#executable? ⇒ Boolean
Returns true
as this is executable.
571 |
# File 'lib/sparql/algebra/extensions.rb', line 571 def executable?; true; end |
#ndvars ⇒ Array<RDF::Query::Variable>
Return the non-destinguished variables contained within this pattern
556 557 558 |
# File 'lib/sparql/algebra/extensions.rb', line 556 def ndvars vars.reject(&:distinguished?) end |
#to_sxp(prefixes: nil, base_uri: nil) ⇒ String
Returns an S-Expression (SXP) representation
579 580 581 |
# File 'lib/sparql/algebra/extensions.rb', line 579 def to_sxp(prefixes: nil, base_uri: nil) to_sxp_bin.to_sxp(prefixes: prefixes, base_uri: base_uri) end |
#vars ⇒ Array<RDF::Query::Variable>
Return the variables contained within this pattern
563 564 565 |
# File 'lib/sparql/algebra/extensions.rb', line 563 def vars variables.values end |