Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single lookup with results from different dynamic sources fails #676

Open
ddeboer opened this issue Jun 14, 2022 · 0 comments
Open

Single lookup with results from different dynamic sources fails #676

ddeboer opened this issue Jun 14, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@ddeboer
Copy link
Member

ddeboer commented Jun 14, 2022

When looking up terms in sources that share a URI (#615), and the resulting terms come from different dynamic sources (i.e. determined by the SPARQL query rather than the prefix), the query fails:

query {
  lookup(
    uris: ["https://data.muziekschatten.nl/som/d78892","https://data.muziekschatten.nl/som/ed61aa47b70e4b1d9d0ac298d823efe1"],
  ) {
    uri
    source {
      ... on Source {
        uri
        name
        creators {
          uri
          name
          alternateName
        }
      }
      ... on Error {
        __typename
        message
      }
    }        
    result {
      ... on Term {
        uri
        prefLabel
        altLabel
        hiddenLabel
        scopeNote
        seeAlso
        broader {
          uri
          prefLabel
        }
      }
      ... on Error {
        __typename
        message
      }
    }
  }
}

returns:

Cannot read properties of undefined (reading 'terms')
@ddeboer ddeboer added the bug Something isn't working label Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant