You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@przemekgradzki@mereolog As far as I am concerned, the XML entity declaration can be omitted in both cases. It is not necessary and I would prefer that we leave it out altogether, regardless of which choice for retaining or eliminating the rest of the declarations.
The xml prefix is omitted when writing namespace declarations to the root element:
rdf-toolkit/src/main/java/org/edmcouncil/rdf_toolkit/writer/SortedRdfXmlWriter.java
Line 237 in 2603921
but is not omitted when writing a DTD subset:
rdf-toolkit/src/main/java/org/edmcouncil/rdf_toolkit/writer/SortedRdfXmlWriter.java
Line 213 in 2603921
As a consequence, the result of the operation:
rdf-toolkit/docs/RdfFormatter.md
Line 98 in 2603921
executed with the command:
is the file containing the entry
<!ENTITY xml "http://www.w3.org/XML/1998/namespace">
:If you reapply the RDF/XML formatting operation to the resulting RDF/XML formatting using entity references for URL shortening:
java -cp target/rdf-toolkit-1.14.2.jar org.edmcouncil.rdf_toolkit.RdfFormatter \ -s src/test/resources/ontologies/literal/test1.ttl \ -tfmt rdf-xml -dtd | \ java -cp ./target/rdf-toolkit-1.14.2.jar org.edmcouncil.rdf_toolkit.RdfFormatter \ -sfmt rdf-xml \ -tfmt rdf-xml -dtd
is the file without the entry
<!ENTITY xml "http://www.w3.org/XML/1998/namespace">
:The text was updated successfully, but these errors were encountered: