Hi,

I am developing a program based on Jena/SHACL and I think I need a small adaptation.

What I want to achieve:
- analyze shacl shapes and generate java class files
- read shapes and data and instantiate objects representing the data

While doing that, I realized that the properties of the Constraint-implementations in `org.apache.jena.shacl.engine.constraint` are not accessible. E.g. in `NodeKindConstraint`, the field `kind` is private, and it has no getter method. In the current SHACL use case of jena, the Constraints don't need to be accessible (they just check their respective conditions). In my use case, I'll need to access that information for determining property types etc. (e.g by analyzing sh:nodeKind) and therefore need to access the constraints.

Would it be possible to make the Constraints' properties accessible with public getters?

I could prepare a PR if that's ok.

Best regards,
Florian

Reply via email to