SHACL 约束Constraint shapes · GB/T 48000.3 §5.3
将 OPF-O 第 8 章公理落地为可执行校验:唯一标识、枚举值、
功能性属性、层次结构。任何人可复跑
uv run python -m scripts.validate_semantic。
Turtle
/ns/opf-shapes.ttl
ConceptSchemeShape targetClass ConceptScheme
- The scheme carries language-tagged titles, at most one per language.
- The scheme carries exactly one version string.
- dcterms:modified, when present, is a single xsd:dateTime.
- The scheme declares its top concepts.
NotationUniquenessShape targetClass ProcessNode
PrecedesIrreflexiveShape targetClass ProcessNode
ProcessNodeShape targetClass ProcessNode
- Every process node carries exactly one skos:notation (its OPF id).
- Every process node carries language-tagged prefLabels, at most one per language.
- Every process node carries an English prefLabel.
- At most one skos:definition per language.
- opf:level is a single integer between 1 and 5.
- opf:domain is operating or management_support.
- Every process node belongs to the OPF concept scheme.
- Every process node cites at least one source framework.
- A node is either a top concept or has exactly one broader parent, never both.