Adding sparql icv constraints

I just learned something new today. You can add a sparql icv constraint along with your regular constraints by adding them like this.

[] a icv:Constraint;
icv:query “select * where sparql, sparql, sparql…”.

I don’t think it’s anywhere in the documentation. I previously had thought that the only way to add sparql constraints was running stardog-admin icv add -f SPARQL <constraint file>

Please let me know if this isn’t correct but I’m hoping that it is since it would be nice to be able to put all constraints in a single file. I guess I would have noticed it earlier if I had done a stardog-admin icv export -f TURTLE <mydb> with a sparql constraint defined.

I hope someone else finds this useful as well.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.