information-model 2.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. information_model-2.1.0/.gitignore +48 -0
  2. information_model-2.1.0/CHANGELOG.md +226 -0
  3. information_model-2.1.0/CONTRIBUTING.md +10 -0
  4. information_model-2.1.0/Conventions.md +6 -0
  5. information_model-2.1.0/LICENSE.md +427 -0
  6. information_model-2.1.0/PKG-INFO +390 -0
  7. information_model-2.1.0/README.md +362 -0
  8. information_model-2.1.0/bitbucket-pipelines.yml +380 -0
  9. information_model-2.1.0/docs/Competency Questions.md +799 -0
  10. information_model-2.1.0/docs/assets/images/IM_Overview_1.png +0 -0
  11. information_model-2.1.0/docs/assets/images/annotation_model_sample.png +0 -0
  12. information_model-2.1.0/docs/assets/images/document_reconstruction.png +0 -0
  13. information_model-2.1.0/docs/assets/images/overview-imv2.png +0 -0
  14. information_model-2.1.0/docs/assets/images/provision-content-verification.svg +193 -0
  15. information_model-2.1.0/docs/assets/images/provision_bindingness_supplement_type_pattern.png +0 -0
  16. information_model-2.1.0/docs/assets/images/provision_types_pattern.png +0 -0
  17. information_model-2.1.0/docs/assets/images/publication_document_model_sample.png +0 -0
  18. information_model-2.1.0/docs/assets/images/terms-model.png +0 -0
  19. information_model-2.1.0/docs/how-to-guides/index.md +18 -0
  20. information_model-2.1.0/docs/how-to-guides/provision-clause-content.md +147 -0
  21. information_model-2.1.0/docs/im-overview.md +14 -0
  22. information_model-2.1.0/docs/index.md +144 -0
  23. information_model-2.1.0/docs/javascripts/repo-version.js +153 -0
  24. information_model-2.1.0/docs/override/main.html +8 -0
  25. information_model-2.1.0/docs/override/partials/javascripts/outdated.html +7 -0
  26. information_model-2.1.0/docs/releases/changelog.md +5 -0
  27. information_model-2.1.0/docs/releases/releases-notes.md +149 -0
  28. information_model-2.1.0/information_model/__init__.py +4 -0
  29. information_model-2.1.0/information_model/_version.py +24 -0
  30. information_model-2.1.0/information_model/assets.py +73 -0
  31. information_model-2.1.0/information_model/jsonldcontext/api/metadata.json +58 -0
  32. information_model-2.1.0/information_model/jsonldcontext/schema.json +298 -0
  33. information_model-2.1.0/information_model/jsonldcontext/vocab.json +308 -0
  34. information_model-2.1.0/information_model/ontologies/core-ontology.ttl +704 -0
  35. information_model-2.1.0/information_model/ontologies/deprecated/TBX-ontology.ttl +354 -0
  36. information_model-2.1.0/information_model/ontologies/deprecated/deprecated-IEC-ISO-core-ontology.ttl +410 -0
  37. information_model-2.1.0/information_model/ontologies/external/README.md +5 -0
  38. information_model-2.1.0/information_model/ontologies/external/vocabulary.ttl +349 -0
  39. information_model-2.1.0/information_model/schemas/shacl/README.md +21 -0
  40. information_model-2.1.0/information_model/schemas/shacl/annotation-ontology.shacl.ttl +104 -0
  41. information_model-2.1.0/information_model/schemas/shacl/core-ontology.shacl.ttl +313 -0
  42. information_model-2.1.0/information_model/schemas/shacl/external/shacl-shacl.ttl +410 -0
  43. information_model-2.1.0/information_model/schemas/shacl/jsonld/common_shapes/activity.json +12 -0
  44. information_model-2.1.0/information_model/schemas/shacl/jsonld/common_shapes/agent.json +12 -0
  45. information_model-2.1.0/information_model/schemas/shacl/jsonld/common_shapes/distribution.json +72 -0
  46. information_model-2.1.0/information_model/schemas/shacl/jsonld/common_shapes/entity.json +35 -0
  47. information_model-2.1.0/information_model/schemas/shacl/jsonld/common_shapes/specificresource.json +141 -0
  48. information_model-2.1.0/information_model/schemas/shacl/jsonld/data_shapes/annotation.json +51 -0
  49. information_model-2.1.0/information_model/schemas/shacl/jsonld/data_shapes/clause.json +95 -0
  50. information_model-2.1.0/information_model/schemas/shacl/jsonld/data_shapes/provision.json +164 -0
  51. information_model-2.1.0/information_model/schemas/shacl/jsonld/data_shapes/publicationdocument.json +77 -0
  52. information_model-2.1.0/information_model/schemas/shacl/jsonld/data_shapes/term.json +48 -0
  53. information_model-2.1.0/information_model/schemas/shacl/jsonld/data_shapes/termentry.json +184 -0
  54. information_model-2.1.0/information_model/schemas/shacl/schemas.shacl.ttl +441 -0
  55. information_model-2.1.0/information_model/schemas/shacl/terminology-model.shacl.ttl +249 -0
  56. information_model-2.1.0/information_model/schemas/shacl/ttl/common_shapes/activity.ttl +6 -0
  57. information_model-2.1.0/information_model/schemas/shacl/ttl/common_shapes/agent.ttl +6 -0
  58. information_model-2.1.0/information_model/schemas/shacl/ttl/common_shapes/distribution.ttl +48 -0
  59. information_model-2.1.0/information_model/schemas/shacl/ttl/common_shapes/entity.ttl +22 -0
  60. information_model-2.1.0/information_model/schemas/shacl/ttl/common_shapes/specificresource.ttl +76 -0
  61. information_model-2.1.0/information_model/schemas/shacl/ttl/data_shapes/annotation.ttl +104 -0
  62. information_model-2.1.0/information_model/schemas/shacl/ttl/data_shapes/clause.ttl +177 -0
  63. information_model-2.1.0/information_model/schemas/shacl/ttl/data_shapes/provision.ttl +229 -0
  64. information_model-2.1.0/information_model/schemas/shacl/ttl/data_shapes/publicationdocument.ttl +100 -0
  65. information_model-2.1.0/information_model/schemas/shacl/ttl/data_shapes/term.ttl +45 -0
  66. information_model-2.1.0/information_model/schemas/shacl/ttl/data_shapes/termentry.ttl +227 -0
  67. information_model-2.1.0/information_model/taxonomies/bindingness-type.ttl +44 -0
  68. information_model-2.1.0/information_model/taxonomies/identifier-type.ttl +32 -0
  69. information_model-2.1.0/information_model/taxonomies/part-of-speech-type.ttl +68 -0
  70. information_model-2.1.0/information_model/taxonomies/provision-supplement-type.ttl +58 -0
  71. information_model-2.1.0/information_model/taxonomies/provision-type.ttl +38 -0
  72. information_model-2.1.0/information_model/taxonomies/publication-component-type.ttl +63 -0
  73. information_model-2.1.0/information_model/taxonomies/publication-type.ttl +124 -0
  74. information_model-2.1.0/information_model/taxonomies/term-form-type.ttl +85 -0
  75. information_model-2.1.0/information_model.egg-info/PKG-INFO +390 -0
  76. information_model-2.1.0/information_model.egg-info/SOURCES.txt +124 -0
  77. information_model-2.1.0/information_model.egg-info/dependency_links.txt +1 -0
  78. information_model-2.1.0/information_model.egg-info/requires.txt +14 -0
  79. information_model-2.1.0/information_model.egg-info/scm_file_list.json +121 -0
  80. information_model-2.1.0/information_model.egg-info/top_level.txt +1 -0
  81. information_model-2.1.0/pyproject.toml +64 -0
  82. information_model-2.1.0/setup.cfg +4 -0
  83. information_model-2.1.0/tests/__init__.py +0 -0
  84. information_model-2.1.0/tests/annotation_model_test/annotations_sample.ttl +109 -0
  85. information_model-2.1.0/tests/annotation_model_test/cq_query.sparql +39 -0
  86. information_model-2.1.0/tests/annotation_model_test/test_annotation_model.py +82 -0
  87. information_model-2.1.0/tests/annotation_model_test/test_selector_shapes.py +117 -0
  88. information_model-2.1.0/tests/annotation_model_test/test_specific_resource_entity.py +79 -0
  89. information_model-2.1.0/tests/conftest.py +128 -0
  90. information_model-2.1.0/tests/core_ontology_test.py +38 -0
  91. information_model-2.1.0/tests/data/schemas/shacl/jsonld/invalid/clause.json +42 -0
  92. information_model-2.1.0/tests/docs_utils/pin_browse_links.py +62 -0
  93. information_model-2.1.0/tests/docs_utils/test_pin_browse_links.py +39 -0
  94. information_model-2.1.0/tests/ontology_consistency_test/owlready2_reasoning_test.py +212 -0
  95. information_model-2.1.0/tests/provision_model_test/cq_query.sparql +21 -0
  96. information_model-2.1.0/tests/provision_model_test/test_provision_model.py +134 -0
  97. information_model-2.1.0/tests/publication_document_test/cq_query_publication_document_clause.sparql +25 -0
  98. information_model-2.1.0/tests/publication_document_test/cq_query_publication_document_distributions.sparql +32 -0
  99. information_model-2.1.0/tests/publication_document_test/cq_query_publication_document_editions.sparql +29 -0
  100. information_model-2.1.0/tests/publication_document_test/cq_query_publication_document_provisions.sparql +29 -0
  101. information_model-2.1.0/tests/publication_document_test/cq_query_publication_document_reconstruction.sparql +84 -0
  102. information_model-2.1.0/tests/publication_document_test/extract_content_sample_code.py +213 -0
  103. information_model-2.1.0/tests/publication_document_test/extract_content_sample_output.txt +56 -0
  104. information_model-2.1.0/tests/publication_document_test/extract_content_sample_results.md +14 -0
  105. information_model-2.1.0/tests/publication_document_test/extract_content_sample_selections.md +90 -0
  106. information_model-2.1.0/tests/publication_document_test/extract_content_sample_views.py +349 -0
  107. information_model-2.1.0/tests/publication_document_test/publication_document_sample.jsonld +802 -0
  108. information_model-2.1.0/tests/publication_document_test/publication_document_sample.ttl +557 -0
  109. information_model-2.1.0/tests/publication_document_test/publication_document_sample.xml +29 -0
  110. information_model-2.1.0/tests/publication_document_test/reconstruct_document_sample_code.py +140 -0
  111. information_model-2.1.0/tests/publication_document_test/reconstruct_document_sample_output.txt +13 -0
  112. information_model-2.1.0/tests/publication_document_test/test_publication_document_model.py +442 -0
  113. information_model-2.1.0/tests/quality_conventions/ontology_resource_annotations_test.py +145 -0
  114. information_model-2.1.0/tests/schemas_test/README.md +53 -0
  115. information_model-2.1.0/tests/schemas_test/test_generated_schemas_ttl.py +97 -0
  116. information_model-2.1.0/tests/schemas_test/test_jsonld_shacl_schemas.py +249 -0
  117. information_model-2.1.0/tests/schemas_test/test_samples_inference.py +46 -0
  118. information_model-2.1.0/tests/schemas_utils/schemas_conversion/README.md +64 -0
  119. information_model-2.1.0/tests/schemas_utils/schemas_conversion/generate_schemas_ttl.py +378 -0
  120. information_model-2.1.0/tests/schemas_utils/schemas_debugging/README.md +19 -0
  121. information_model-2.1.0/tests/schemas_utils/schemas_debugging/debug_shacl.py +498 -0
  122. information_model-2.1.0/tests/terms_test/cq_query.sparql +33 -0
  123. information_model-2.1.0/tests/terms_test/terms_sample.ttl +202 -0
  124. information_model-2.1.0/tests/terms_test/test_terms_model.py +83 -0
  125. information_model-2.1.0/tests/testing_functions.py +196 -0
  126. information_model-2.1.0/zensical.toml +402 -0
