Method: SPARQL::Algebra::Operator::Describe#to_sparql
- Defined in:
- lib/sparql/algebra/operator/describe.rb
#to_sparql(**options) ⇒ String
Returns a partial SPARQL grammar for this term.
81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/sparql/algebra/operator/describe.rb', line 81 def to_sparql(**) str = "DESCRIBE " str << if operands[0].empty? "*" else operands[0].map { |e| e.to_sparql(**) }.join(" ") end str << "\n" str << operands[1].to_sparql(top_level: true, project: nil, **) end |