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

Return only data sets which have the required dataFormatId #306

Open
christoph-maurer opened this issue Feb 15, 2023 · 1 comment
Open
Assignees
Labels
ISE Fraunhofer Institute for Solar Energy Systems ISE LBNL Lawrence Berkeley National Laboratory

Comments

@christoph-maurer
Copy link
Member

The queries for the dataFormats BED-JSON and LBNL/Klems work fine.

When I query for a dataFormatId which IGSDB does not yet offer, IGSDB returns all data sets instead of none.

query {
  MBforResourcesWithDataFormat: databases {
    nodes {
      name
      allOpticalData(
        where: {
          resources: {
            some: {
              dataFormatId: { equalTo: "dc419491-29de-496d-95a7-a41938a9200c" }
            }
          }
        }
      ) {
        nodes {
          resourceTree {
            root {
              value {
                dataFormatId
                locator
              }
            }
          }
        }
      }
    }
  }
}
{
  "data": {
    "MBforResourcesWithDataFormat": {
      "nodes": [
        {
          "name": "Daylighting Database",
          "allOpticalData": null
        },
        {
          "name": "IGSDB",
          "allOpticalData": {
            "nodes": [
              {
                "resourceTree": {
                  "root": {
                    "value": {
                      "dataFormatId": "9ca9e8f5-94bf-4fdd-81e3-31a58d7ca708",
                      "locator": "https://igsdb-icon.herokuapp.com/api/v1/products/196/?json_format=buildingenvelopedata.org"
                    }
                  }
                }
              },
@christoph-maurer christoph-maurer added ISE Fraunhofer Institute for Solar Energy Systems ISE LBNL Lawrence Berkeley National Laboratory labels Feb 15, 2023
@christoph-maurer christoph-maurer self-assigned this Feb 15, 2023
@github-project-automation github-project-automation bot moved this to 🆕 New in EQWIN-P Feb 15, 2023
@github-actions github-actions bot added the triage Review issue to make sure it is relevant, actionable, and has all the necessary information label Feb 15, 2023
@christoph-maurer christoph-maurer removed the triage Review issue to make sure it is relevant, actionable, and has all the necessary information label Feb 15, 2023
@christoph-maurer
Copy link
Member Author

I can query https://igsdb-v2.herokuapp.com/graphql/ with

{
  allOpticalData(
    where: {resources: {some: {dataFormatId: {equalTo: "dc419491-29de-496d-95a7-a41938a9200c"}}}}
  ) {
    edges {
      node {
        componentId
        nearnormalHemisphericalSolarReflectances
        nearnormalHemisphericalSolarTransmittances
        nearnormalHemisphericalVisibleReflectances
        nearnormalHemisphericalVisibleTransmittances
        infraredEmittances
        resourceTree {
          root {
            value {
              locator
            }
          }
        }
      }
    }
  }
}

but IGSDB_V2 still returns many data sets instead of none.

@simon-wacker simon-wacker self-assigned this Aug 7, 2024
@christoph-maurer christoph-maurer removed their assignment Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ISE Fraunhofer Institute for Solar Energy Systems ISE LBNL Lawrence Berkeley National Laboratory
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants