Simple Version Shapes for SKOS-AP-EU
Shape file metadata
http://publications.europa.eu/ontology/euvoc/euvocShapesVersioning
This is a set of shapes covering a small set of validation rules for "Versionned Things" which are instances using:
- dct:replaces and dct:isReplacedBy
- euvoc:startDate and euvoc:endDate
- euvoc:status
version:
EuVoc 1.1

If replaces
Shape metadata
http://publications.europa.eu/ontology/euvoc/euvocShapesVersioning#ObjectOfReplaces
If C2 replaces C1 then
->C2 has status deprecated or retired
->C1 has end date
->optionally (C1 is repladced by C2)
version:
EuVoc 1.1
Targeting nodes that are
Constraints on
node propoerty:
name:
is replaced by
min count:
1
name:
end date
min count:
1
max count:
1
name:
status
max count:
1
whole node:
a thing cannot replace itself

Reified property interval intersection
Shape metadata
http://publications.europa.eu/ontology/euvoc/euvocShapesVersioning#ReifiedPropertyIntervalIntersection
Reified property interval intersection; Chech any node which if has second level start/end dates then retrieves their intersections
version:
EuVoc 1.1
Targeting nodes that are
defined by:
select all the non blank nodes that tahe a start/endDate propoerty used at the second position on a propoerty path
Constraints on
whole node:
this constraint searches for overlapping intervals on reified propoerties

Subject of end date
Shape metadata
http://publications.europa.eu/ontology/euvoc/euvocShapesVersioning#SubjectOfEndDate
If C has an endDate -> it's status must be deprecated or retired
version:
EuVoc 1.1
Targeting nodes that are
Constraints on
node propoerty:
name:
status
min count:
1
max count:
1

Subject of is replaced by
Shape metadata
http://publications.europa.eu/ontology/euvoc/euvocShapesVersioning#SubjectOfIsReplacedBy
If C1 is replaced by C2 then
->C2 has status deprecated or retired
->C1 has end date
->optionally (C2 replaces C1)
version:
EuVoc 1.1
Targeting nodes that are
Constraints on
node propoerty:
name:
end date
min count:
1
max count:
1
name:
status
min count:
1
max count:
1
whole node:
a thing cannot be replaced by itself

Subject of status
Shape metadata
http://publications.europa.eu/ontology/euvoc/euvocShapesVersioning#SubjectOfStatus
If C has status Deprecated or Retired -> it has to have an end date
version:
EuVoc 1.1
Targeting nodes that are
defined by:
SELECT ?this WHERE { ?this euvoc:status ?st. FILTER (?st IN ( <http://publications.europa.eu/resource/authority/concept-status/DEPRECATED>, <http://publications.europa.eu/resource/authority/concept-status/RETIRED>) ) }
Constraints on
node propoerty:
name:
end date
min count:
1
max count:
1