From 15b72220adc7781ff8c526f85ce08dfbbd32aa83 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Nov 2026 10:09:20 +0000 Subject: [PATCH 1/2] Fix Wing DTDL so Merge and Generate passes; prepare 4.2 release - Wing.json: use localizable 'description' instead of 'comment' (DTDL v2 'comment' must be a plain string). This broke the DTDL merger on main after the Wing merge, so the merged jsonld/docs never got regenerated. - Add rec:Wing to the SHACL model. - Add V4.2 release notes. - push_to_nuget: fail early with a clear message if NUGET_API_KEY is missing, and pass the key explicitly to nuget push. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_013Uh9QpXkxdXkiX7AKo3Wso --- .github/workflows/push_to_nuget.yml | 12 ++++++++++- ReleaseNotes.md | 20 +++++++++++++++++++ .../Space/Architecture/SubBuilding/Wing.json | 2 +- Source/SHACL/RealEstateCore/rec.ttl | 7 +++++++ 4 files changed, 39 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push_to_nuget.yml b/.github/workflows/push_to_nuget.yml index 0bfa4f529..97b43d8bb 100644 --- a/.github/workflows/push_to_nuget.yml +++ b/.github/workflows/push_to_nuget.yml @@ -18,6 +18,14 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v3 + - name: Check NuGet API key is configured + env: + NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} + run: | + if [ -z "$NUGET_API_KEY" ]; then + echo "::error::Repository secret NUGET_API_KEY is not set. Create a nuget.org API key with Push scope for RealEstateCore.Ontology.DTDLv2 and add it under Settings > Secrets and variables > Actions." + exit 1 + fi - name: Install Mono run: | sudo apt-get update @@ -39,4 +47,6 @@ jobs: - name: 'Run nuget pack' run: nuget pack build/*.nuspec -OutputDirectory build - name: 'Publish to nuget.org' - run: nuget push build/*.nupkg -Source "${{ env.NUGET_FEED_URL }}" -SkipDuplicate + env: + NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} + run: nuget push build/*.nupkg -ApiKey "$NUGET_API_KEY" -Source "${{ env.NUGET_FEED_URL }}" -SkipDuplicate -NonInteractive diff --git a/ReleaseNotes.md b/ReleaseNotes.md index ce932d061..e261a263f 100644 --- a/ReleaseNotes.md +++ b/ReleaseNotes.md @@ -1,5 +1,25 @@ # RealEstateCore Release Notes +## V4.2 -- Wing + +REC 4.2 is a minor, backwards-compatible release. + +### New Features + +* **Wing.** New `Wing` class under `Space/Architecture/SubBuilding/`, a subclass of `SubBuilding`. Brick 1.4 deprecates its `brick:Location` domain in favour of `rec:Space`, and `brick:Wing` was the only Brick location class without a REC counterpart. For new modelling, REC still recommends the more general `SubBuilding` where possible. Available in both the DTDL and SHACL models. + +### Governance + +* ODR 004 — Introduction of Space:Wing + +### Fixes + +* NuGet: the v4.1 package was not published to nuget.org because the publish step failed. 4.2 is the first 4.x release on NuGet since 4.0.0.19 and includes all 4.1 changes. + +### Known issues + +* The edge message schema has not yet been updated for REC4. A REC4-compliant edge message schema remains planned for a later release in the 4.x series. + ## V4.1 -- Warranty, new room types, governance framework REC 4.1 is a minor, backwards-compatible release that consolidates feature additions, clarifications, and governance improvements accumulated since v4.0. diff --git a/Source/DTDLv2/RealEstateCore/Space/Architecture/SubBuilding/Wing.json b/Source/DTDLv2/RealEstateCore/Space/Architecture/SubBuilding/Wing.json index 5606d499b..e2928c64f 100644 --- a/Source/DTDLv2/RealEstateCore/Space/Architecture/SubBuilding/Wing.json +++ b/Source/DTDLv2/RealEstateCore/Space/Architecture/SubBuilding/Wing.json @@ -4,7 +4,7 @@ "displayName": { "en": "Wing" }, - "comment": { + "description": { "en": "Introduced in REC as Brick is deprecating their location domain. A building may comprise quite many elements such as towers, annexes, rotundas etc. As well as wings. It's difficult to capture all variations in the ontology and REC recommend to use the generalization sub building if possible." }, "extends": "dtmi:org:w3id:rec:SubBuilding;1", diff --git a/Source/SHACL/RealEstateCore/rec.ttl b/Source/SHACL/RealEstateCore/rec.ttl index 8335ab04e..8421b6742 100644 --- a/Source/SHACL/RealEstateCore/rec.ttl +++ b/Source/SHACL/RealEstateCore/rec.ttl @@ -2916,6 +2916,13 @@ rec:WasteManagementRoom rdfs:label "Waste management room" ; rdfs:subClassOf rec:Room ; . +rec:Wing + rdf:type rdfs:Class ; + rdf:type sh:NodeShape ; + rdfs:comment "Introduced in REC as Brick is deprecating their location domain. A building may comprise quite many elements such as towers, annexes, rotundas etc. As well as wings. It's difficult to capture all variations in the ontology and REC recommend to use the generalization sub building if possible." ; + rdfs:label "Wing" ; + rdfs:subClassOf rec:SubBuilding ; +. rec:Window rdf:type rdfs:Class ; rdf:type sh:NodeShape ; From c74774145b340b9af5bd3bf0cb77831c19e6cb3d Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 19 Nov 2026 10:40:43 +0000 Subject: [PATCH 2/2] Publish to nuget.org via Trusted Publishing instead of a stored API key Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_013Uh9QpXkxdXkiX7AKo3Wso --- .github/workflows/push_to_nuget.yml | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/workflows/push_to_nuget.yml b/.github/workflows/push_to_nuget.yml index 97b43d8bb..125fdad6a 100644 --- a/.github/workflows/push_to_nuget.yml +++ b/.github/workflows/push_to_nuget.yml @@ -15,17 +15,14 @@ jobs: runs-on: ubuntu-latest + # Needed for nuget.org Trusted Publishing (GitHub OIDC token exchange). + permissions: + id-token: write + contents: read + steps: - name: Checkout code uses: actions/checkout@v3 - - name: Check NuGet API key is configured - env: - NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} - run: | - if [ -z "$NUGET_API_KEY" ]; then - echo "::error::Repository secret NUGET_API_KEY is not set. Create a nuget.org API key with Push scope for RealEstateCore.Ontology.DTDLv2 and add it under Settings > Secrets and variables > Actions." - exit 1 - fi - name: Install Mono run: | sudo apt-get update @@ -33,7 +30,6 @@ jobs: - name: 'Setup Nuget' uses: nuget/setup-nuget@v1 with: - nuget-api-key: ${{ secrets.NUGET_API_KEY }} nuget-version: '5.x' - name: Setup .NET uses: actions/setup-dotnet@v2 @@ -46,7 +42,15 @@ jobs: cp Metadata/*.nuspec build/ - name: 'Run nuget pack' run: nuget pack build/*.nuspec -OutputDirectory build + # Trusted Publishing: exchanges the GitHub OIDC token for a short-lived + # nuget.org API key. Requires a Trusted Publishing policy on nuget.org + # for RealEstateCore/rec + push_to_nuget.yml, owned by the user below. + - name: 'Log in to nuget.org (Trusted Publishing)' + id: nuget-login + uses: NuGet/login@v1 + with: + user: PeteHart - name: 'Publish to nuget.org' env: - NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} + NUGET_API_KEY: ${{ steps.nuget-login.outputs.NUGET_API_KEY }} run: nuget push build/*.nupkg -ApiKey "$NUGET_API_KEY" -Source "${{ env.NUGET_FEED_URL }}" -SkipDuplicate -NonInteractive