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

ex:TestClass a rdfs:Class ;
		spin:rule [
				a sp:Construct ;
				sp:text """PREFIX ex: <ex:>
							CONSTRUCT {?this ex:newProp ?y}
							WHERE {?this ex:prop ?x . bind(?x+1 as ?y)}""" 
		] .

ex:testSubj1 a ex:TestClass .
ex:testSubj2 a ex:TestClass ;
	ex:prop 5 .
