Skip to content

Check that annotation values match their declared type - #16

Open
hoodcm wants to merge 1 commit into
mainfrom
value-outside-declared-range
Open

hoodcm wants to merge 1 commit into
mainfrom
value-outside-declared-range

Conversation

@hoodcm

@hoodcm hoodcm commented Oct 1, 2026

Copy link
Copy Markdown
Collaborator

Part of #5. Closes #8.

I added one check.

Check Data checked Why
A value matches the type its property declares Annotation properties that declare a type Protégé's editor crashes on a mismatch (#8).

I fixed what it found on main:

  • Five text properties (Synonym, Acronym, Misspelling_of_term, Unsanctioned_Term, Definition) now allow language tags. Their 23,996 tagged values are now valid.
  • 125 Created values are now typed as dates. 16 of them also lose a stray language tag.
  • 15 stray language tags come off Radlex_version_of_class_change (8) and Source (7).
  • Replaced_by no longer declares a text type, because its values are links.

All tests pass.

… it finds

Text properties with language-tagged values take rdf:PlainLiteral. Created values are typed xsd:dateTime. Stray language tags come off version notes and sources. Replaced_by drops its xsd:string range because its values are IRIs. Closes #8.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant