code: def jsonld(client, records):
      
      from renku.models._json import dumps
      from renku.models._jsonld import asjsonld
  
      data = [asjsonld(record) for record in records]
      echo_via_pager(dumps(data, indent=2))
docs: Format dataset files as JSON-LD.
  
      :param client: LocalClient instance.
      :param records: Filtered collection.