Index | OAT homepage | OpenLink Software

# OATDOCrdftabs

- OATDOCrdftabs
- _ _ rdftabs.js
- _ _ _ _ Must implement
- _ _ _ _ _ _ [constructor](parent, optionsObject)
- _ _ _ _ _ _ .elm
- _ _ _ _ _ _ .description
- _ _ _ _ _ _ .redraw()
- _ _ _ _ _ _ .reset(hard)
- _ _ _ _ Can use
- _ _ _ _ _ _ parent.data
- _ _ _ _ _ _ parent.store
- _ _ _ _ _ _ parent.getContentType(string)
- _ _ _ _ _ _ parent.getTitle(dataItem)
- _ _ _ _ _ _ parent.getURI(dataItem)
- _ _ _ _ _ _ parent.processLink(domNode, href, disabledActions)
- _ _ _ _ CSS classes
- _ _ _ _ _ _ .rdf_sort
- _ _ _ _ _ _ .rdf_group
- _ _ _ _ _ _ .rdf_clear
- _ _ _ _ _ _ .rdf_data
- _ _ _ _ _ _ .rdf_tl_port
- _ _ _ _ _ _ .rdf_tl_slider
- _ _ _ _ _ _ .rdf_tagcloud
- _ _ _ _ Available tabs
- _ _ _ _ _ _ OAT.RDFTabs.browser(parent, options)
- _ _ _ _ _ _ OAT.RDFTabs.navigator(parent, options)
- _ _ _ _ _ _ OAT.RDFTabs.triples(parent, options)
- _ _ _ _ _ _ OAT.RDFTabs.svg(parent, options)
- _ _ _ _ _ _ OAT.RDFTabs.map(parent, options)
- _ _ _ _ _ _ OAT.RDFTabs.timeline(parent, options)
- _ _ _ _ _ _ OAT.RDFTabs.images(parent, options)
- _ _ _ _ _ _ OAT.RDFTabs.tagcloud(parent)
- _ _ _ _ _ _ OAT.RDFTabs.fresnel(parent, options)

## rdftabs.js

Tabs API for OAT RDF applications. (see RDF Browser )

### Must implement

#### [constructor](parent, optionsObject)

`parent` is a reference to owner object (such as RDF Browser)

#### .elm

DOM node

#### .description

textual

#### .redraw()

redraw contents

#### .reset(hard)

called by parent when triple store changes. `hard` is bool; false when the change is initiated by applying filters; true when the change is initiated by adding/removing URL.

### Can use

#### parent.data

    {
       triples:[] // array of triples
       all:{} // object
       structured:{} // object with applied filters
    }

#### parent.store

Instance of `OAT.RDFStore`

#### parent.getContentType(string)

Returns:

- `1` - link
- `2` - mail
- `3` - image
- `0` - others

#### parent.getTitle(dataItem)

Returns title string for `dataItem`

#### parent.getURI(dataItem)

Returns URI for `dataItem`

#### parent.processLink(domNode, href, disabledActions)

Attach external handlers to a link.

- `domNode`
  - ToBeDone
- `href`
  - ToBeDone
- `disabledActions`
  - ToBeDone

### CSS classes

#### .rdf_sort

ToBeDone

#### .rdf_group

ToBeDone

#### .rdf_clear

ToBeDone

#### .rdf_data

ToBeDone

#### .rdf_tl_port

ToBeDone

#### .rdf_tl_slider

ToBeDone

#### .rdf_tagcloud

ToBeDone

### Available tabs

#### OAT.RDFTabs.browser(parent, options)

Used for viewing all filtered data, structured into resource items. `options` are:

- `pageSize` - default `20`
- `removeNS` - default `true`

#### OAT.RDFTabs.navigator(parent, options)

Used for navigating through all locally cached data, one resource at a time. Note that filters don't apply here; all data is displayed. `option` is

- `limit` - default `5`

#### OAT.RDFTabs.triples(parent, options)

Displays all filtered triples. `options` are:

- `pageSize` - default `20`
- `removeNS` - default `true`

#### OAT.RDFTabs.svg(parent, options)

Displays filtered data as SVG Graph. For performance reasons, the number of used triples is limited by the only option --

- `limit` - default `100`

#### OAT.RDFTabs.map(parent, options)

Plots all geodata found in filtered resources onto a map. `options` are:

- `provider` - default `OAT.MapData.TYPE_G`
- `fix` - default `OAT.MapData.FIX_ROUND1`

#### OAT.RDFTabs.timeline(parent, options)

Displays all date/time containing resources on an interactive time line. `options` are:

- `imagePath` - default `Oat.Preferences.imagePath`

#### OAT.RDFTabs.images(parent, options)

Displays all images found in filtered data set. `options` are:

- `columns` - default `4`
- `thumbSize` - default `150`
- `size` - default `600`

#### OAT.RDFTabs.tagcloud(parent)

Displays all links found in filtered data set.

#### OAT.RDFTabs.fresnel(parent, options)

Applies Fresnel RDF Vocabularies to all dereferenced data. `options` are:

- `defaultURL` - default `""`
- `autoload` - default `false`

Copyright (C) 2005-2008 OpenLink Software