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 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