Method: ShEx::Algebra::Start#validate!
- Defined in:
- lib/shex/algebra/start.rb
#validate! ⇒ Operator
expression must be a ShapeExpression
37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/shex/algebra/start.rb', line 37 def validate! case expression when ShapeExpression when RDF::Resource ref = schema.find(expression) ref.is_a?(ShapeExpression) || structure_error("#{json_type} must reference a ShapeExpression: #{ref}") else structure_error("#{json_type} must reference a ShapeExpression: #{ref}") end super end |