Length.lex;
	}
	else if($value.isURI()) {
		return $value.uri.length &lt;= $maxLength.lex;
	}
	else { // Blank node
		return false;
	}
}</pre>
				<pre class="example-shapes" title="Constraint component based on JavaScript">
sh:MaxLengthConstraintComponent
	a sh:ConstraintComponent ;
	sh:parameter [
		sh:path sh:maxLength ;
		sh:datatype xsd:integer ;
	] ;
	sh:validator ex:hasMaxLength .

ex:hasMaxLength
	a sh:JSValidator ;
	sh:message "Value has more than {$maxLength} characters" ;
	rdfs:comment """
		Note