Skip to content

Read base URI from actual model (Core profile) + add owl:versionInfo#206

Open
bact wants to merge 3 commits into
spdx:mainfrom
bact:actual-base-uri
Open

Read base URI from actual model (Core profile) + add owl:versionInfo#206
bact wants to merge 3 commits into
spdx:mainfrom
bact:actual-base-uri

Conversation

@bact

@bact bact commented Jan 24, 2026

Copy link
Copy Markdown
Contributor

Use the Core namespace in the model as source, instead of hard-coded in parser.

To resolve #203

Note that the base IRI is updated to the MAJOR-only one: https://spdx.org/rdf/3/terms/

owl:versionIRI can be generated, if a version metadata is provided, like this:

## Metadata

- id: https://spdx.org/rdf/3/terms/Core
- name: Core
- version: 3.1

From this example,

  • Base IRI (in owl:Ontology) will be https://spdx.org/rdf/3/terms/
  • owl:versionInfo will be 3.1
  • owl:versionIRI will be https://spdx.org/rdf/3.1/terms/

If version is absent from namespace metadata, owl:versionInfo and owl:versionIRI are omitted silently. The ontology remains valid OWL.

bact added 3 commits January 24, 2026 09:22
Use the Core namespace in the model as source

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
@bact bact changed the title Read base URI from actual model Read base URI from actual model (Core profile) + add owl:versionInfo May 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Determine actual base URI from the model

1 participant