PropertyConstraint pc= Constraints. propertyConstraint(uri("property")). withLabel("property-constraint"). withComment("A property constraint"). withCardinality(Cardinality.mandatory()). withNodeKind(NodeKind.NODE). withDatatype(uri("datatype")). withValueType(uri("valueType")). withAllowedValues( Literals.duration(13, TimeUnit.SECONDS), InversePropertyConstraint ipc= Constraints. inversePropertyConstraint(uri("inverseProperty")). withLabel("inverse-property-constraint"). withComment("An inverse property constraint"). withCardinality(Cardinality.unbound()). withNodeKind(NodeKind.NODE). withDatatype(uri("anotherDatatype")). withValueType(uri("anotherValueType")). withAllowedValues( Literals.duration(31,TimeUnit.DAYS), constraints(). withNodeShape(managedIndividual(dataSet, "individual", "template"), nodeShape). withTypeShape(uri("constrainedType"), typeShape);