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

data-shapes-test-suite.tests.core.node.and-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:InvalidRectangle1
  rdf:type ex:Rectangle ;
  ex:height 3 ;
.
ex:InvalidRectangle2
  rdf:type ex:Rectangle ;
  ex:width 2 ;
.
ex:Rectangle
  rdf:type rdfs:Class ;
  rdf:type sh:NodeShape ;
  rdfs:subClassOf rdfs:Resource ;
  sh:and (
      [
        sh:property [
            sh:path ex:width ;
            sh:minCount 1 ;
          ] ;
      ]
      [
        sh:property [
            sh:path ex:height ;
            sh:minCount 1 ;
          ] ;
      ]
    ) ;
.
ex:ValidRectangle1
  rdf:type ex:Rectangle ;
  ex:height 3 ;
  ex:width 2 ;
.
<>
  rdf:type mf:Manifest ;
  mf:entries (
      
    ) ;
.

  rdf:type sht:Validate ;
  rdfs:label "Test of sh:and at node 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:InvalidRectangle1 ;
          sh:resultSeverity sh:Violation ;
          sh:sourceConstraintComponent sh:AndConstraintComponent ;
          sh:sourceShape ex:Rectangle ;
          sh:value ex:InvalidRectangle1 ;
        ] ;
      sh:result [
          rdf:type sh:ValidationResult ;
          sh:focusNode ex:InvalidRectangle2 ;
          sh:resultSeverity sh:Violation ;
          sh:sourceConstraintComponent sh:AndConstraintComponent ;
          sh:sourceShape ex:Rectangle ;
          sh:value ex:InvalidRectangle2 ;
        ] ;
    ] ;
  mf:status sht:approved ;
.




© 2015 - 2025 Weber Informatics LLC | Privacy Policy