Skip to content

Fix: Use @type in the scheduledsession-split example + GoodRelations backup - #212

Merged
howaskew merged 3 commits into
masterfrom
fix/example-at-type
Oct 22, 2026
Merged

howaskew merged 3 commits into
masterfrom
fix/example-at-type

Conversation

@howaskew

@howaskew howaskew commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Merging releases 3.0.11 to npm and triggers updates in the downstream repositories.

Example fix

The beta:sportsActivityLocation item used "type" instead of "@type", the same mistake fixed in facilityuse_example_1.json in #181. It was the last 2.x example using "type".

The generated models-ts example tests check each example against the TypeScript types, so this example stopped the models-ts build.

Test fix: GoodRelations

The models spec downloaded the GoodRelations ontology from http://www.heppnetz.de/ontologies/goodrelations/v1.owl, which was returning 401 Unauthorized (as does http://purl.org/goodrelations/v1, which redirects there). The test check therefore failed on every pull request.

Now, the spec still attempts to download the ontology from http://purl.org/goodrelations/v1.owl first. If that fails (network error or timeout, a non-200 response, or a response that is not usable RDF/XML), it uses a copy of the final release (V 1.0, 2011-10-01, CC BY 3.0, from the Internet Archive) in spec/vocabularies/goodrelations-v1.owl, and flags it:

  • a warning in the test output: WARNING: Could not load http://purl.org/goodrelations/v1.owl (HTTP 401). Using the local copy spec/vocabularies/goodrelations-v1.owl instead.
  • on GitHub Actions, a "Vocabulary download failed" warning annotation on the run.

The copy gives the same 196 terms as the live file, including the three the models use (PaymentMethod, Cash, PaymentMethodCreditCard). spec/ is excluded from the npm package.

Verification

When squash-merging, check the suggested commit message does not contain a skip-CI marker.

howaskew and others added 2 commits October 21, 2026 13:17
The beta:sportsActivityLocation item used "type" instead of "@type",
the same mistake fixed in facilityuse_example_1.json in #181. It was
the last 2.x example using "type".

The generated models-ts example tests check each example against the
TypeScript types, so this example stopped the models-ts build.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The models spec downloads the GoodRelations ontology to check the
GoodRelations terms the models use. Its site now returns 401
Unauthorized (for http://purl.org/goodrelations/v1.owl and the
heppnetz.de address it redirects to), so the spec failed for every
pull request.

The spec still downloads the ontology from its purl first. If that
fails (network error or timeout, a non-200 response, or a response
that is not usable RDF/XML), it uses a copy of the final release
(V 1.0, 2011-10-01, CC BY 3.0, from the Internet Archive) in
spec/vocabularies, and flags it: a warning in the test output and, on
GitHub Actions, a warning annotation on the run. spec/ is excluded from
the npm package by .npmignore.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@howaskew
howaskew requested a review from hkir-dev October 22, 2026 08:59
@howaskew howaskew changed the title Fix: Use @type in the scheduledsession-split example Fix: Use @type in the scheduledsession-split example + GoodRelations backup Oct 22, 2026
Comment thread src/models-spec.js Outdated
Following review: restore parseRDFXML to its original signature and
behaviour, so the SKOS download is unaffected, and move the fallback
to a separate parseRDFXMLWithFallback(uri, fallbackFile), used only for
GoodRelations.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@howaskew
howaskew requested a review from hkir-dev October 22, 2026 10:23
@howaskew
howaskew merged commit 06c1523 into master Oct 22, 2026
13 checks passed
@howaskew
howaskew deleted the fix/example-at-type branch October 22, 2026 14:14
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.

2 participants