Rob Lee, The web semantic and Rails
Posted by Annalisa Afeltra in
Ruby on Rails -
no comments
An interesting overview of the main plugins and the most common techniques to create web contents that respect the semantic conventions of the RDF protocols and microformats.
There exists two main formats to include semantic information inside a web page: MicroFormats and RDF. RDF is the protocol used by DBPedia, a real semantic encyclopedia that looks up for each term inserted a list of possible attributes (Click here for an example) in RDF format.
With active_rdf it is possible to interrogate a RDF page using SPARQL, a powerful query language , to only retrieve the information that we are interested in, this information can then be formatted inside the web page using the microformats.
To show a PoC (Proof-Of-Concept) of this technique Rob Lee has shown, in the course of the session, a script that:- Receives the text in input
- Uses the Yahoo Terms Extraction Api to retrieve the exact name of the text inserted (ie. ‘Micheal Jackson’)
- To retrieve the document RDF of the DBpedia looking at the character retrieved from the text
- Interrogate the document with SPARQL to obtain additional information on such personality (URL, immagine, ecc..)
- Add such information under the form of microformats to the original text, in this way enriching the valuable semantic contribution.
Applying a variation of the same techniques of Rob was to be able to create a platform that aggregates news looking at famous singers using the recording studios as a grouping factor to which they belong to.

