Skip to content
cbara edited this page Mar 1, 2013 · 2 revisions
  • Reference name: DBPediaInfoPlugin
  • Source: dbpediapplugin.js

Features

  • Generates Info widgets for concepts that refer to DBPedia entries.
  • Creates a information panel that contains the foaf:depiction and the dbpedia-owl:abstract , in modal window

Dependencies

  • LDPlugin

Web API connections

  • 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.

Widgets

  • One widget composed of: a button with a blue info icon and the targeting rdfs:label string value.

Events

  • 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 widget is active to click events and will trigger a modal window with additional information .

Display in the modal window

  • On clicking or taping the widget, the plugin will generate a information modal window centered in the location name.
  • The modal window will take a width of 70% and height of 70% of the display resolution.