-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Because we're managing more than one version of the model, it would be better to set the base URI dynamically instead of using a predefined constant.
There can be at least two ways of doing this:
- Get it from command line/environment variable
- Get it from model Markdown source file (model Markdown source file will be the single source of truth)
Option (2) is possible because SPDX 3 model Markdown source contains the profile namespace IRIs (in profile metadata section).
We can do it like this:
iri = "https://spdx.org/rdf/3.0/terms/Core/"
if iri.endswith("/Core/"):
base_uri = iri[: -len("Core/")]
elif iri.endswith("/Core"):
base_uri = iri[: -len("Core")]
# base_iri = "https://spdx.org/rdf/3.0/terms/"Metadata
Metadata
Assignees
Labels
No labels