Skip to content

"expansionMap" not supported #108

@ZababurinSergei

Description

@ZababurinSergei

I wanted to use the library.
But when I connected it as a module I got an error.
Here's the part of the code that doesn't work and get one error

details: "\"expansionMap\" not supported."
type:"jsonld.OptionsError"
  const unmappedProperties = [];

    const expansionMap = info => {
      if (info) {
        if (info.activeProperty) {
          unmappedProperties.push(
            `${info.activeProperty}.${info.unmappedProperty}`
          );
        } else if (info.unmappedProperty) {
          unmappedProperties.push(info.unmappedProperty);
        }
      }
    };


    
    // Remove all keys not present in the jsonld context
    const expanded = await jsonld.expand(jsonldDoc, {
      documentLoader,
      expansionMap,
    });

How can i fix this problem ?

Activity

gjgd

gjgd commented on Oct 1, 2023

@gjgd
Owner

Hi! I don't maintain this lib anymore but happy to help debug this. Can you provide a code example to repro the error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @gjgd@ZababurinSergei

        Issue actions

          "expansionMap" not supported · Issue #108 · gjgd/jsonld-checker