apply_sdp_semantics
apply_sdp_semantics(path, review, quiet=False)Write semantic review decisions into a package.
Applies the decisions recorded by :func:accept_suggestion and :func:reject_suggestion to a written Salmon Data Package. Accepted IRIs are written with the REVIEW: prefix stripped; rejected slots are cleared; every other field, and every data CSV byte, is left untouched.
Safe to re-run: applying the same review twice produces identical bytes. Only fields carrying a decision are written, so undecided slots keep their REVIEW: markers.
The metadata CSVs, semantic_suggestions.csv and datapackage.json are installed as one transactional set – the descriptor duplicates the dictionary’s IRI fields, and a half-applied edit would leave the package quietly self-inconsistent.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| path | Path to the package directory. | required | |
| review | SemanticReview | A :class:SemanticReview carrying decisions. |
required |
| quiet | bool | Suppress the summary message. | False |
Returns
| Name | Type | Description |
|---|---|---|
| pathlib.Path | The package path. |