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

data-shapes-test-suite.tests.core.property.property-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:Address
  rdf:type rdfs:Class ;
  rdfs:label "Address" ;
  rdfs:subClassOf rdfs:Resource ;
.
ex:City
  rdf:type rdfs:Class ;
  rdfs:label "City" ;
  rdfs:subClassOf rdfs:Resource ;
.
ex:InvalidAddress
  rdf:type ex:Address ;
  ex:city ex:InvalidCity ;
.
ex:InvalidPerson1
  rdf:type ex:Person ;
  ex:address ex:InvalidAddress ;
.
ex:InvalidPerson2
  rdf:type ex:Person ;
  ex:address ex:InvalidAddress ;
  ex:address ex:ValidAddress ;
.
ex:Person
  rdf:type rdfs:Class ;
  rdfs:label "Person" ;
  rdfs:subClassOf rdfs:Resource ;
.
ex:PersonShape
  rdf:type sh:NodeShape ;
  rdfs:label "Person shape" ;
  sh:property [
      sh:path ex:address ;
      sh:property ex:PersonShape-address-city ;
    ] ;
  sh:targetClass ex:Person ;
.
ex:PersonShape-address-city
  sh:path ex:city ;
  sh:class ex:City ;
.
ex:ProperCity
  rdf:type ex:City ;
  rdfs:label "Proper city" ;
.
ex:ValidAddress
  rdf:type ex:Address ;
  ex:city ex:ProperCity ;
.
ex:ValidPerson1
  rdf:type ex:Person ;
  ex:address ex:ValidAddress ;
.
<>
  rdf:type mf:Manifest ;
  mf:entries (
      
    ) ;
.

  rdf:type sht:Validate ;
  rdfs:label "Test of sh:property 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:InvalidAddress ;
          sh:resultPath ex:city ;
          sh:resultSeverity sh:Violation ;
          sh:sourceConstraintComponent sh:ClassConstraintComponent ;
          sh:sourceShape ex:PersonShape-address-city ;
          sh:value ex:InvalidCity ;
        ] ;
      sh:result [
          rdf:type sh:ValidationResult ;
          sh:focusNode ex:InvalidAddress ;
          sh:resultPath ex:city ;
          sh:resultSeverity sh:Violation ;
          sh:sourceConstraintComponent sh:ClassConstraintComponent ;
          sh:sourceShape ex:PersonShape-address-city ;
          sh:value ex:InvalidCity ;
        ] ;
    ] ;
  mf:status sht:approved ;
.




© 2015 - 2025 Weber Informatics LLC | Privacy Policy