• Topic
  • Discussion
  • OATWikiWeb.OATDOCrdfbrowser(Last) -- Owiki? , 2016-08-19 14:58:52 Edit owiki 2016-08-19 14:58:52

    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 (defaul t30)
    • 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 ur lto 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


    Referenced by...