Method: ShEx.execute
- Defined in:
- lib/shex.rb
.execute(expression, queryable, focus, shape, format: 'shexc', **options) ⇒ Operand
Parse and validate the given ShEx ‘expression` string against `queriable`.
74 75 76 77 78 79 |
# File 'lib/shex.rb', line 74 def self.execute(expression, queryable, focus, shape, format: 'shexc', **) shex = self.parse(expression, .merge(format: format)) queryable = queryable || RDF::Graph.new shex.execute(focus, queryable, {focus => shape}, ) end |