Storyden

References

The backbone of the datagraph.

The Storyden reference format for URIs in <a> tags facilitates a rich content graph of related resources. Anchor tags in any rich text content may contain special URIs understood by Storyden as references to other resources. These references are used by the Datagraph to build a graph of linked content.

The URI scheme is sdr: followed by the resource kind and the resource identifier in xid format.

sdr:<resource_kind>/<resource_identifier>

Where the parts refer to:

when resource_kind isresource_identifier points to
postA generic post (thread or reply)
threadA thread
replyA reply to a thread
nodeA library node
collectionA member's collection
profileA member profile
eventAn event

For example, you can mention a user with a href value of sdr:profile/<identifier>. In a body value, this looks like:

<body>
  <p>
    yo <a href="sdr:profile/crk0gvqfunp7891n7ah0">@southclaws</a> what&#39;s up
  </p>
</body>

When Storyden receives a post with this content, it will parse the URIs and look for any containing the sdr scheme. It will then use the resource kind (profile) and identifier (crk0gvqfunp7891n7ah0) to link the post to a profile. It will then dispatch a notification to the mentioned member, letting them know someone's talking about them.

This functionality can be used for any Datagraph items, such as library nodes or threads.

Security

All HTML is strictly validated and sanitised before being stored. You can read more about this in the security section.

On this page