%META:TOPICPARENT{name="OATDOCIndex"}% ---+ rdftabs.js Tabs API for OAT RDF applications. (see [[OATDOCrdfbrowser][RDF Browser]]) %TOC% ---++ Must implement ---+++ [constructor](parent, optionsObject) parent is a reference to owner object (such as [[OATDOCrdfbrowser][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 CategoryOAT CategoryDocumentation CategoryOpenSource CategoryToBeDone