Skip to content

Centralize RDF and XHTML keywords into RDFConstants (#288)#289

Open
dyrpsf wants to merge 1 commit intosbmlteam:masterfrom
dyrpsf:refactor-rdf-constants-288
Open

Centralize RDF and XHTML keywords into RDFConstants (#288)#289
dyrpsf wants to merge 1 commit intosbmlteam:masterfrom
dyrpsf:refactor-rdf-constants-288

Conversation

@dyrpsf
Copy link
Contributor

@dyrpsf dyrpsf commented Mar 14, 2026

Problem

RDF and XHTML keywords (like dc, Bag, rdf, li) were hardcoded as string literals throughout the SBMLRDFAnnotationParser, increasing the risk of typos and making maintenance difficult.

Fix

Introduced org.sbml.jsbml.xml.RDFConstants to centralize these keywords and updated SBMLRDFAnnotationParser to use these constants.

Testing

  • Successfully ran mvn -pl core test.
  • Verified that RDF parsing and writing remains consistent with the previous implementation.

Fixes #288

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.

Centralize RDF/XHTML keywords (dc, Bag, rdf, etc.) as constants/enums

1 participant