refactored linked data access to allow for caching of linked data