actory.namedNode(NS + name), null);
	var result = it.next().object;
	it.close();
	return result;
}</pre>
				<p>
					Note that this code is quite verbose because it uses only the very basic SHACL JavaScript API.
					In real-world examples, a higher level API with convenience methods is likely used.
				</p>
				<pre class="example-shapes" title="Rules example">
ex:RectangleShape
	a sh:NodeShape ;
	sh:targetClass ex:Rectangle ;
	sh:rule [
		a sh:JSRule ;    # This triple is optional
		sh:jsFunctionName "co