In the first part we discussed how the data can be turned into content and be published such that it can be easily browsed. Now we discusse how to add discoverability to big data sets.
Each view in the app can publish these by either:
framePath
will allow virtualizing the paths: it will be used by the framework to build fullpaths that can be serizlied into hrefs or other RDF representations:
href = mo.params.fullPath + '/' + link.framePath;
// 1 Per View
modtask.calcViewLinks = function(contentItems, cb) {var linkString, querystring;
if (!contentItems || contentItems.length == 0) {querystring = 0;
linkString = 'Go Back';} else {
querystring = modtask.calcOffset() 1 + modtask.limit 1;linkString = 'Next >>';
}return cb([{
name: linkString,framePath: 'browse/' + querystring
}]);}
// 1 Per Content Item (gets repeated n times for n content entries)
modtask.calcContentsLinks = function(contentItems, cb) {return cb(contentItems.map(contentItem => {
return {name: 'goto article',
framePath: 'article/' + contentItem.address};
}));}