Last active
February 10, 2017 18:43
-
-
Save mamund/a86523bd8de82a903d5ecd1c4e3f6edb to your computer and use it in GitHub Desktop.
mapping example for AtomPub and ALPS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- atom feed document --> | |
<feed xmlns="http://www.w3.org/2005/Atom"> | |
<title>Example Feed</title> | |
<link href="http://example.org/"/> | |
<updated>2003-12-13T18:30:02Z</updated> | |
<author> | |
<name>John Doe</name> | |
</author> | |
<id>urn:uuid:60a76c80-d399-11d9-b93C-0003939e0af6</id> | |
<entry> | |
<title>Atom-Powered Robots Run Amok</title> | |
<link href="http://example.org/2003/12/13/atom03"/> | |
<id>urn:uuid:1225c695-cfb8-4ebb-aaaa-80da344efa6a</id> | |
<updated>2003-12-13T18:30:02Z</updated> | |
<summary>Some text.</summary> | |
</entry> | |
</feed> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<alps> | |
<doc>ALPS description for AtomPub</doc> | |
<!-- data elements --> | |
<descriptor id="title" type="semantic" /> | |
<descriptor id="update" type="semantic" /> | |
<descriptor id="name" type="semantic" /> | |
<descriptor id="id" type="semantic" /> | |
<descriptor id="summary" type="semantic" /> | |
<descriptor id="href" type="semantic" /> | |
<!-- action elements --> | |
<descriptor id="create" name="link" type="unsafe"> | |
<descriptor href="#href" /> | |
<descriptor href="#entry" /> | |
</descriptor> | |
<descriptor id="read" name="link" type="safe"> | |
<descriptor href="#href" /> | |
</descriptor> | |
<descriptor id="update" name="link" type="idempotent"> | |
<descriptor href="#entry" /> | |
<descriptor href="#href" /> | |
</descriptor> | |
<descriptor id="delete" name="link" type="idempotent"> | |
<descriptor href="#href" /> | |
</descriptor> | |
<!-- containers --> | |
<descriptor id="author" type="semantic"> | |
<descriptor href="#name" /> | |
</descriptor> | |
<descriptor id="entry" type="semantic"> | |
<descriptor href="#title" /> | |
<descriptor href="#link" /> | |
<descriptor href="#id" /> | |
<descriptor href="#updated" /> | |
<descriptpr href="#summary" /> | |
</descriptor> | |
</alps> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment