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

data-shapes-test-suite.tests.core.misc.message-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:TestShape
  rdf:type sh:NodeShape ;
  sh:datatype xsd:integer ;
  sh:message "Test message"@en ;
  sh:targetNode ex:InvalidNode ;
.
<>
  rdf:type mf:Manifest ;
  mf:entries (
      
    ) ;
.

  rdf:type sht:Validate ;
  rdfs:label "Test of custom sh:message 001" ;
  rdfs:comment """
  		Note: This test verifies that the sh:message is copied into sh:resultMessage.
  		To pass this test, the test harness needs to preserve all sh:resultMessage triples
  		that are mentioned in the 'expected' results graph.""" ;
  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:InvalidNode ;
          sh:resultMessage "Test message"@en ;
          sh:resultSeverity sh:Violation ;
          sh:sourceConstraintComponent sh:DatatypeConstraintComponent ;
          sh:sourceShape ex:TestShape ;
          sh:value ex:InvalidNode ;
        ] ;
    ] ;
  mf:status sht:approved ;
.




© 2015 - 2024 Weber Informatics LLC | Privacy Policy