Skip to content

Support <idno type="wikidata"> for character Wikidata IDs#374

Open
cmil wants to merge 1 commit into
mainfrom
character-wikidata-idno
Open

Support <idno type="wikidata"> for character Wikidata IDs#374
cmil wants to merge 1 commit into
mainfrom
character-wikidata-idno

Conversation

@cmil

@cmil cmil commented Jul 4, 2026

Copy link
Copy Markdown
Member

Implements dracor-org/dracor-schema#190: reads bare QIDs from on person/personGrp in particDesc, with a deprecated fallback to @ana URIs for un-migrated corpora.

  • Add dutil:get-character-wikidata-id() with idno-first lookup
  • Update dutil:get-play-info() and dutil:characters-info() to use it
  • Update dutil:get-plays-with-character() to match both idno and @ana, also cover personGrp, and fix shadowed $id variable
  • Update RDF generation to emit owl:sameAs from idno before @ana
  • Mark all @ana fallback paths as deprecated (remove in v2)

Implements dracor-org/dracor-schema#190: reads bare QIDs from
<idno type="wikidata"> on person/personGrp in particDesc,
with a deprecated fallback to @ana URIs for un-migrated corpora.

- Add dutil:get-character-wikidata-id() with idno-first lookup
- Update dutil:get-play-info() and dutil:characters-info() to use it
- Update dutil:get-plays-with-character() to match both idno and @ana,
  also cover personGrp, and fix shadowed $id variable
- Update RDF generation to emit owl:sameAs from idno before @ana
- Mark all @ana fallback paths as deprecated (remove in v2)
@cmil cmil added this to the 1.4.0 milestone Jul 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant