MyNixOS website logo
Description

Extensible Resource Descriptor.

Types and encodings for "XRD, a simple generic format for describing resources".

oasis-xrd

Types and rendering of XRD and web-host metadata.

Part of the Fediverse suite of protocols.

XML

XML output of tests/example/Main.hs on example from Section B:

<XRD xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://docs.oasis-open.org/ns/xri/xrd-1.0">
    <Expires>
        1970-01-01T00:00:00Z
    </Expires>
    <Subject>
        http://example.com/gpburdell
    </Subject>
    <Property type="http://spec.example.net/type/person" xsi:nil="True"/>
    <Link href="http://services.example.com/auth" rel="http://spec.example.net/auth/1.0"/>
    <Link
      href="http://photos.example.com/gpburdell.jpg"
      rel="http://spec.example.net/photo/1.0"
      type="image/jpeg">
        <Title xml:lang="en">
            User Photo
        </Title>
        <Title xml:lang="de">
            Benutzerfoto
        </Title>
        <Property type="http://spec.example.net/created/1.0">
            1970-01-01
        </Property>
    </Link>
</XRD>

JSON (JRD)

JSON output of tests/example-json/Main.hs on example from RFC 6415:

{
    "subject": "http://blog.example.com/article/id/314",
    "expires": "1970-01-01T00:00:00Z",
    "aliases": [
        "http://blog.example.com/cool_new_thing",
        "http://blog.example.com/steve/article/7"
    ],
    "links": [
        {
            "titles": {
                "default": "About the Author",
                "en-us": "Author Information"
            },
            "href": "http://blog.example.com/author/steve",
            "type": "text/html",
            "rel": "author",
            "properties": {
                "http://example.com/role": "editor"
            }
        },
        {
            "titles": {
                "default": "The other author"
            },
            "href": "http://example.com/author/john",
            "rel": "author"
        },
        {
            "template": "http://example.com/copyright?id={uri}",
            "rel": "author"
        }
    ],
    "properties": {
        "http://blgx.example.net/ns/ext": null,
        "http://blgx.example.net/ns/version": "1.3"
    }
}
Metadata

Version

1.0

Platforms (75)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-darwin
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-darwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows