@prefix sp: <http://spinrdf.org/sp#>.
@prefix spin: <http://spinrdf.org/spin#>.
@prefix ex: <ex:>.

ex:testClass a rdfs:Class ;
		spin:constraint [
				a sp:Ask ;
				sp:text """PREFIX ex: <ex:>
							ASK WHERE {?this ex:otherProp ?x}""" ;
				rdfs:label """Test constraint"""
		] .

ex:testSubj1 a ex:testClass ;
	ex:otherProp 5 .
