Menu

Techniques
how to use DOACC data in your own application / web site.

RDF/a

RDFa and the DOM

Using RDFa to embed machine-processble DOACC information into the structure of a web page, without intruding into the user experience.

In this example, the embedded semantic information is processed in-browser, using a javascript library to find all instances of doacc:symbol and apply an orange highlight style.

select: [ "s", "symbol" ], where: [ { pattern: [ "?s", "http://purl.org/net/bel-epa/doacc#symbol", "?symbol" ], setUserData: true } ]
symbol

Under the hood

Markup for the above unobtrusive data embedding

The example shows how semantic information is embedded into the markup and then how that information can be subsequently processed in-browser (finding all instances of doacc:symbol and applying an orange highlight).

select: [ "s", "symbol" ], where: [ { pattern: [ "?s", "http://purl.org/net/bel-epa/doacc#symbol", "?symbol" ], setUserData: true } ]
symbol

RDFa

Support for using and processing RDFa

The embedding technology is known as “RDFa”. The RDFa javascript library used here is Mark Birkbeck’s ubiquity-rdfa. For more information on using RDFa, see the RDFa primer.