From 63b8e30cf443f50780e9880d4e46e7d7496e7d66 Mon Sep 17 00:00:00 2001 From: Ronald Tse Date: Sat, 10 Oct 2026 00:22:53 +0800 Subject: [PATCH 1/2] Specs for aliases and the widened registry (866) 255 spots carry real nicknames as synonyms from their Wikidata aliases; 30 World Heritage grades this cycle; 866 entities. --- spec/scenicspots_spec.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/spec/scenicspots_spec.rb b/spec/scenicspots_spec.rb index 30b5fba..c17d89b 100644 --- a/spec/scenicspots_spec.rb +++ b/spec/scenicspots_spec.rb @@ -13,7 +13,7 @@ let(:db) { Opencdd::Cddal.parse_file(SCENICSPOTS) } it "loads every entity" do - expect(db.entities.size).to eq(804) + expect(db.entities.size).to eq(866) end describe "powertypes" do @@ -131,11 +131,16 @@ expect(db.find_by_code("SPA019").preferred_name("zh-CN")).to eq("中國") end + it "carries real nicknames as synonyms from Wikidata aliases" do + syn = db.entities.select { |e| e.respond_to?(:synonyms) && e.synonyms.any? } + expect(syn.size).to be > 200 + end + it "grades UNESCO World Heritage sites from their P757 claims" do graded = db.entities.count do |e| e.respond_to?(:properties) && e.properties["official_grade"] == "WorldHeritage" end - expect(graded).to eq(32) + expect(graded).to eq(30) end end end From a2216bac8e32b4cfe058c27b3ad4e3b2f4f2b507 Mon Sep 17 00:00:00 2001 From: Ronald Tse Date: Sat, 10 Oct 2026 00:25:42 +0800 Subject: [PATCH 2/2] Fix the tutorial page frontmatter to the docs schema --- docs/src/content/docs/oceanrunner-tutorial.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/src/content/docs/oceanrunner-tutorial.md b/docs/src/content/docs/oceanrunner-tutorial.md index 1469a12..95ffa26 100644 --- a/docs/src/content/docs/oceanrunner-tutorial.md +++ b/docs/src/content/docs/oceanrunner-tutorial.md @@ -1,7 +1,9 @@ --- -title: "OceanRunner modelling tutorial" -section: "Tutorials" -order: 6 +title: OceanRunner modelling tutorial +description: A step-by-step walkthrough of the modelling tutorial fixture — option power-types, configured products, and the M0 individual. +published: 2026-10-09 +section: Concepts +order: 60 --- The OceanRunner dictionary is OpenCDD's **modelling tutorial**: a