Feature/147 serializer turtle jsonld rdfxml#165
Conversation
|
MaillPierre
left a comment
There was a problem hiding this comment.
Cf comment on the re-definition of URIs related string in SerializationConstants
| } | ||
|
|
||
| // --- Standard RDF/RDFS/XSD/OWL URIs --- | ||
| public static final String RDF_NS = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"; |
There was a problem hiding this comment.
All the RDF/RDFS related strings should be imported from src/main/java/fr/inria/corese/core/next/impl/common/vocabulary/RDFS.java and src/main/java/fr/inria/corese/core/next/impl/common/vocabulary/RDF.java instead of being re-defined here.
It woul probably also be a good ideau to add an OWL.java in the vocabulary package
There was a problem hiding this comment.
C’est corrigé
|
e723efc to
dc6e183
Compare
|
remiceres
left a comment
There was a problem hiding this comment.
- It might be beneficial to introduce inheritance between closely related serializers (e.g., N-Triples and N-Quads, TriG and Turtle) to reduce code duplication.
- Consider whether each serializer should have its own specific
FormatConfigtype, instead of sharing a common one.
There was a problem hiding this comment.
Interface names should not be prefixed with "I". For example, use RdfSerializer instead of IRdfSerializer, as defined in our naming conventions:
https://github.com/corese-stack/corese-docs/blob/main/Naming%20and%20Coding%20Conventions%20for%20Corese.md/#L8-L13
There was a problem hiding this comment.
Interface names should not be prefixed with "I". For example, use RdfSerializer instead of IRdfSerializer, as defined in our naming conventions:
https://github.com/corese-stack/corese-docs/blob/main/Naming%20and%20Coding%20Conventions%20for%20Corese.md/#L8-L13
There was a problem hiding this comment.
Interface names should not be prefixed with "I". For example, use RdfSerializer instead of IRdfSerializer, as defined in our naming conventions:
https://github.com/corese-stack/corese-docs/blob/main/Naming%20and%20Coding%20Conventions%20for%20Corese.md/#L8-L13
There was a problem hiding this comment.
Missing documentation for the RdfSerializer interface.
There was a problem hiding this comment.
Missing documentation for the SerializerFactory interface.
There was a problem hiding this comment.
Missing class-level Javadoc for NQuadsSerializer.
There was a problem hiding this comment.
Missing Javadoc for SerializationException. Also, the existing comment is in French — all documentation should be written in English.
There was a problem hiding this comment.
The name FormatConfig might be too generic — something like SerializerConfig could be more explicit.
|
|
|
|
|
|
|
Add a (possibly empty) Config interface for config objects
…mplémentation complète de RdfSerializationUtils
Add a (possibly empty) Config interface for config objects
Extracts a common abstract base class, AbstractLineBasedSerializer, from NQuadsSerializer and NTriplesSerializer. This refactoring removes duplicated code for writing statements, values, literals, IRIs, and blank nodes. The new base class centralizes the logic for line-by-line serialization, while subclasses (NQuadsSerializer and NTriplesSerializer) now only need to implement the specific logic for handling contexts (named graphs). - NQuadsSerializer handles the optional context. - NTriplesSerializer ignores the context and logs a warning. This change improves maintainability and reduces code duplication.
…t de la documentation manquante
a7ff164 to
3783b50
Compare
|
|
No description provided.