You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The life-cycle of a ShexValidator and the ability of users to supply specialized ValidationContexts will dictate which attributes appear in a validator vs a context.
ShExMap needs access to the siblings and the arities of all expressions on the stack when any variable was bound.
Iovka and I discussed moving all state from the validator and making it static. Given that ShExMap needs access to the hierarchy of the AST (including cardinalities compiled out into TripleExprCardinalities), and that detailed error reporting could also benefit from such positioning, I'm currently tempted to move schema, data, and sorbeFactory from the context to the validator.
The text was updated successfully, but these errors were encountered:
ericprud
changed the title
Separation of state between [ShexValidator](https://github.com/fhircat/jena/blob/refactor-ast/jena-shex/src/main/java/org/apache/jena/shex/ShexValidator.java) and [ValidationContext](https://github.com/fhircat/jena/blob/refactor-ast/jena-shex/src/main/java/org/apache/jena/shex/validation/ValidationContext.java)
Separation of state between ShexValidator and ValidationContextJun 10, 2023
The life-cycle of a ShexValidator and the ability of users to supply specialized ValidationContexts will dictate which attributes appear in a validator vs a context.
currently:
ShexValidator:
ValidationContext:
ShExMap needs access to the siblings and the arities of all expressions on the stack when any variable was bound.
Iovka and I discussed moving all state from the validator and making it static. Given that ShExMap needs access to the hierarchy of the AST (including cardinalities compiled out into TripleExprCardinalities), and that detailed error reporting could also benefit from such positioning, I'm currently tempted to move
schema
,data
, andsorbeFactory
from the context to the validator.The text was updated successfully, but these errors were encountered: