Store Configuration

From n² wiki

Jump to: navigation, search

(Note this page is very incomplete)

[edit] URI Templates

When RDF is submitted to the platform, blank nodes are automatically replaced by URIs. From Release 6 the syntax of these generated URIs can be defined on a store by store basis using a URI template. This is specified by using a new http://schemas.talis.com/2006/bigfoot/configuration#uriTemplate property of the store's metabox. The value of this property should be a literal containing the URI template.

The template supports the following substitution tokens:

  • {uid} which represents the hashcode that Bigfoot currently generates
  • {storeuri} which represents the URI of the store (e.g. http://api.talis.com/stores/mystore)
  • {storename} which represents the short name of the store (e.g. mystore)

All stores are configured to use the following default template:

{storeuri}/items/{uid}#self

Some possibilities could be to generate tag URIs instead using a template such as:

tag:example.com,2007-10-09:{storename}-{uid}

or to generate application specific URIs:

http://example.com/things/{uid}
Personal tools