Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9312382
D5436.id19435.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D5436.id19435.diff
View Options
diff --git a/docs/specs/protocol-reference.rst b/docs/specs/protocol-reference.rst
--- a/docs/specs/protocol-reference.rst
+++ b/docs/specs/protocol-reference.rst
@@ -210,7 +210,7 @@
We also highly recommend their CodeMeta equivalent, and any other relevant
metadata, but this is not enforced.
-.. _metatadata-only-deposit
+.. _metatadata-only-deposit:
Metadata-only deposit
---------------------
@@ -271,6 +271,16 @@
:ref:`metadata deposit specification <spec-metadata-deposit>`
+Schema
+------
+
+Here is an XML schema to summarize the syntax described in this document:
+
+.. literalinclude:: swh.xsd
+ :language: xml
+
+
+
.. _SWORDv2: http://swordapp.github.io/SWORDv2-Profile/SWORDProfile.html
.. _AtomPub: https://tools.ietf.org/html/rfc5023
.. _DublinCore: https://www.dublincore.org/
diff --git a/docs/specs/swh.xsd b/docs/specs/swh.xsd
--- a/docs/specs/swh.xsd
+++ b/docs/specs/swh.xsd
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
+<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="https://www.softwareheritage.org/schema/2018/deposit"
xmlns:swh="https://www.softwareheritage.org/schema/2018/deposit"
@@ -45,7 +45,7 @@
<!-- references an origin by URL -->
<xsd:element name="origin">
<xsd:complexType>
- <xsd:attribute type="xsd:string" name="url"/>
+ <xsd:attribute type="xsd:string" name="url"/>
</xsd:complexType>
</xsd:element>
</xsd:schema>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 2, 10:51 AM (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3216899
Attached To
D5436: Include XML schema in the protocol specification
Event Timeline
Log In to Comment