This page contains a Flash digital edition of a book.
Semantic Web


RDF triples make web connections


Adding code to web pages that shows how resources link together can help people find and use information and data, writes David Stuart


At the beginning of 2010, when the UK government opened up its one-stop portal for government data (data.gov.uk) it didn’t just link to data sets in popular document formats such as Excel, but also re-published much of the data as Linked Data. This enables related data to be connected across the web by combining several concepts. Firstly, there are URIs (Uniform Resource Identifiers), which are strings of characters used to identify a name or resource on the internet. Then there is HTTP, the request-response protocol of the web. The third concept that is enabling data to be connected is RDF (Resource Description Framework). RDF is a set of specifications that are used


to describe objects and the relationships between them in the form of expressions that include three parts: subject; predicate; and object. These so-called RDF triples allow for the encoding of a semantic web, one that can be read by computers as well as humans. In its simplest form, the concept could


be applied to a sentence like ‘John drinks tea’ or ‘David likes apples’. Here, ‘John’ and ‘David’ are the subjects. The predicates are ‘drinks’ and ‘likes’ and the objects are ‘tea’ and ‘apples’. The idea of RDF triples builds on this: essentially RDF triples tie related resources and data together by indicating what something is, what attribute it has and how the attribute relates to it. A scientific paper can use RDF triples to express


24 Research Information October/November 2010 Writing RDF triples


There are several ways of representing RDF triples that have become established, either as separate RDF files or embedded within the web pages. The example below contains three triples representing the creator, date and subject relating to my website – www.davidstuart.co.uk:


David Stuart 2010-01-20





The above example is written in an RDF/XML format. An alternative, where the underlying triples can be more clearly seen, may be to store the triples in an N-Triples file. This contains the same underlying RDF triples, and could be handled by a computer in just the same way, but is formatted slightly differently:


“David Stuart” . “2010-01-20” . .


In the example, rather than having to explain what is meant by a ‘creator’, ‘date’, or ‘subject’, the predicates used are defined within Dublin Core. Similarly, it makes use of the Library of Congress Subject Headings for ‘technology writers’, which have been published online as RDF. Large sets of RDF triples are often stored in triplestores, databases purpose built for the


retrieval and storage of RDF, although individual RDF pages can be coded by hand, in much the same way as HTML may be coded by hand. For instance an individual may wish to create a Friend of a Friend file (www.foaf-project.org) to describe themselves and the relationships with other people (for example, Tim Berners-Lee’s FOAF file – www.w3.org/People/Berners-Lee/card. rdf), a task that is likely to be more difficult through a triplestore. Alternatively, RDF may be embedded into web pages using RDFa notation. A website with RDFa


is unlikely to look any different from any other website. For example, the Library Services web pages of De Montfort University (www.library.dmu.ac.uk) use RDFa to provide machine-readable information about library staff and their contact information. Having data in a machine-readable format means it can be extracted and manipulated automatically. For example, browser toolbars can enable contact information to be extracted from a web page and added to an address book at the click of a button. Interest in RDFa increased in 2009 when Google announced that it was going to start indexing some of this semantic information.


www.researchinformation.info


Page 1  |  Page 2  |  Page 3  |  Page 4  |  Page 5  |  Page 6  |  Page 7  |  Page 8  |  Page 9  |  Page 10  |  Page 11  |  Page 12  |  Page 13  |  Page 14  |  Page 15  |  Page 16  |  Page 17  |  Page 18  |  Page 19  |  Page 20  |  Page 21  |  Page 22  |  Page 23  |  Page 24  |  Page 25  |  Page 26  |  Page 27  |  Page 28  |  Page 29  |  Page 30  |  Page 31  |  Page 32  |  Page 33  |  Page 34  |  Page 35  |  Page 36
Produced with Yudu - www.yudu.com