Changeset View
Changeset View
Standalone View
Standalone View
docs/specs/protocol-reference.rst
Show First 20 Lines • Show All 204 Lines • ▼ Show 20 Lines | |||||
All deposits must include: | All deposits must include: | ||||
* an ``<atom:author>`` tag with an ``<atom:name>`` and ``<atom:email>``, and | * an ``<atom:author>`` tag with an ``<atom:name>`` and ``<atom:email>``, and | ||||
* either ``<atom:name>`` or ``<atom:title>`` | * either ``<atom:name>`` or ``<atom:title>`` | ||||
We also highly recommend their CodeMeta equivalent, and any other relevant | We also highly recommend their CodeMeta equivalent, and any other relevant | ||||
metadata, but this is not enforced. | metadata, but this is not enforced. | ||||
.. _metatadata-only-deposit | .. _metatadata-only-deposit: | ||||
Metadata-only deposit | Metadata-only deposit | ||||
--------------------- | --------------------- | ||||
The swh-deposit server can also be without a source code artifact, but only | The swh-deposit server can also be without a source code artifact, but only | ||||
to provide metadata that describes an arbitrary origin or object in | to provide metadata that describes an arbitrary origin or object in | ||||
Software Heritage; known as extrinsic metadata. | Software Heritage; known as extrinsic metadata. | ||||
▲ Show 20 Lines • Show All 44 Lines • ▼ Show 20 Lines | <entry xmlns="http://www.w3.org/2005/Atom" | ||||
<!-- ... --> | <!-- ... --> | ||||
</entry> | </entry> | ||||
For details on the semantics, see the | For details on the semantics, see the | ||||
:ref:`metadata deposit specification <spec-metadata-deposit>` | :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 | .. _SWORDv2: http://swordapp.github.io/SWORDv2-Profile/SWORDProfile.html | ||||
.. _AtomPub: https://tools.ietf.org/html/rfc5023 | .. _AtomPub: https://tools.ietf.org/html/rfc5023 | ||||
.. _DublinCore: https://www.dublincore.org/ | .. _DublinCore: https://www.dublincore.org/ | ||||
.. _CodeMeta: https://codemeta.github.io/ | .. _CodeMeta: https://codemeta.github.io/ |