-
Notifications
You must be signed in to change notification settings - Fork 6
DBPedia info plugin
cbara edited this page May 21, 2013
·
5 revisions
- Reference name: DBPediaInfoPlugin
- Code source:
dbpediapplugin.coffee
- Compiled Source:
dbpediapplugin.js
- Generates Info widgets for concepts that refer to DBPedia entries.
- It has a maximum size of 600px X 600px
- The expanded widget consists of a composition of maximum 4 tiles (sqares with size of 300px X 300px)
- LDPlugin, LSI
- This plugin reacts to annotations that contain in their resource fields DBPedia API calls that point to resources, ex:
http://dbpedia.org/resource/Cross-country_skiing
- 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 blue info icon and the label string value.
- Expanded widget composed a maximum 4 tile composition, each specialized on displaying a different type of information. As in the image below, the 4 tiles are squares of 300px X 300px.
- Tile/Square 1 - displays the widget label (overwitten label has priority over the concept label) and the
foaf: depiction
image, if available - Tile/Square 2 - displays the first half of the
dbpedia-owl:abstract
text (maximum 180 characters) - Tile/Square 4 - displays the rest of the text from
dbpedia-owl:abstract
, when needed - Tile/Square 3 - displays the LSI image, if available
- Tile/Square 1 - displays the widget label (overwitten label has priority over the concept label) and the
- Some compositions:
- Expanded info widget - tiles 1,2,3,4:
- Expanded info widget - tiles 1,2,4
- Expanded info tile - tiles 1,2
- Expanded info tile - tiles 2
- Expanded info widget - tiles 1,2,3,4:
- 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