I've found what I was looking for the other day in terms of validation: SHACL. The recommendation has just been released (last week), and there's a Java implementation. There is also a pure JavaScript implementation. It looks quite interesting as it is really made for validation (unlinke OWL reasoners) and is quite flexible (you can express shapes as SPARQL queries, you can require some strings to follow some regexp, etc.).
Something interesting (and a bit confusing at first) is that there is a spec to express shapes in JavaScript, but the Java implementation seems to handle it too, it's not specific to JavaScript implementations.
A note on advanced features also exists... I cannot say I understand everything, but it seems worth inspecting...
I've found what I was looking for the other day in terms of validation: SHACL. The recommendation has just been released (last week), and there's a Java implementation. There is also a pure JavaScript implementation. It looks quite interesting as it is really made for validation (unlinke OWL reasoners) and is quite flexible (you can express shapes as SPARQL queries, you can require some strings to follow some regexp, etc.).
Something interesting (and a bit confusing at first) is that there is a spec to express shapes in JavaScript, but the Java implementation seems to handle it too, it's not specific to JavaScript implementations.
A note on advanced features also exists... I cannot say I understand everything, but it seems worth inspecting...