Calling materialize_patterns on the SchemaView instance doesn't seem to have any effect. I suppose I would expect the pattern to be materialized on the slot_usage definition instead in this case.
>>> view = SchemaView('test2.yaml')
>>> view.schema.classes['FancyIdClass'].slot_usage['id'].pattern is None
True
>>> view.materialize_patterns()
>>> # I think I would expect this to not be None at this point
>>> view.schema.classes['FancyIdClass'].slot_usage['id'].pattern is None
True
If I have a schema that contains the following:
And I call the
materialize_patterns
method on aSchemaView
instance for that schema, I see that thepattern
meta-slot is populated as expected:However if the
structured_pattern
is instead set on theslot_usage
of a class:Calling
materialize_patterns
on theSchemaView
instance doesn't seem to have any effect. I suppose I would expect thepattern
to be materialized on theslot_usage
definition instead in this case.