SStory

From TechWiki

Jump to: navigation, search

Contents

Introduction

The sStory component is a story viewer that displays the text of stories and tagged entities and concepts. Each story is related to "is-about" concepts, related named entities and other related stories. Each "is-about" concept and named entity found in the story is tagged by a GATE process pipeline. Normally this tagging is performed using the currently active domain ontology and dictionaries of named entities that are most likely to be part of these stories.

Related concepts and named entities can be highlighted in the story's text and related stories can be explored. A search feature has been implemented in the component, along with a full-screen mode. However, due to full-screen limitations in Flex, the search feature is disabled in full-screen mode.

Story's Concepts

All related concepts to a story have been tagged by the GATE system.

Related Stories

Related stories displayed for each story are related by the "is-about" concepts that they share. If two stories have been tagged with the same concept(s), then they will be marked as "related", and will be displayed in the "Related Stories" panel.

Named Entities

All related named entities to a story have been tagged by the GATE system.

Important Predicates

Some predicates/attributes describing a record are important for this story viewer component. This is a list of those important predicates and their usage in the context of the sStory component.

Prefixed Attribute Predicate URI Usage
sco_storyTextUri http://purl.org/ontology/sco#storyTextUri Text of the story to display in the story viewer
sco_storyAnnotatedTextUri http://purl.org/ontology/sco#storyAnnotatedTextUri GATE XML file that lists the text of the story, and its concepts and named entities annotations. This is the result of a GATE process pipeline.

Each of these attributes should define the target muni:Story record of the story viewer component. It is by the proper description of that target story record that the story viewer can fetch and process the story's text and annotations.

Styles

Style Name Description
sStory Style for the main sStory component

AS3 Usage Examples

  /** Create a resultset object instance from the input structXML data */
  var resultset:Resultset = new Resultset(XML(inputData));

  /** Create the sStory*/
  var semanticStory:sStory= new sStory();

  /** Target attributes to focus on at load time */
  var targetAttributes:Array = ["http://purl.org/ontology/sco#storyAnnotatedTextUri", "http://purl.org/ontology/sco#storyTextUri"];

  /** Create the schema */
  var schema:Schema = new Schema();
  schema.loadSchema("http://schema.file.url");


  /** Initialize the semantic control */
  semanticStory.percentWidth = 100;
  semanticStory.percentHeight = 100;
  semanticStory.semanticDataProvider = resultset;
  semanticStory.targetAttributes = targetAttributes;
  semanticStory.schema= schema;

  /** Add the sStoryto the main application */
  this.addChild(semanticStory);

MXML Usage Examples

  <sStory semanticDataProvider="{semanticDataProvider}"
                   targetAttributes="{targetAttributes}"
                   schema="{schema}" />

In this example, we assume that the {semanticDataProvider} variable is a Resultset, where the record description is defined, accessible at the creation time of the sStory. targetAttributes are the attributes to focus on at load time. The schema is the conceptual structure to load in the relation browser.

Personal tools