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

data-shapes-test-suite.tests.sparql.node.prefixes-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:  .


  sh:declare [
      rdf:type sh:PrefixDeclaration ;
      sh:namespace "http://datashapes.org/sh/tests/sparql/node/prefixes-001.test#"^^xsd:anyURI ;
      sh:prefix "ex" ;
    ] ;
.
ex:InvalidResource1
  ex:property  ;
.
ex:TestPrefixes
  owl:imports  ;
  sh:declare [
      sh:namespace "http://test.com/ns#"^^xsd:anyURI ;
      sh:prefix "test" ;
    ] ;
.
ex:TestSPARQL
  sh:prefixes ex:TestPrefixes ;
  sh:select """
		SELECT $this ?value
		WHERE {
			$this ex:property ?value .
            FILTER (?value = test:Value) .
		} """ ;
.
ex:TestShape
  rdf:type sh:NodeShape ;
  sh:sparql ex:TestSPARQL ;
  sh:targetNode ex:InvalidResource1 ;
  sh:targetNode ex:ValidResource1 ;
.
<>
  rdf:type mf:Manifest ;
  mf:entries (
      
    ) ;
.

  rdf:type sht:Validate ;
  rdfs:label "Test of sh:prefixes 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:InvalidResource1 ;
          sh:resultSeverity sh:Violation ;
          sh:sourceConstraint ex:TestSPARQL ;
          sh:sourceConstraintComponent sh:SPARQLConstraintComponent ;
          sh:sourceShape ex:TestShape ;
          sh:value  ;
        ] ;
    ] ;
  mf:status sht:approved ;
.




© 2015 - 2024 Weber Informatics LLC | Privacy Policy