Index | OAT homepage | OpenLink Software

# OATDOCrdfbrowser

- OATDOCrdfbrowser
- _ _ rdfbrowser.js
- _ _ _ _ Objects
- _ _ _ _ _ _ OAT.RDFBrowser(div,options)
- _ _ _ _ Methods
- _ _ _ _ _ _ OAT.RDFBrowser::store.addURL(url)
- _ _ _ _ _ _ OAT.RDFBrowser::store.addTriples(triples, label, href)
- _ _ _ _ CSS IDs
- _ _ _ _ _ _ #rdf_side
- _ _ _ _ _ _ #rdf_cache
- _ _ _ _ _ _ #rdf_tabs
- _ _ _ _ _ _ #rdf_filter
- _ _ _ _ _ _ #rdf_content

## rdfbrowser.js

Multi-purpose RDF Browser.

### Objects

#### OAT.RDFBrowser(div,options)

Creates an RDF Browser object. Contents will be displayed inside `div` . You don't need to specify div if you have previously created (and appended) all elements with CSS IDs mentioned before. `options` may contain:

- `maxLength` - maximum length of tree node label (default `30` )
- `maxURILength` - maximum length of displayed URI (default `60` )
- `maxDistinctValues` - maximum number of leaves in one tree node (default `100` )
- `imagePath` - include trailing slash (default `OAT.Preferences.imagePath` )
- `defaultURL` - to be shown in input area (default `""` )
- `endpoint` - SPARQL query endpoint (default `"/sparql?query="` )

### Methods

#### OAT.RDFBrowser::store.addURL(url)

Adds data from `url` to the Browser.

#### OAT.RDFBrowser::store.addTriples(triples, label, href)

Adds a set of `triples` to the Browser. One should specify a `label` and originating URI as `href` .

### CSS IDs

#### #rdf_side

ToBeDone

#### #rdf_cache

ToBeDone

#### #rdf_tabs

ToBeDone

#### #rdf_filter

ToBeDone

#### #rdf_content

ToBeDone

Copyright (C) 2005-2008 OpenLink Software