-
Notifications
You must be signed in to change notification settings - Fork 6
TV plugin
Cristian Bara edited this page Jul 8, 2013
·
4 revisions
- Reference name: TVPlugin
- Code source:
tvplugin.coffee
- Compiled Source:
tvplugin.js
- Generates 3 types of widgets for concepts that refer to DBPedia entries describing actors, directors and characters
- It has a maximum width of 500px and a variable height
- The expanded widget consists of a composition of maximum 4 tiles (sqares with size of 300px X 300px)
- LDPlugin
- This plugin reacts to annotations that contain in their resource fields DBPedia API calls that point to resources, ex:
http://dbpedia.org/resource/Michael_Moore
- A positive match logic decides which type of widget will be rendered, by matching the
rdf:type
anddc:subject
of to concept to entries in entity lists that describe actors, directors and film&tv series characters - The DBPedia response is cached by the Stanbol server. The annotation model implements extraction methods for
foaf:depiction
,rdfs:label
,dbpedia-owl:abstract
. - The plugin also integrates a LSI single image response by quarying the LSI for iamges related to the annotated DBPedia concept. The context input is void.
- Simple widget composed of: a button with a orange background, star icon and the label string value.
- Expanded widget composed a categorized list of biographical highlights and professional achievements
- Simple widget composed of: a button with a orange background, fedora icon and the label string value.
- Expanded widget composed a categorized list of biographical highlights and professional achievements
- This plugin will attach the rendering logic of the widgets in the
becomeActive
event handler of each annotation that contains a DBPedia call in its resource field.
- Each simple widget is active to 'click' events and will trigger a modal window with additional information .
- Expanded widgets close when 'clicking' the close (X) icon at the top left hand side of the expanded widget
- Each simple widget is active to 'tap' events and will trigger a modal window with additional information .
- Expanded widgets close when 'tapping' the close (X) icon at the top left hand side of the expanded widget
- Each simple widget binds activate events to 'OK' events and will trigger a widget expansion
- Expanded widgets close when pressing the 'BACK' button