code: def jsonld(client, datasets):
      
      from renku.models._json import dumps
      from renku.models._jsonld import asjsonld
  
      data = [
          asjsonld(
              dataset,
              basedir=os.path.relpath(
                  '.', start=str(dataset.__reference__.parent)
              )
          ) for dataset in datasets
      ]
      click.echo(dumps(data, indent=2))
docs: Format datasets as JSON-LD.