-
Notifications
You must be signed in to change notification settings - Fork 0
/
namespace-uri.rdfunit.ttl
40 lines (39 loc) · 1.73 KB
/
namespace-uri.rdfunit.ttl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rlog: <http://persistence.uni-leipzig.org/nlp2rdf/ontologies/rlog#> .
@prefix rutg: <http://rdfunit.aksw.org/data/generators#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rut: <http://rdfunit.aksw.org/ns/core#> .
@prefix rutp: <http://rdfunit.aksw.org/data/patterns#> .
@prefix rutt: <http://rdfunit.aksw.org/data/tests#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix vann: <http://purl.org/vocab/vann/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
rutt:ontologies-vann-preferredNamespaceUri
a rut:ManualTestCase ;
dcterms:description "All ontologies should have vann:preferredNamespaceUri matching their URI" ;
rut:appliesTo rut:Schema ;
rut:generated rut:ManuallyGenerated ;
rut:source <http://purl.org/vocab/vann/> ;
rut:sparqlWhere """ { ?this a owl:Ontology .
OPTIONAL { ?this <http://purl.org/vocab/vann/preferredNamespaceUri> ?vannUri }
FILTER (
!(str(?this) = str(?vannUri)) ||
!bound(?vannUri)
)} """ ;
rut:sparqlPrevalence """ SELECT (count(?this) AS ?total) WHERE {
?this a owl:Ontology . } """ ;
rut:resultAnnotation [
a rut:ResultAnnotation ;
rut:annotationProperty sh:predicate ;
rut:annotationValue <http://purl.org/vocab/vann/preferredNamespaceUri>
];
rut:resultAnnotation [
a rut:ResultAnnotation ;
rut:annotationProperty sh:object ;
rut:annotationValue """?vannUri""";
];
rut:testCaseLogLevel
rlog:ERROR .