feature/86-RDFXML-parser#176
Merged
Merged
Conversation
|
rdfxml updates
654655c to
1e8aad5
Compare
|
remiceres
requested changes
Jul 22, 2025
Contributor
remiceres
left a comment
There was a problem hiding this comment.
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-nextbranch. 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 currentdevelopto 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 inbuild.gradle.kts. - I changed the superclass of
RdfXmlParser. It was originally extendingDefaultHandler, but all parsers must extendAbstractRDFParser. - I removed the
RdfXmlParserFactoryand directly integrated your parser toParserFactory, 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
handleStartElementmethod 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!
- Deleted the "Getting Started with Corese-Core" documentation as it is no longer needed. - Removed the "Configuring and Connecting to Different Storage Systems in Corese" documentation to streamline content. - Deleted the "User Guide" file to consolidate documentation. - Updated the installation instructions in "install.md" to reflect changes in dependency management and removed references to Gradle and RDF4J storage.
rdfxml updates
…eature/86-RDFXML-parser # Conflicts: # src/main/java/fr/inria/corese/core/next/impl/io/parser/ParserFactory.java # src/main/java/fr/inria/corese/core/next/impl/io/parser/rdfxml/context/RdfXmlContext.java
|
MaillPierre
requested changes
Aug 11, 2025
Contributor
There was a problem hiding this comment.
Duplicate with src/main/java/fr/inria/corese/core/next/impl/io/serialization/util/SerializationConstants.java. Refer to it instead.
Contributor
Author
There was a problem hiding this comment.
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 ?
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
This was referenced Aug 29, 2025
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
|
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is the RDF/XML Parser.
This Parser is a basic that read an XML File and produce a Model