The RDF/XML representation of ADMS published here contains a problematic comment line as its first line:
<!-- deprecated, now maintained by Semic -- see adms.var -->
<?xml version="1.0" encoding="utf-8"?>
<rdf:RDF xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:owl="http://www.w3.org/2002/07/owl#"
xmlns:voaf="http://purl.org/vocommons/voaf#"
xmlns:dcterms="http://purl.org/dc/terms/"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:schema="http://schema.org/"
xmlns:skos="http://www.w3.org/2004/02/skos/core#"
xmlns:dcat="http://www.w3.org/ns/dcat#"
xmlns:wdrs="http://www.w3.org/2007/05/powder-s#"
xmlns:vann="http://purl.org/vocab/vann/"
xmlns="http://www.w3.org/ns/adms#" >
<!-- Document metadata -->
<owl:Ontology rdf:about="http://www.w3.org/ns/adms">
...
There are 3 issues with this line:
- Such a comment is not allowed before the XML prolog [1].
- The comment contains
--, which is also not allowed inside a comment [1].
- The file is referenced on the official page, which is claimed to be the latest version. However, once a user opens the file, they see a deprecation note in the comment.
Note that this is also the file that is served when http://www.w3.org/ns/adms URI is dereferenced.
At least two tools report errors due to the invalid format and fail to process the file: owl-cli and robot.
This poses a significant problem because some tools like robot follow import statements when processing an ontology. As a result, any ontology that uses ADMS cannot be processed, since parsing fails on the ADMS file.
Steps to reproduce using owl-cli:
$ wget --header="Accept: application/rdf+xml" 'http://www.w3.org/ns/adms' -O adms.rdf && ./owl-cli write -i rdfxml -o rdfxml adms.rdf
2025-05-01 13:51:22,724 ERROR o.a.j.riot: [line: 1, col: 44] The string "--" is not permitted within comments.
Error: [line: 1, col: 44] The string "--" is not permitted within comments.
Please remove or fix the comment line.
[1] https://www.w3schools.com/xml/xml_syntax.asp
The RDF/XML representation of ADMS published here contains a problematic comment line as its first line:
There are 3 issues with this line:
--, which is also not allowed inside a comment [1].Note that this is also the file that is served when
http://www.w3.org/ns/admsURI is dereferenced.At least two tools report errors due to the invalid format and fail to process the file: owl-cli and robot.
This poses a significant problem because some tools like robot follow import statements when processing an ontology. As a result, any ontology that uses ADMS cannot be processed, since parsing fails on the ADMS file.
Steps to reproduce using owl-cli:
Please remove or fix the comment line.
[1] https://www.w3schools.com/xml/xml_syntax.asp