@@ -0,0 +1,48 @@
1
+ # Basic .gitignore
2
+
3
+ # IntelliJ (for those using it)
4
+ /.idea
5
+
6
+ # Visual Studio Code
7
+ .vscode/
8
+
9
+ # Generated by MacOS
10
+ .DS_Store
11
+
12
+ # Generated by Windows
13
+ Thumbs.db
14
+
15
+ # Generated by Protégé
16
+ catalog-v*.xml
17
+
18
+ # CI/CD to check and generate documentation about the ontology, when running locally, derive artefacts in this directory.
19
+ # Avoid committing those.
20
+ /output
21
+ /site/
22
+
23
+ # Environment variables
24
+ *.env
25
+
26
+ # Python virtual environment
27
+ .venv/
28
+
29
+ # Python build / packaging artefacts
30
+ *.egg-info/
31
+
32
+ # Python cache
33
+ __pycache__/
34
+ *.py[cod]
35
+
36
+ # Pytest cache
37
+ .pytest_cache/
38
+
39
+ # Coverage reports
40
+ .coverage
41
+ htmlcov/
42
+
43
+ # Build artefacts
44
+ build/
45
+ dist/
46
+
47
+ # Generated by setuptools-scm at build/install time
48
+ information_model/_version.py
@@ -0,0 +1,226 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/), and this project adheres to [Semantic Versioning](https://semver.org/)
6
+
7
+
8
+ ## [2.1.0] - 2026-11-24
9
+
10
+ Changes since `2.0.0`.
11
+
12
+ ### Added
13
+
14
+ #### Core ontology
15
+ - Publication document properties `smart:publicationNumber`, `smart:publicationReference`
16
+ and `smart:projectStage`.
17
+ - Representation properties `smart:revision` and `smart:hasSectionNumber` (domain
18
+ `oa:SpecificResource`: section numbers belong to a representation of the document).
19
+ - `smart:noteToEntry` (subproperty of `skos:note`) for notes to entry of a TermEntry.
20
+ - `smart:startSelector` and `smart:endSelector`, equivalent to `oa:hasStartSelector` and
21
+ `oa:hasEndSelector`, to link an `oa:RangeSelector` to its boundary selectors.
22
+ - `smart:IdentifierType` class for identifier systems.
23
+ - Provision types constrained per class with `owl:hasValue` restrictions: Instruction,
24
+ Permission, Recommendation and Requirement are governing provisions; Capability,
25
+ ExternalConstraint, Possibility and Statement are assertional provisions. The bindingness
26
+ type is not tied to the class: it follows from the element of the document the provision
27
+ belongs to, as a `skos:scopeNote` of `smart:hasBindingnessType` explains.
28
+
29
+ #### External vocabulary
30
+ - Declarations, for documentation and tests, of the external terms the model uses:
31
+ - W3C Web Annotation: `oa:RangeSelector`, `oa:TextPositionSelector`,
32
+ `oa:TextQuoteSelector`, `oa:hasStartSelector`, `oa:hasEndSelector`, `oa:refinedBy`,
33
+ `oa:start`, `oa:end`, `oa:exact`, `oa:prefix`, `oa:suffix`;
34
+ - SKOS and SKOS-XL: `skos:Concept`, `skosxl:Label`, `skosxl:prefLabel`,
35
+ `skosxl:altLabel`, `skosxl:literalForm`;
36
+ - W3C PROV: `prov:Derivation`, `prov:qualifiedDerivation`, `prov:entity`;
37
+ - DCMI and DCAT: `dcterms:title`, `dcterms:abstract`, `dcterms:issued`,
38
+ `dcterms:language`, `dcterms:relation`, and its subproperties `dcterms:references`
39
+ and `dcat:distribution`;
40
+ - `bibo:edition`;
41
+ - schema.org identifiers: `schema:identifier`, `schema:PropertyValue`,
42
+ `schema:propertyID` (a string literal such as `"urn"`).
43
+ - `oa:Annotation`, `oa:ResourceSelection`, `oa:Selector`, `dcat:Distribution`,
44
+ `spdx:Checksum` and `spdx:ChecksumAlgorithm` are subclasses of `smart:Entity`.
45
+ - The W3C Web Annotation selector collections `oa:List`, `oa:Composite` and `oa:Choice`
46
+ are declared in the external vocabulary and in `vocab.json` only: the SHACL schemas do
47
+ not support them yet.
48
+
49
+ #### Taxonomies
50
+ - Identifier type taxonomy (`identifier-type.ttl`) with the concept `urn`.
51
+ - `publication-type:amendment`.
52
+ - `rdfs:isDefinedBy` on all concepts.
53
+
54
+ #### SHACL schemas
55
+ - Modular JSON-LD SHACL schemas, each identified by an IRI and importing the schemas it
56
+ needs:
57
+ - data shapes: `annotation`, `clause`, `provision`, `publicationdocument`, `term` and
58
+ `termentry`;
59
+ - common shapes: `activity`, `agent`, `distribution`, `entity` and `specificresource`.
60
+ - Main constraints:
61
+ - `ProvisionShape` targets `smart:Provision` and its eight subclasses, so a resource
62
+ typed only `smart:Provision` is validated too;
63
+ - Provision, Clause, TermEntry and PublicationDocument have at least one `dcat:distribution`,
64
+ validated by `ProvisionDistributionShape`, `ClauseDistributionShape`,
65
+ `TermEntryDistributionShape` or `PublicationDocumentDistributionShape`;
66
+ - Provision, Clause and TermEntry are `dcterms:isPartOf` at least one PublicationDocument,
67
+ and a Provision or a TermEntry is also part of at least one Clause (at least two
68
+ `dcterms:isPartOf` values). A Clause value of `dcterms:isPartOf` is the direct parent
69
+ clause, not every enclosing clause;
70
+ - Clause and PublicationDocument have a `dcterms:title`, at most one per language;
71
+ - a Term has exactly one `skosxl:literalForm`, at most one term form type and one part of
72
+ speech;
73
+ - a Term is the preferred, admitted or deprecated term of a TermEntry, not several of
74
+ these (`sh:disjoint`), and each note to entry or example has at most one text per
75
+ language;
76
+ - a TermEntry references other term entries (`dcterms:references`), and a
77
+ Provision, a Clause or a TermEntry has at most one bindingness type, as
78
+ `smart:hasBindingnessType` is functional; `smart:deprecatedLabel` relates a TermEntry to a Term (domain and range);
79
+ - a Provision's provision type must match its class (SPARQL constraint);
80
+ - a TermEntry has a `skos:definition`, at most one per language;
81
+ - every distribution has a media type, a byte size and a checksum; Provision, Clause, TermEntry and
82
+ PublicationDocument distributions have a download URL, and PublicationDocument
83
+ distributions a language; a Provision distribution has exactly one publication
84
+ component type;
85
+ - Provision fragments are selected with an `oa:RangeSelector` of two XPath selectors,
86
+ refined by an `oa:TextPositionSelector`; Clause fragments with an
87
+ `oa:XPathSelector`;
88
+ - a Provision links to a related TermEntry, PublicationDocument or Clause with
89
+ `dcterms:references`. `dcterms:relation` itself is not constrained: with RDFS
90
+ inference, every `dcat:distribution` and `dcterms:references` value is also a
91
+ `dcterms:relation`.
92
+ - A local copy of the W3C SHACL-SHACL shapes (SHACL Recommendation, 2017) to meta-validate
93
+ the schemas.
94
+ - `schemas.shacl.ttl`, a Turtle serialization of all the JSON-LD schemas, generated from
95
+ them and in sync with them (regenerate with
96
+ `tests/schemas_utils/schemas_conversion/generate_schemas_ttl.py`).
97
+ - `schemas/shacl/ttl/`, with the same structure as `schemas/shacl/jsonld/`: one generated,
98
+ self-contained Turtle file per JSON-LD schema, holding its shapes and the shapes of the
99
+ schemas it imports.
100
+
101
+ #### Tests
102
+ - The sample data is also validated against every data schema with RDFS and OWL RL
103
+ inference (pySHACL), with the ontologies and taxonomies as ontology graph. This checks
104
+ that the schemas still accept the data once entailments are materialized, for example
105
+ that every `dcat:distribution` is also a `dcterms:relation`.
106
+ - Tests for the selector, distribution and identifier constraints. They start from valid
107
+ data, so each invalid case fails for its own reason only.
108
+ - A test that fails when a generated Turtle schema is out of sync with the JSON-LD
109
+ schemas.
110
+ - Annotation tests: every core ontology resource has a `skos:prefLabel`, a
111
+ `skos:definition` and `rdfs:isDefinedBy`; every external vocabulary term has a
112
+ definition; every taxonomy concept has a `skos:prefLabel`, a `skos:definition`, a
113
+ `skos:inScheme` and `rdfs:isDefinedBy`; labels, definitions and notes have a language
114
+ tag; `rdfs:seeAlso` values are IRIs.
115
+ - The test fixtures that load the ontologies and taxonomies guess each file's RDF format
116
+ from its own extension, instead of relying on a failed guess from an unrelated name.
117
+
118
+ #### JSON-LD contexts
119
+ - `https://w3id.org/standards/smart/jsonldcontext/vocab` (`vocab.json`) for Information
120
+ Model data. Values of `seeAlso` are IRIs (`"@type": "@id"`), as in `schema.json`.
121
+ - `https://w3id.org/standards/smart/jsonldcontext/schema` (`schema.json`) for the SHACL
122
+ schemas.
123
+ - `https://w3id.org/standards/smart/api/jsonldcontext/metadata` (`api/metadata.json`) for
124
+ SMART Content API metadata.
125
+
126
+ #### Infrastructure and documentation
127
+ - Persistent `w3id.org` redirects for the ontology, taxonomies, JSON-LD contexts and SHACL
128
+ schemas; the `smart` and `smartsh` prefixes registered on prefix.cc.
129
+ - Documentation sites published on every tag: the developer documentation
130
+ (`/docs/im/dev`, built with Zensical and versioned with mike) and the ontology reference
131
+ (`/docs/im/browse`, generated with OntoSpy, which skips the SHACL Turtle files).
132
+ - Each version of the ontology reference publishes the raw files under `raw/`: the
133
+ ontology, taxonomies, JSON-LD contexts and SHACL schemas, in JSON-LD and in Turtle.
134
+ - 2.1.0 release notes.
135
+ - Package versioning from git tags with setuptools-scm, `information_model.__version__`,
136
+ and a PyPI publishing pipeline. The `publish-existing-tag` custom pipeline also publishes
137
+ to PyPI, after checking that the tag points at the commit being built. The mike fork is
138
+ installed separately, not through the `docs` extra, since PyPI rejects direct URL
139
+ dependencies.
140
+ - README instructions to generate the versioned documentation locally with mike.
141
+ - Installation instructions (pip, uv, use of the packaged files, access without Python) in
142
+ the README and in the Getting Started page of the documentation.
143
+ - The documentation's Download links and header source link go to the package files on
144
+ [PyPI](https://pypi.org/project/information-model/#history), and outside a versioned build
145
+ the header shows the package's latest version on PyPI.
146
+ - The CHANGELOG is a page of the developer documentation, and its header shows the version
147
+ being read. Each version of the documentation links to the same version of the ontology
148
+ reference: the pipeline pins the links before building it
149
+ (`tests/docs_utils/pin_browse_links.py`).
150
+ - The pipeline generates the Turtle SHACL schemas from the JSON-LD schemas: on a push to a
151
+ branch other than `main` that changes the generator's inputs, the generator or the
152
+ Turtle files (a manual edit is overwritten), it commits the changed files back, and the
153
+ documentation and package builds regenerate them before building.
154
+ - This CHANGELOG.
155
+
156
+ ### Changed
157
+ - The JSON-LD SHACL schemas are the reference schemas. The Turtle shapes
158
+ `core-ontology.shacl.ttl` (publication document, provision, clause, activity and agent
159
+ schemas),
160
+ `terminology-model.shacl.ttl` (term entry and term schemas) and
161
+ `annotation-ontology.shacl.ttl` (annotation schema) are generated from them, with the
162
+ shapes of the schemas these import, instead of being written by hand. Constraints they
163
+ had beyond the JSON-LD schemas, e.g. on `dcterms:hasVersion`, `dcterms:replaces` or
164
+ `dcterms:format`, are dropped.
165
+ - Section numbers move from the Clause to its representation:
166
+ `smart:hasSectionNumber` is validated on the Clause distribution, not on the Clause.
167
+ - Notes to entry of a TermEntry use `smart:noteToEntry` instead of `skos:scopeNote`;
168
+ examples use `skos:example`.
169
+ - `dcterms:title` is declared as a datatype property instead of an annotation property.
170
+ - The core ontology header no longer has a `dcterms:title`: its name is given by
171
+ `rdfs:label`, as in the taxonomies.
172
+ - `smart:usedInCountry` has a definition (the country in which a term is used, as an
173
+ ISO 3166-1 alpha-2 code); its explanations are `skos:scopeNote` values instead of
174
+ `rdfs:comment`.
175
+ - `dcterms:references` is declared in the external vocabulary, as a subproperty of
176
+ `dcterms:relation`, instead of in the core ontology.
177
+ - `smart:hasPublicationComponentType` is no longer restricted to Provision and
178
+ ProvisionSupplement, so it can classify representations (fragments).
179
+ - Ontology and taxonomy `owl:versionInfo` set to `2.1.0`.
180
+ - Python 3.11 or later is required.
181
+ - The README scope describes the current model; the Competency Questions show each SHACL
182
+ schema in Turtle and JSON-LD tabs, and their queries and result tables match the sample
183
+ data.
184
+ - A new How-to guides section, with a guide to get and validate the content of a Provision or a
185
+ Clause from its authoritative XML file: a script evaluates their selectors (XPath, or start and
186
+ end XPath with offsets) on a sample XML file with lxml, which is added to the `tests` extra, and
187
+ checks the SHA-256 checksum of each selected content. Tests check that it returns the
188
+ content, byte size and checksum of each clause and provision of the sample. The guide also
189
+ shows the results as a table and the selected text marked in the sample XML; both views are
190
+ generated from the sample data, and a test checks that they are up to date.
191
+ - The Provision, Clause and PublicationDocument distributions of the sample data have the
192
+ media type `application/zip`.
193
+
194
+ ### Removed
195
+ - The unused versioning sample data and its query from the tests. They used terms the
196
+ model does not define, such as `dcterms:hasVersion`.
197
+
198
+ ### Fixed
199
+ - Missing annotations: every core ontology resource has a `skos:prefLabel`, a
200
+ `skos:definition` and `rdfs:isDefinedBy`, and the external vocabulary and taxonomies have
201
+ definitions for all their terms. Every taxonomy concept has a `skos:prefLabel` (added to
202
+ `provision-supplement-type:example` and `provision-supplement-type:footnote`).
203
+ - Missing `@en` language tags on labels and definitions, in the core ontology (e.g.
204
+ `smart:Agent`, `smart:Requirement`), the external vocabulary and the bindingness type
205
+ taxonomy.
206
+ - `rdfs:seeAlso` links given as text instead of IRIs, in the core ontology, the
207
+ publication type taxonomy and the term form type taxonomy.
208
+ - Typos, e.g. "orgnization" in definitions and `skos:preLabel` for `skos:prefLabel` on
209
+ `dcat:downloadURL`.
210
+ - The document reconstruction diagram shows `smart:hasSectionNumber` on the representation
211
+ of a Clause (`oa:SpecificResource`) instead of on the Clause.
212
+ - A syntax error (a missing `;`) that prevented the deprecated `TBX-ontology.ttl` from
213
+ being parsed.
214
+ - Competency Questions queries declare every prefix they use (`rdfs`, `skos`, `dcat`), and
215
+ the provision types query lists both IEC and ISO sources.
216
+
217
+ ## [1.0.0] - 2025-06-01
218
+
219
+ ### Changed
220
+ - All ontology IRIs base have changed with release 1.0.0
221
+ - We now use [w3id](https://w3id.org/) instead of [purl](https://purl.org/).
222
+ - This is caused by frequent recent outages of purl.org and lack for features for joint enterprise collaborative development.
223
+ - Older IRIs start with: `https://purl.org/smart-standards/`
224
+ - Newer IRIs start with: `https://w3id.org/standards/smart/ontologies/`
225
+ - This applies to the TBX and Core ontologies, see examples.
226
+ - Existing data is not affected by this change.
@@ -0,0 +1,10 @@
1
+ # Contributing to the Information Model
2
+
3
+
4
+ ## Found a Bug ?
5
+
6
+ Something wrong? Inform us of a bug or problem with the current version of the Information Model at this [form](https://smartsdu.atlassian.net/jira/software/form/7137542a-576c-46b2-b11f-6b054446e116).
7
+
8
+ ## Got a Question or Feddback ?
9
+
10
+ The IEC & ISO Information Model for SMART content will continue to expand and mature over time. Your input helps shape future releases, so share your feedback via this [form](https://smartsdu.atlassian.net/jira/software/form/d6db2393-e1ac-4c03-bf78-7f12400a8173).
@@ -0,0 +1,6 @@
1
+ # Guide and Conventions for building the Information Model
2
+
3
+
4
+ ## Disjointness
5
+
6
+ Ensure the classes, object, data and annotation properties are disjoint.