glam/schemas/20251121/linkml/modules/classes/Price.yaml
kempersc fc405445c6 Refactor and update schema definitions
- Removed obsolete slots: `has_or_had_custodian_observation`, `provider`, and `specificity_annotation`.
- Updated `has_or_had_score` slot to use `SpecificityScore` class and modified its description and examples.
- Added new slots: `end_seconds`, `end_time`, `has_archive_path`, `has_or_had_custodian_name`, `protocol_name`, and `protocol_version`.
- Introduced a script `check_annotation_types.py` to validate the presence and structure of `custodian_types` in YAML files.
- Added a script `update_specificity.py` to automate updates related to `SpecificityAnnotation` to `SpecificityScore`.
2026-02-01 19:55:38 +01:00

55 lines
2.3 KiB
YAML

id: https://nde.nl/ontology/hc/class/Price
name: Price
title: Price
description: "Represents price or pricing information with value, currency, and optional range.\n\nThis class supports:\n- Exact prices (e.g., \u20AC15.00 admission)\n- Price ranges (e.g., \u20AC to \u20AC\u20AC\u20AC\u20AC for restaurants)\n- Price categories (budget, moderate, premium)\n\nCreated per slot_fixes.yaml revision for catering_price_range migration (Rule 53/56).\n"
prefixes:
linkml: https://w3id.org/linkml/
hc: https://nde.nl/ontology/hc/
schema: http://schema.org/
gr: http://purl.org/goodrelations/v1#
imports:
- linkml:types
- ../slots/has_or_had_currency
- ../slots/has_or_had_type
- ../slots/has_or_had_value
default_prefix: hc
classes:
Price:
class_uri: schema:PriceSpecification
description: "Price information including value, currency, and optional range/category.\n\nFor catering and services, price ranges use symbolic notation:\n- \u20AC (budget): Under \u20AC15 per person\n- \u20AC\u20AC (moderate): \u20AC15-30 per person\n- \u20AC\u20AC\u20AC (upscale): \u20AC30-60 per person\n- \u20AC\u20AC\u20AC\u20AC (luxury): Over \u20AC60 per person\n"
slots:
- has_or_had_value
- has_or_had_currency
- has_or_had_type
slot_usage:
has_or_had_value:
description: "The price value. Can be:\n- Numeric (e.g., \"15.00\")\n- Symbolic (e.g., \"\u20AC\u20AC\u20AC\")\n- Descriptive (e.g., \"free\", \"donation suggested\")\n"
has_or_had_currency:
range: Currency
inlined: true
has_or_had_type:
range: PriceRange
inlined: true
exact_mappings:
- schema:PriceSpecification
- gr:PriceSpecification
examples:
- value:
has_or_had_value: "\u20AC\u20AC\u20AC\u20AC"
has_or_had_type:
has_or_had_name: Luxury
has_or_had_description: "Over \u20AC60 per person"
- value:
has_or_had_value: "\u20AC"
has_or_had_type:
has_or_had_name: Budget
has_or_had_description: "Under \u20AC15 per person"
- value:
has_or_had_value: '15.00'
has_or_had_currency:
has_or_had_code: EUR
has_or_had_symbol: "\u20AC"
annotations:
specificity_score: 0.1
specificity_rationale: Generic utility class/slot created during migration
custodian_types: "['*']"