Skip to content

feature/86-RDFXML-parser#176

Merged
MaillPierre merged 74 commits into
feature/corese-nextfrom
feature/86-RDFXML-parser
Sep 3, 2025
Merged

feature/86-RDFXML-parser#176
MaillPierre merged 74 commits into
feature/corese-nextfrom
feature/86-RDFXML-parser

Conversation

@prbblrypier
Copy link
Copy Markdown
Contributor

This is the RDF/XML Parser.
This Parser is a basic that read an XML File and produce a Model

@github-actions
Copy link
Copy Markdown

Overall Project 48.71% -0.06% 🍏
Files changed 87.33% 🍏

File Coverage
RdfXmlContext.java 100% 🍏
RdfXmlParser.java 91.3% -8.7% 🍏
RdfXmlUtils.java 82.86% -17.14% 🍏
AbstractStatement.java 2.56% -15.38%
RdfXmlParserFactory.java 0%

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jul 18, 2025

Test Results

887 tests  +69   887 ✅ +69   34s ⏱️ -1s
 62 suites + 7     0 💤 ± 0 
 62 files   + 7     0 ❌ ± 0 

Results for commit fa1b4ad. ± Comparison against base commit e8859fa.

♻️ This comment has been updated with latest results.

@remiceres remiceres force-pushed the feature/86-RDFXML-parser branch from 654655c to 1e8aad5 Compare July 22, 2025 12:18
@github-actions
Copy link
Copy Markdown

Overall Project 49.22% -0.05% 🍏
Files changed 89.51% 🍏

File Coverage
RdfXmlContext.java 100% 🍏
RdfXmlParser.java 94.04% -5.96% 🍏
RdfXmlUtils.java 82.86% -17.14% 🍏
ParserFactory.java 70.54% -16.96%
AbstractStatement.java 2.56% -15.38%

Copy link
Copy Markdown
Contributor

@remiceres remiceres left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello Pierre-René,

Here is a first round of feedback on the XML parser development.

Below are the modifications I made myself so far:

  • I did a rebase of your branch onto the current feature/corese-next branch. This was necessary because your branch was quite outdated, and it had diverged significantly from the current state of the codebase.
    You were working from a very old feature branch, which made the rebase quite difficult. For future PRs, please try to regularly rebase your branch onto the current develop to avoid large divergences—it will save time and prevent complex conflicts. The branch you were using was still on Java 11 with module definitions, which caused issues and conflicts in build.gradle.kts.
  • I changed the superclass of RdfXmlParser. It was originally extending DefaultHandler, but all parsers must extend AbstractRDFParser.
  • I removed the RdfXmlParserFactory and directly integrated your parser to ParserFactory, following the same pattern used for the other parsers.

Here’s what remains to be done:

  • The Javadoc is incomplete in several places and does not always follow the standard Javadoc format. Please review and complete it accordingly.
  • The handleStartElement method is too large and mixes multiple levels of logic (element type detection, stack management, triple creation, etc.). It should be split into smaller, more focused methods.
  • All SAX/XML errors are currently wrapped in RuntimeException, which is not the practice followed by other parsers. Instead, use specific exceptions or return informative error messages.
  • Rename the parser class to be consistent with the naming of the other parsers.
  • Don’t hesitate to take inspiration from the existing parsers (e.g., NQuadsParser) to ensure consistency in style, naming, and structure.

Thanks!

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Aug 1, 2025

Overall Project 49.49% -0.11% 🍏
Files changed 84.28% 🍏

File Coverage
RDFXMLContext.java 100% 🍏
RDFXMLParser.java 95.73% -4.27% 🍏
RDFXMLStatementEmitter.java 91.94% -8.06% 🍏
IRIUtils.java 87.12% -4.55% 🍏
RDFXMLUtils.java 83.85% -16.15% 🍏
TriGListerner.java 72.97% -27.03% 🍏
ParserFactory.java 70.54% -16.96%
ANTLRTrigParser.java 47.92% -52.08%
AbstractStatement.java 2.56% -15.38%
CoreseInfo.java 0% 🍏

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate with src/main/java/fr/inria/corese/core/next/impl/io/serialization/util/SerializationConstants.java. Refer to it instead.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't use SerializationConstants in my code.
Do you want me to remove src/main/java/fr/inria/corese/core/next/impl/common/serializer/util/SerializationConstants.java ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

remiceres added a commit that referenced this pull request Aug 29, 2025
- Create comprehensive round-trip tests for RDF/XML format
- Tests are currently disabled pending RDF/XML parser implementation (PR #176)
- Test framework ready for serialization followed by parsing verification
- Cover various RDF constructs including namespace/prefix handling
- Include tests for typed literals, blank nodes and special characters
- Ready to enable once RDF/XML parser is available
abdessamad-abdoun pushed a commit that referenced this pull request Sep 1, 2025
- Create comprehensive round-trip tests for RDF/XML format
- Tests are currently disabled pending RDF/XML parser implementation (PR #176)
- Test framework ready for serialization followed by parsing verification
- Cover various RDF constructs including namespace/prefix handling
- Include tests for typed literals, blank nodes and special characters
- Ready to enable once RDF/XML parser is available
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Sep 2, 2025

Overall Project 49.59% -0.11% 🍏
Files changed 83.99% 🍏

File Coverage
RDFXMLContext.java 100% 🍏
RDFXMLParser.java 95.73% -4.27% 🍏
RDFXMLStatementEmitter.java 91.94% -8.06% 🍏
RDFXMLUtils.java 83.85% -16.15% 🍏
IRIUtils.java 83.04% -1.38% 🍏
TriGListerner.java 72.97% -27.03% 🍏
ParserFactory.java 70.54% -16.96%
ANTLRTrigParser.java 47.92% -52.08%
AbstractStatement.java 2.56% -15.38%
CoreseInfo.java 0% 🍏

@MaillPierre MaillPierre merged commit 488b2dc into feature/corese-next Sep 3, 2025
2 checks passed
abdessamad-abdoun pushed a commit that referenced this pull request Sep 3, 2025
- Create comprehensive round-trip tests for RDF/XML format
- Tests are currently disabled pending RDF/XML parser implementation (PR #176)
- Test framework ready for serialization followed by parsing verification
- Cover various RDF constructs including namespace/prefix handling
- Include tests for typed literals, blank nodes and special characters
- Ready to enable once RDF/XML parser is available
abdessamad-abdoun pushed a commit that referenced this pull request Sep 11, 2025
- Create comprehensive round-trip tests for RDF/XML format
- Tests are currently disabled pending RDF/XML parser implementation (PR #176)
- Test framework ready for serialization followed by parsing verification
- Cover various RDF constructs including namespace/prefix handling
- Include tests for typed literals, blank nodes and special characters
- Ready to enable once RDF/XML parser is available
abdessamad-abdoun pushed a commit that referenced this pull request Oct 20, 2025
- Create comprehensive round-trip tests for RDF/XML format
- Tests are currently disabled pending RDF/XML parser implementation (PR #176)
- Test framework ready for serialization followed by parsing verification
- Cover various RDF constructs including namespace/prefix handling
- Include tests for typed literals, blank nodes and special characters
- Ready to enable once RDF/XML parser is available
@MaillPierre MaillPierre deleted the feature/86-RDFXML-parser branch October 29, 2025 09:19
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.

3 participants