cleans a JSONLD document by removing empty objects and arrays and all reoccuring inner objects that have the same

  • Parameters

    • data: NamedEntityData

      the data to clean

    • schema: JSONSchema7
    • options: CleanJSONLDOptions

      jsonldContext - the jsonld context to use

      • defaultPrefix - the default prefix to use
      • walkerOptions - the walker options to use
      • keepContext - whether to keep the JSONLD context
      • removeInverseProperties - whether to remove inverse properties
      • pruneLinkedDocuments - whether to strip nested linked nodes to @id references only

    Returns Promise<any>