All Downloads are FREE. Search and download functionalities are using the official Maven repository.

data-shapes-test-suite.tests.core.property.pattern-001.ttl Maven / Gradle / Ivy

The newest version!
@prefix dash:  .
@prefix ex:  .
@prefix mf:  .
@prefix owl:  .
@prefix rdf:  .
@prefix rdfs:  .
@prefix sh:  .
@prefix sht:  .
@prefix xsd:  .

ex:InvalidInstance1
  rdf:type ex:TestShape ;
  ex:property "Maria" ;
  rdfs:label "Invalid instance1" ;
.
ex:InvalidInstance2
  rdf:type ex:TestShape ;
  ex:property "john" ;
  rdfs:label "Invalid instance2" ;
.
ex:TestShape
  rdf:type rdfs:Class ;
  rdf:type sh:NodeShape ;
  rdfs:label "Test shape" ;
  sh:property ex:TestShape-property ;
.
ex:TestShape-property
  sh:path ex:property ;
  sh:datatype xsd:string ;
  sh:pattern "Joh" ;
.
ex:ValidInstance1
  rdf:type ex:TestShape ;
  ex:property "Hi Joh" ;
  ex:property "John" ;
  rdfs:label "Valid instance1" ;
.
<>
  rdf:type mf:Manifest ;
  mf:entries (
      
    ) ;
.

  rdf:type sht:Validate ;
  rdfs:label "Test of sh:pattern at property shape 001" ;
  mf:action [
      sht:dataGraph <> ;
      sht:shapesGraph <> ;
    ] ;
  mf:result [
      rdf:type sh:ValidationReport ;
      sh:conforms "false"^^xsd:boolean ;
      sh:result [
          rdf:type sh:ValidationResult ;
          sh:focusNode ex:InvalidInstance1 ;
          sh:resultPath ex:property ;
          sh:resultSeverity sh:Violation ;
          sh:sourceConstraintComponent sh:PatternConstraintComponent ;
          sh:sourceShape ex:TestShape-property ;
          sh:value "Maria" ;
        ] ;
      sh:result [
          rdf:type sh:ValidationResult ;
          sh:focusNode ex:InvalidInstance2 ;
          sh:resultPath ex:property ;
          sh:resultSeverity sh:Violation ;
          sh:sourceConstraintComponent sh:PatternConstraintComponent ;
          sh:sourceShape ex:TestShape-property ;
          sh:value "john" ;
        ] ;
    ] ;
  mf:status sht:approved ;
.




© 2015 - 2024 Weber Informatics LLC | Privacy Policy