@prefix ex: <http://example.org/>.
@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#>.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix sh: <http://www.w3.org/ns/shacl#>.
@prefix sht: <http://www.w3.org/ns/shacl-test#>.

<> a mf:Manifest;
  mf:entries (<lessThan-more-types>).

ex:InvalidInstance1 a ex:TestShape;
  ex:allowed 80;
  ex:value "40".

ex:InvalidInstance2 a ex:TestShape;
  ex:allowed "zazaza";
  ex:value ex:aaa.

ex:TestShape a rdfs:Class, sh:NodeShape;
  sh:property ex:TestShapeProperty.

ex:TestShapeProperty
  sh:lessThan ex:allowed;
  sh:path ex:value.

ex:ValidInstance1 a ex:TestShape;
  ex:allowed 70;
  ex:value 8.

<lessThan-more-types> a sht:Validate;
  rdfs:label "Test of various datatype comparisons when enforcing lessThan";
  mf:action [
      sht:dataGraph <>;
      sht:shapesGraph <>
    ];
  mf:result [ a sh:ValidationReport;
      sh:conforms false;
      sh:result [ a sh:ValidationResult;
          sh:focusNode ex:InvalidInstance1;
          sh:resultPath ex:value;
          sh:resultSeverity sh:Violation;
          sh:sourceConstraintComponent sh:LessThanConstraintComponent;
          sh:sourceShape ex:TestShapeProperty;
          sh:value "40"
        ], [ a sh:ValidationResult;
          sh:focusNode ex:InvalidInstance2;
          sh:resultPath ex:value;
          sh:resultSeverity sh:Violation;
          sh:sourceConstraintComponent sh:LessThanConstraintComponent;
          sh:sourceShape ex:TestShapeProperty;
          sh:value ex:aaa
        ]
    ].
