Given a DataPackage, it is currently very difficult to select a package member, essentially requiring
manual inspection to determine the identifier of the package member of interest.
For example, if I have downloaded a DataPackage via getDataPackage(),
I can manually use the show() method to view the package and visually determine which
member I need for some operation, but there is no easy programmatic way to select a member.
The selectMember() function would provide the ability to select a package member or
members based on info from the member slots (sysmeta, data (maybe), filename, dataURL, state).
In addition the package metadata object might be searched for info about the members (have to evaluate how difficult, reliable this would be).
When matching members are found, their identifiers would be returned.
Given a DataPackage, it is currently very difficult to select a package member, essentially requiring manual inspection to determine the identifier of the package member of interest.
For example, if I have downloaded a DataPackage via
getDataPackage()
, I can manually use theshow()
method to view the package and visually determine which member I need for some operation, but there is no easy programmatic way to select a member.The
selectMember()
function would provide the ability to select a package member or members based on info from the member slots (sysmeta, data (maybe), filename, dataURL, state). In addition the package metadata object might be searched for info about the members (have to evaluate how difficult, reliable this would be).When matching members are found, their identifiers would be returned.