rvesse commented on issue #3990: URL: https://github.com/apache/jena/issues/3990#issuecomment-4706632309
Note that putting this example RDF/XML in the official W3C RDF validator appears to yield the same result: <img width="1470" height="229" alt="Image" src="https://github.com/user-attachments/assets/6e3680bd-b012-4a50-bbf5-8b573d5b1ede" /> Thus I think this is a data producer error in that `rdf:datatype="http://www.w3.org/1999/02/22-rdf-syntax-ns#langString"` **SHOULD NOT** be added to literal elements in RDF/XML output in the same way that other serialisations, e.g. Turtle, would also omit this and just serialise the language tag. I can't find it explicitly called out in the specifications I believe the intent for RDF/XML was that you don't serialise implied data types (like `rdf:LangString`) and simply add the `xml:lang` attribute to the relevant literal element. The most relevant specification text I can find is the following from [Section 6.1.8 Plain Literal Event](https://www.w3.org/TR/rdf-syntax-grammar/#section-literal-node) > RDF/XML plain literals are in RDF 1.1 treated as syntactic sugar for a literal with datatype xsd:string (in case no language tag is present) or as a literal with datatype rdf:langString (in case a language tag is present). The mapping to N-Triples as defined in this subsection is not affected by this change. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
