Skip to content

Commit 9d5b2ab

Browse files
committed
test(data): update OWL-core ePO sample with embedded SHACL graph
For testing the use case of fetching advanced information beyond owl-core such as domain, range and min/max cardinality, using a combined OWL+SHACL artefact.
1 parent 612efb8 commit 9d5b2ab

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

tests/test_data/rdfs/epo/README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ Given the following versions of a dataset:
55
- **old:** `ePO_sample-4.0.0.orig.ttl`
66
- **new:** `ePO_sample-4.0.0.upd.ttl`
77

8+
The **new** file is a _combined_ OWL and SHACL file that contains also
9+
embedded SHACL data, for testing retrieval of certain constraint information
10+
for added resources, such as the domain, range and cardinality, which would
11+
otherwise not be supported/available in the OWL-core profile.
12+
813
The following are changes comparing **old** to **new**, where _redundant_
914
refers to redundant appearances in the existing diff'ing/reporting, and _not
1015
captured_ to the non-appearance thereof, due to one reason or another, that may
@@ -29,7 +34,7 @@ or may not be a bug:
2934
1. class **epo:AwardCriterion** added `rdfs:isDefinedBy` (redundant, from added class)
3035
1. class **epo:AdHocChannel** deleted `rdfs:isDefinedBy` (redundant, from deleted class)
3136
1. class **epo:AdHocChanel** moved `rdfs:isDefinedBy` to **epo:AwardCriterion** (redundant, part of added class)
32-
1. added objectProperty **epo:followsRulesSetBy**
37+
1. added objectProperty **epo:followsRulesSetBy** with domain `epo:PurchaseContract`, range `epo:FrameworkAgreement` and maxCardinality 1
3338
1. deleted objectProperty **epo:exposesChannel**
3439
1. objectProperty **epo:exposesInvoiceeChannel** added `rdfs:label`
3540
1. objectProperty **epo:followsRulesSetBy** added `skos:prefLabel` (redundant, from added objectProperty)

tests/test_data/rdfs/epo/ePO_sample-4.0.0.upd.ttl

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
@prefix time: <http://www.w3.org/2006/time#> .
1616
@prefix vann: <http://purl.org/vocab/vann/> .
1717
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
18+
@prefix core-shape: <http://data.europa.eu/a4g/data-shape#> .
19+
@prefix sh: <http://www.w3.org/ns/shacl#> .
1820

1921
:AccessTerm a owl:Class ;
2022
rdfs:isDefinedBy :core ;
@@ -123,3 +125,17 @@
123125
owl:versionIRI :core-4.0.0 ;
124126
owl:versionInfo "4.0.0" .
125127

128+
core-shape:epo-PurchaseContract a sh:NodeShape ;
129+
rdfs:label "Purchase contract" ;
130+
rdfs:comment "A Contract resulting from using a Dynamic Purchasing System Technique or Framework Agreement Technique." ;
131+
rdfs:isDefinedBy core-shape:core-shape ;
132+
sh:property core-shape:epo-PurchaseContract-epo-followsRulesSetBy,
133+
core-shape:epo-PurchaseContract-epo-resultsFromMiniCompetitionAwardOutcome ;
134+
sh:targetClass :PurchaseContract .
135+
136+
core-shape:epo-PurchaseContract-epo-followsRulesSetBy a sh:PropertyShape ;
137+
sh:class :FrameworkAgreement ;
138+
sh:maxCount 1 ;
139+
sh:name "Follows rules set by" ;
140+
sh:path :followsRulesSetBy ;
141+
sh:sparql [ sh:select "SELECT ?this ?that WHERE { ?this <http://data.europa.eu/a4g/ontology#followsRulesSetBy> ?that . ?that <http://data.europa.eu/a4g/ontology#followsRulesSetBy> ?this .}" ] .

0 commit comments

Comments
 (0)