lib/shex/algebra.rb in shex-0.3.0 vs lib/shex/algebra.rb in shex-0.4.0
- old
+ new
@@ -8,21 +8,19 @@
# @author [Gregg Kellogg](http://greggkellogg.net/)
module Algebra
autoload :And, 'shex/algebra/and'
autoload :Annotation, 'shex/algebra/annotation'
autoload :EachOf, 'shex/algebra/each_of'
- autoload :Inclusion, 'shex/algebra/inclusion'
+ autoload :External, 'shex/algebra/external'
autoload :Not, 'shex/algebra/not'
autoload :NodeConstraint, 'shex/algebra/node_constraint'
autoload :OneOf, 'shex/algebra/one_of'
autoload :Operator, 'shex/algebra/operator'
autoload :Or, 'shex/algebra/or'
- autoload :Satisfiable, 'shex/algebra/satisfiable'
autoload :Schema, 'shex/algebra/schema'
autoload :SemAct, 'shex/algebra/semact'
- autoload :External, 'shex/algebra/external'
- autoload :ShapeRef, 'shex/algebra/shape_ref'
+ autoload :ShapeExpression, 'shex/algebra/shape_expression'
autoload :Shape, 'shex/algebra/shape'
autoload :Start, 'shex/algebra/start'
autoload :Stem, 'shex/algebra/stem'
autoload :StemRange, 'shex/algebra/stem_range'
autoload :TripleConstraint, 'shex/algebra/triple_constraint'
@@ -48,19 +46,18 @@
def self.from_shexj(operator, options = {})
raise ArgumentError unless operator.is_a?(Hash)
klass = case operator['type']
when 'Annotation' then Annotation
when 'EachOf' then EachOf
- when 'Inclusion' then Inclusion
when 'NodeConstraint' then NodeConstraint
when 'OneOf' then OneOf
when 'Schema' then Schema
when 'SemAct' then SemAct
when 'Shape' then Shape
when 'ShapeAnd' then And
+ when 'ShapeExternal' then External
when 'ShapeNot' then Not
when 'ShapeOr' then Or
- when 'ShapeRef' then ShapeRef
when 'Stem' then Stem
when 'StemRange' then StemRange
when 'TripleConstraint' then TripleConstraint
when 'Wildcard' then StemRange
else raise ArgumentError, "unknown type #{operator['type']}"