-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DAR Manifest DTD feedback #12
Comments
Thank you for sharing this. We will consider the suggestions. Currently we didn't intend the manifest to conform to JATS, but there's no strong reason why we couldn't do it. |
Are there any plans to address this feedback? In particular the "type" attribute is important. It would also be useful to be able to specify a MIME-type for documents as well as assets (perhaps content-type as attribute name for both assets and documents?). |
We are open to that. Could you turn this example into how you'd prefer it to be tagged? <!DOCTYPE manifest PUBLIC "DarManifest 0.1.0" "http://darformat.org/DarManifest-0.1.0.dtd">
<dar>
<documents>
<document id="manuscript" name="Reproducible Document Stack" type="article" path="manuscript.xml" />
<document id="sheet" name="Sheet 1" type="sheet" path="sheet1.csv" />
</documents>
<assets>
<asset id="234o23489237498234798" mime-type="image/png" name="Picture 1" path="234o23489237498234798.png"/>
</assets>
</dar> |
I think something along these lines would be an improvement, I also tried to address some of the feedback in #9:
See also https://www.w3.org/TR/xml-id/ - the XSD/DTD would need updating to define these attributes as type "xs:ID"/"ID". It appears JATS defines sub-attributes instead of a single |
From Laura Randall (NCBI/PMC):
Poking around the Github site, it looks like the Dar Article is a strict subset of the JATS, which of course is always fine. I think the Dar Manifest has some of the same issues (well, they’re only issues if this is intended to be part of the “JATS family”) that the MECA DTDs have in that they’re not following the guidelines that we set out in the JATS Compatibility Meta Model (https://groups.niso.org/apps/org/workgroup/jats-sc/download.php/16764/JATS-Compatibility-Model-v0-7.pdf).
A few things jump out:
@name is defined by JATS on : Dar defines it differently (on various elements meaning different things)
@Version is defined by JATS on : I don’t know if the Dar Runtime comes as an XML format, but it’s using version differently (this is where I’m especially out of my depth)
@type seems to mean a lot of different things within the Manifest model depending on what element it’s tied to. This isn’t ideal, even if you’re not trying to keep it within the JATS family. For example, on it’s describing the document-type but on it’s carrying the MIME type in some of the examples in Github (https://github.com/substance/dar/blob/master/examples/classic-manuscript/manifest.xml).
It doesn’t look like the @id on is actually an XML type ID attribute because you have an example of one starting with a number (https://github.com/substance/dar):
<asset id="234o23489237498234798" mime-type="image/png" name="Picture 1"...
While not strictly an error, it’s not ideal. Generally when people see an @id, they try to use it as an XML:ID and if it’s not defined that way, there are problems (the NLM DTDs had this as a lingering issue in all versions up to 3.0).
The text was updated successfully, but these errors were encountered: