For a machine readable solution:
There is a Relax NG compact schema file for RDF/XML here:
https://www.w3.org/2013/10/rdfxml.rnc
For validating, you can use jing. You need to translate to schema file
first from rnc to rng with trang.
https://github.com/relaxng/jing-trang
With trang you can also get XSD schema output.
I personally use Emacs to analyze my RDF/XML files for errors. It
integrates the above-mentioned Relax NG schema, so I can both browse the
errors and try different options to fix them.
Harri Kiiskinen
On 21.1.2021 0.39, Andy Seaborne wrote:
As XML?
Jena uses the XML parser in the JDK.
For the defn of RDF/XML on top of XML parsing:
https://www.w3.org/TR/rdf-syntax-grammar/
Andy
On 20/01/2021 20:27, Dr. Chavdar Ivanov wrote:
Hello,
When reading a model (RDFXML) Jena correctly reports errors if there
is something not correct in the XML file/data - missing tag or some
space not at the right place, etc.
I guess this follows some spec from W3C or else where on XML syntax. I
am looking to find the source and ideally a machine readable
expression of these rules XSD or some other form.
Is somebody aware of something existing?
Best regards
Chavdar
--
Tutkijatohtori / post-doctoral researcher
Movie Making Finland: Finnish fiction films as audiovisual big data,
1907–2017 (MoMaF)
Turun yliopisto / University of Turku