building-envelope-data / database

Reference implementation of a product data server as part of the product data network buildingenvelopedata.org
MIT License
0 stars 0 forks source link

Create a test to fill the database with examples #20

Open christoph-maurer opened 2 years ago

christoph-maurer commented 2 years ago

The next comment is an example of a mutation to create data set examples in a new database instances. It would be good to have a test for this.

christoph-maurer commented 2 years ago
mutation {
  RETROLuxOwithHeatControlGlazingCalorimetric: createCalorimetricData(
    input: {
      name: "RETROLuxO with heat control glazing, calorimetric data, BED-JSON"
      componentId: "0091f7f1-8f35-4f89-8b3e-cecf342cc583"
      accessToken: "PfXBTba4NMSVDo5ys4XIzIibeTVbmnkHMiv4LbeDOSg="
      appliedMethod: {
        arguments: []
        methodId: "f8c2283a-7fe0-45b5-9608-9fbda4e2d415"
        sources: []
      }
      approvals: []
      createdAt: "2021-10-12T13:45:30"
      creatorId: "5320d6fb-b96d-4aeb-a24c-eb7036d3437a"
      description: ""
      locale: "en-US"
      uValues: [1.1]
      gValues: [0.52]
      rootResource: {
        archivedFilesMetaInformation: []
        description: ""
        dataFormatId: "9ca9e8f5-94bf-4fdd-81e3-31a58d7ca708"
        hashValue: ""
      }
      warnings: []
    }
  ) {
    calorimetricData {
      name
      componentId
      appliedMethod {
        methodId
      }
      createdAt
      creatorId
      description
      id
      locale
      resources {
        description
        dataFormatId
        hashValue
        id
        locator
        uuid
      }
      uuid
      warnings
    }
    errors {
      code
      message
      path
    }
  }
  RETROLuxOwithHeatControlGlazingKlems: createOpticalData(
    input: {
      name: "RETROLuxO with heat control glazing, optical data, Klems-BSDF"
      componentId: "0091f7f1-8f35-4f89-8b3e-cecf342cc583"
      accessToken: "PfXBTba4NMSVDo5ys4XIzIibeTVbmnkHMiv4LbeDOSg="
      appliedMethod: {
        arguments: []
        methodId: "f8c2283a-7fe0-45b5-9608-9fbda4e2d415"
        sources: []
      }
      approvals: []
      cielabColors: []
      colorRenderingIndices: []
      createdAt: "2021-10-12T13:45:30"
      creatorId: "5320d6fb-b96d-4aeb-a24c-eb7036d3437a"
      description: ""
      infraredEmittances: []
      locale: "en-US"
      nearnormalHemisphericalSolarReflectances: []
      nearnormalHemisphericalSolarTransmittances: []
      nearnormalHemisphericalVisibleReflectances: []
      nearnormalHemisphericalVisibleTransmittances: []
      rootResource: {
        archivedFilesMetaInformation: []
        description: ""
        dataFormatId: "e021cf20-e887-4dce-ad27-35da70cec472"
        hashValue: ""
      }
      warnings: []
    }
  ) {
    opticalData {
      appliedMethod {
        arguments {
          name
          # value
        }
        methodId
        sources {
          name
          value {
            dataId
            dataKind
            dataTimestamp
            databaseId
          }
        }
      }
      cielabColors {
        aStar
        bStar
        lStar
      }
      colorRenderingIndices
      componentId
      createdAt
      creatorId
      description
      id
      infraredEmittances
      locale
      name
      nearnormalHemisphericalSolarReflectances
      nearnormalHemisphericalSolarTransmittances
      nearnormalHemisphericalVisibleReflectances
      nearnormalHemisphericalVisibleTransmittances
      resourceTree {
        nonRootVertices {
          appliedConversionMethod {
            arguments {
              name
              # value
            }
            methodId
            sourceName
          }
          parentId
          value {
            archivedFilesMetaInformation {
              dataFormatId
              path
            }
            description
            dataFormatId
            hashValue
            id
            locator
            uuid
          }
          vertexId
        }
        root {
          value {
            archivedFilesMetaInformation {
              dataFormatId
              path
            }
            description
            dataFormatId
            hashValue
            id
            locator
            uuid
          }
          vertexId
        }
      }
      resources {
        archivedFilesMetaInformation {
          dataFormatId
          path
        }
        description
        dataFormatId
        hashValue
        id
        locator
        uuid
      }
      uuid
      warnings
    }
    errors {
      code
      message
      path
    }
  }
  RETROLuxOwithHeatControlGlazingTensorTree: createOpticalData(
    input: {
      name: "RETROLuxO with heat control glazing, optical data, TensorTree-BSDF"
      componentId: "0091f7f1-8f35-4f89-8b3e-cecf342cc583"
      accessToken: "PfXBTba4NMSVDo5ys4XIzIibeTVbmnkHMiv4LbeDOSg="
      appliedMethod: {
        arguments: []
        methodId: "f8c2283a-7fe0-45b5-9608-9fbda4e2d415"
        sources: []
      }
      approvals: []
      cielabColors: []
      colorRenderingIndices: []
      createdAt: "2021-10-12T13:45:30"
      creatorId: "5320d6fb-b96d-4aeb-a24c-eb7036d3437a"
      description: ""
      infraredEmittances: []
      locale: "en-US"
      nearnormalHemisphericalSolarReflectances: []
      nearnormalHemisphericalSolarTransmittances: []
      nearnormalHemisphericalVisibleReflectances: []
      nearnormalHemisphericalVisibleTransmittances: []
      rootResource: {
        archivedFilesMetaInformation: []
        description: ""
        dataFormatId: "dc419491-29de-496d-95a7-a41938a9200c"
        hashValue: ""
      }
      warnings: []
    }
  ) {
    opticalData {
      name
      componentId
      appliedMethod {
        methodId
      }
      cielabColors {
        aStar
        bStar
        lStar
      }
      colorRenderingIndices
      createdAt
      creatorId
      description
      id
      infraredEmittances
      locale
      nearnormalHemisphericalSolarReflectances
      nearnormalHemisphericalSolarTransmittances
      nearnormalHemisphericalVisibleReflectances
      nearnormalHemisphericalVisibleTransmittances
      resources {
        archivedFilesMetaInformation {
          dataFormatId
          path
        }
        description
        dataFormatId
        hashValue
        id
        locator
        uuid
      }
      uuid
      warnings
    }
    errors {
      code
      message
      path
    }
  }
  RETROLuxOwithSolarControlGlazingCalorimetric: createCalorimetricData(
    input: {
      name: "RETROLuxO with solar control glazing, calorimetric data, BED-JSON"
      componentId: "9dffecac-0903-4172-aea4-db8bed9d06b3"
      accessToken: "PfXBTba4NMSVDo5ys4XIzIibeTVbmnkHMiv4LbeDOSg="
      appliedMethod: {
        arguments: []
        methodId: "f8c2283a-7fe0-45b5-9608-9fbda4e2d415"
        sources: []
      }
      approvals: []
      createdAt: "2021-10-12T13:45:30"
      creatorId: "5320d6fb-b96d-4aeb-a24c-eb7036d3437a"
      description: ""
      locale: "en-US"
      uValues: []
      gValues: [0.32]
      rootResource: {
        archivedFilesMetaInformation: []
        description: ""
        dataFormatId: "9ca9e8f5-94bf-4fdd-81e3-31a58d7ca708"
        hashValue: ""
      }
      warnings: []
    }
  ) {
    calorimetricData {
      name
      componentId
      appliedMethod {
        methodId
      }
      createdAt
      creatorId
      description
      id
      locale
      resources {
        description
        dataFormatId
        hashValue
        id
        locator
        uuid
      }
      uuid
      warnings
    }
    errors {
      code
      message
      path
    }
  }
  RETROLuxOwithSolarControlGlazingOptical: createOpticalData(
    input: {
      name: "RETROLuxO with solar control glazing, optical data, BED-JSON"
      componentId: "9dffecac-0903-4172-aea4-db8bed9d06b3"
      accessToken: "PfXBTba4NMSVDo5ys4XIzIibeTVbmnkHMiv4LbeDOSg="
      appliedMethod: {
        arguments: []
        methodId: "f8c2283a-7fe0-45b5-9608-9fbda4e2d415"
        sources: []
      }
      approvals: []
      cielabColors: []
      colorRenderingIndices: []
      createdAt: "2021-10-12T13:45:30"
      creatorId: "5320d6fb-b96d-4aeb-a24c-eb7036d3437a"
      description: ""
      infraredEmittances: []
      locale: "en-US"
      nearnormalHemisphericalSolarReflectances: []
      nearnormalHemisphericalSolarTransmittances: []
      nearnormalHemisphericalVisibleReflectances: []
      nearnormalHemisphericalVisibleTransmittances: [0.63]
      rootResource: {
        archivedFilesMetaInformation: []
        description: ""
        dataFormatId: "9ca9e8f5-94bf-4fdd-81e3-31a58d7ca708"
        hashValue: ""
      }
      warnings: []
    }
  ) {
    opticalData {
      name
      componentId
      appliedMethod {
        methodId
      }
      cielabColors {
        aStar
        bStar
        lStar
      }
      colorRenderingIndices
      createdAt
      creatorId
      description
      id
      infraredEmittances
      locale
      nearnormalHemisphericalSolarReflectances
      nearnormalHemisphericalSolarTransmittances
      nearnormalHemisphericalVisibleReflectances
      nearnormalHemisphericalVisibleTransmittances
      resources {
        archivedFilesMetaInformation {
          dataFormatId
          path
        }
        description
        dataFormatId
        hashValue
        id
        locator
        uuid
      }
      uuid
      warnings
    }
    errors {
      code
      message
      path
    }
  }
  SunovationGlazingLayerCalorimetric: createCalorimetricData(
    input: {
      name: "BIPV Glazing Example center-of-glazing, calorimetric data, BED-JSON"
      componentId: "3ffc64af-d1f3-4a2e-a646-b007b7137245"
      accessToken: "PfXBTba4NMSVDo5ys4XIzIibeTVbmnkHMiv4LbeDOSg="
      appliedMethod: {
        arguments: []
        methodId: "f8c2283a-7fe0-45b5-9608-9fbda4e2d415"
        sources: []
      }
      approvals: []
      createdAt: "2021-10-12T13:45:30"
      creatorId: "5320d6fb-b96d-4aeb-a24c-eb7036d3437a"
      description: ""
      locale: "en-US"
      uValues: [1.1]
      gValues: [0.5]
      rootResource: {
        archivedFilesMetaInformation: []
        description: ""
        dataFormatId: "9ca9e8f5-94bf-4fdd-81e3-31a58d7ca708"
        hashValue: ""
      }
      warnings: []
    }
  ) {
    calorimetricData {
      name
      componentId
      appliedMethod {
        methodId
      }
      createdAt
      creatorId
      description
      id
      locale
      resources {
        description
        dataFormatId
        hashValue
        id
        locator
        uuid
      }
      uuid
      warnings
    }
    errors {
      code
      message
      path
    }
  }
  SunovationGlazingLayerOptical: createOpticalData(
    input: {
      name: "BIPV Glazing Example center-of-glazing, optical data, BED-JSON"
      componentId: "3ffc64af-d1f3-4a2e-a646-b007b7137245"
      accessToken: "PfXBTba4NMSVDo5ys4XIzIibeTVbmnkHMiv4LbeDOSg="
      appliedMethod: {
        arguments: []
        methodId: "f8c2283a-7fe0-45b5-9608-9fbda4e2d415"
        sources: []
      }
      approvals: []
      cielabColors: []
      colorRenderingIndices: []
      createdAt: "2021-10-12T13:45:30"
      creatorId: "5320d6fb-b96d-4aeb-a24c-eb7036d3437a"
      description: ""
      infraredEmittances: []
      locale: "en-US"
      nearnormalHemisphericalSolarReflectances: []
      nearnormalHemisphericalSolarTransmittances: []
      nearnormalHemisphericalVisibleReflectances: [0.14]
      nearnormalHemisphericalVisibleTransmittances: [0.32]
      rootResource: {
        archivedFilesMetaInformation: []
        description: ""
        dataFormatId: "9ca9e8f5-94bf-4fdd-81e3-31a58d7ca708"
        hashValue: ""
      }
      warnings: []
    }
  ) {
    opticalData {
      name
      componentId
      appliedMethod {
        methodId
      }
      cielabColors {
        aStar
        bStar
        lStar
      }
      colorRenderingIndices
      createdAt
      creatorId
      description
      id
      infraredEmittances
      locale
      nearnormalHemisphericalSolarReflectances
      nearnormalHemisphericalSolarTransmittances
      nearnormalHemisphericalVisibleReflectances
      nearnormalHemisphericalVisibleTransmittances
      resources {
        archivedFilesMetaInformation {
          dataFormatId
          path
        }
        description
        dataFormatId
        hashValue
        id
        locator
        uuid
      }
      uuid
      warnings
    }
    errors {
      code
      message
      path
    }
  }
  SunovationGlazingLayerPhotovoltaic: createPhotovoltaicData(
    input: {
      name: "BIPV Glazing Example center-of-glazing, photovoltaic data, BED-JSON"
      componentId: "3ffc64af-d1f3-4a2e-a646-b007b7137245"
      accessToken: "PfXBTba4NMSVDo5ys4XIzIibeTVbmnkHMiv4LbeDOSg="
      appliedMethod: {
        arguments: []
        methodId: "f8c2283a-7fe0-45b5-9608-9fbda4e2d415"
        sources: []
      }
      approvals: []
      createdAt: "2021-10-12T13:45:30"
      creatorId: "5320d6fb-b96d-4aeb-a24c-eb7036d3437a"
      description: ""
      locale: "en-US"
      rootResource: {
        archivedFilesMetaInformation: []
        description: ""
        dataFormatId: "9ca9e8f5-94bf-4fdd-81e3-31a58d7ca708"
        hashValue: ""
      }
      warnings: []
    }
  ) {
    photovoltaicData {
      name
      componentId
      appliedMethod {
        methodId
      }
      createdAt
      creatorId
      description
      id
      locale
      resources {
        archivedFilesMetaInformation {
          dataFormatId
          path
        }
        description
        dataFormatId
        hashValue
        id
        locator
        uuid
      }
      uuid
      warnings
    }
    errors {
      code
      message
      path
    }
  }
  SunovationModuleUnitPhotovoltaic: createPhotovoltaicData(
    input: {
      name: "BIPV Module Example, photovoltaic data, BED-JSON"
      componentId: "38896180-7a13-4341-8288-d122ef3c741a"
      accessToken: "PfXBTba4NMSVDo5ys4XIzIibeTVbmnkHMiv4LbeDOSg="
      appliedMethod: {
        arguments: []
        methodId: "f8c2283a-7fe0-45b5-9608-9fbda4e2d415"
        sources: []
      }
      approvals: []
      createdAt: "2021-10-12T13:45:30"
      creatorId: "5320d6fb-b96d-4aeb-a24c-eb7036d3437a"
      description: ""
      locale: "en-US"
      rootResource: {
        archivedFilesMetaInformation: []
        description: ""
        dataFormatId: "9ca9e8f5-94bf-4fdd-81e3-31a58d7ca708"
        hashValue: ""
      }
      warnings: []
    }
  ) {
    photovoltaicData {
      name
      componentId
      appliedMethod {
        methodId
      }
      createdAt
      creatorId
      description
      id
      locale
      resources {
        archivedFilesMetaInformation {
          dataFormatId
          path
        }
        description
        dataFormatId
        hashValue
        id
        locator
        uuid
      }
      uuid
      warnings
    }
    errors {
      code
      message
      path
    }
  }
  SunovationGlazingUnitCalorimetric: createCalorimetricData(
    input: {
      name: "BIPV Glazing Example, calorimetric data, BED-JSON"
      componentId: "34f7aebd-5d11-4db7-a5d0-18b51af8f817"
      accessToken: "PfXBTba4NMSVDo5ys4XIzIibeTVbmnkHMiv4LbeDOSg="
      appliedMethod: {
        arguments: []
        methodId: "f8c2283a-7fe0-45b5-9608-9fbda4e2d415"
        sources: []
      }
      approvals: []
      createdAt: "2021-10-12T13:45:30"
      creatorId: "5320d6fb-b96d-4aeb-a24c-eb7036d3437a"
      description: ""
      locale: "en-US"
      uValues: [1.23]
      gValues: [0.5]
      rootResource: {
        archivedFilesMetaInformation: []
        description: ""
        dataFormatId: "9ca9e8f5-94bf-4fdd-81e3-31a58d7ca708"
        hashValue: ""
      }
      warnings: []
    }
  ) {
    calorimetricData {
      name
      componentId
      appliedMethod {
        methodId
      }
      createdAt
      creatorId
      description
      id
      locale
      resources {
        description
        dataFormatId
        hashValue
        id
        locator
        uuid
      }
      uuid
      warnings
    }
    errors {
      code
      message
      path
    }
  }
  SunovationGlazingUnitPhotovoltaic: createPhotovoltaicData(
    input: {
      name: "BIPV Glazing Example, photovoltaic data, BED-JSON"
      componentId: "34f7aebd-5d11-4db7-a5d0-18b51af8f817"
      accessToken: "PfXBTba4NMSVDo5ys4XIzIibeTVbmnkHMiv4LbeDOSg="
      appliedMethod: {
        arguments: []
        methodId: "f8c2283a-7fe0-45b5-9608-9fbda4e2d415"
        sources: []
      }
      approvals: []
      createdAt: "2021-10-12T13:45:30"
      creatorId: "5320d6fb-b96d-4aeb-a24c-eb7036d3437a"
      description: ""
      locale: "en-US"
      rootResource: {
        archivedFilesMetaInformation: []
        description: ""
        dataFormatId: "9ca9e8f5-94bf-4fdd-81e3-31a58d7ca708"
        hashValue: ""
      }
      warnings: []
    }
  ) {
    photovoltaicData {
      name
      componentId
      appliedMethod {
        methodId
      }
      createdAt
      creatorId
      description
      id
      locale
      resources {
        archivedFilesMetaInformation {
          dataFormatId
          path
        }
        description
        dataFormatId
        hashValue
        id
        locator
        uuid
      }
      uuid
      warnings
    }
    errors {
      code
      message
      path
    }
  }
  SunovationGlazingUnitSubcomponentsImage: createPhotovoltaicData(
    input: {
      name: "BIPV Glazing Example, schematic drawing of the subcomponents, SVG"
      componentId: "34f7aebd-5d11-4db7-a5d0-18b51af8f817"
      accessToken: "PfXBTba4NMSVDo5ys4XIzIibeTVbmnkHMiv4LbeDOSg="
      appliedMethod: {
        arguments: []
        methodId: "f8c2283a-7fe0-45b5-9608-9fbda4e2d415"
        sources: []
      }
      approvals: []
      createdAt: "2021-10-12T13:45:30"
      creatorId: "5320d6fb-b96d-4aeb-a24c-eb7036d3437a"
      description: ""
      locale: "en-US"
      rootResource: {
        archivedFilesMetaInformation: []
        description: ""
        dataFormatId: "df4acac6-9591-4a72-bb69-74eaf304ee68"
        hashValue: ""
      }
      warnings: []
    }
  ) {
    photovoltaicData {
      name
      componentId
      appliedMethod {
        methodId
      }
      createdAt
      creatorId
      description
      id
      locale
      resources {
        archivedFilesMetaInformation {
          dataFormatId
          path
        }
        description
        dataFormatId
        hashValue
        id
        locator
        uuid
      }
      uuid
      warnings
    }
    errors {
      code
      message
      path
    }
  }
  SunovationGlazingUnitTechnicalDrawing: createPhotovoltaicData(
    input: {
      name: "BIPV Glazing Example, technical drawing, PDF"
      componentId: "34f7aebd-5d11-4db7-a5d0-18b51af8f817"
      accessToken: "PfXBTba4NMSVDo5ys4XIzIibeTVbmnkHMiv4LbeDOSg="
      appliedMethod: {
        arguments: []
        methodId: "f8c2283a-7fe0-45b5-9608-9fbda4e2d415"
        sources: []
      }
      approvals: []
      createdAt: "2021-10-12T13:45:30"
      creatorId: "5320d6fb-b96d-4aeb-a24c-eb7036d3437a"
      description: ""
      locale: "en-US"
      rootResource: {
        archivedFilesMetaInformation: []
        description: ""
        dataFormatId: "e8cd8dce-4e1f-4219-b9cd-74a0ae55e98c"
        hashValue: ""
      }
      warnings: []
    }
  ) {
    photovoltaicData {
      name
      componentId
      appliedMethod {
        methodId
      }
      createdAt
      creatorId
      description
      id
      locale
      resources {
        archivedFilesMetaInformation {
          dataFormatId
          path
        }
        description
        dataFormatId
        hashValue
        id
        locator
        uuid
      }
      uuid
      warnings
    }
    errors {
      code
      message
      path
    }
  }
  SunovationModuleLayerPhotovoltaic: createPhotovoltaicData(
    input: {
      name: "BIPV Module Example center-of-glazing, photovoltaic data, BED-JSON"
      componentId: "5f57ce25-ab89-4d0d-9873-81d5dc743573"
      accessToken: "PfXBTba4NMSVDo5ys4XIzIibeTVbmnkHMiv4LbeDOSg="
      appliedMethod: {
        arguments: []
        methodId: "f8c2283a-7fe0-45b5-9608-9fbda4e2d415"
        sources: []
      }
      approvals: []
      createdAt: "2021-10-12T13:45:30"
      creatorId: "5320d6fb-b96d-4aeb-a24c-eb7036d3437a"
      description: ""
      locale: "en-US"
      rootResource: {
        archivedFilesMetaInformation: []
        description: ""
        dataFormatId: "9ca9e8f5-94bf-4fdd-81e3-31a58d7ca708"
        hashValue: ""
      }
      warnings: []
    }
  ) {
    photovoltaicData {
      name
      componentId
      appliedMethod {
        methodId
      }
      createdAt
      creatorId
      description
      id
      locale
      resources {
        archivedFilesMetaInformation {
          dataFormatId
          path
        }
        description
        dataFormatId
        hashValue
        id
        locator
        uuid
      }
      uuid
      warnings
    }
    errors {
      code
      message
      path
    }
  }
  SunovationEnamelLayerOptical: createOpticalData(
    input: {
      name: "An example of an enamel coating as part of a BIPV module, optical data, BED-JSON"
      componentId: "0e7dd5e8-7b11-4d4c-8894-38d62987c20f"
      accessToken: "PfXBTba4NMSVDo5ys4XIzIibeTVbmnkHMiv4LbeDOSg="
      appliedMethod: {
        arguments: []
        methodId: "f8c2283a-7fe0-45b5-9608-9fbda4e2d415"
        sources: []
      }
      approvals: []
      cielabColors: [{ aStar: 5, bStar: 1, lStar: -1 }]
      colorRenderingIndices: []
      createdAt: "2021-10-12T13:45:30"
      creatorId: "5320d6fb-b96d-4aeb-a24c-eb7036d3437a"
      description: ""
      infraredEmittances: []
      locale: "en-US"
      nearnormalHemisphericalSolarReflectances: []
      nearnormalHemisphericalSolarTransmittances: []
      nearnormalHemisphericalVisibleReflectances: []
      nearnormalHemisphericalVisibleTransmittances: []
      rootResource: {
        archivedFilesMetaInformation: []
        description: ""
        dataFormatId: "9ca9e8f5-94bf-4fdd-81e3-31a58d7ca708"
        hashValue: ""
      }
      warnings: []
    }
  ) {
    opticalData {
      name
      componentId
      appliedMethod {
        methodId
      }
      cielabColors {
        aStar
        bStar
        lStar
      }
      colorRenderingIndices
      createdAt
      creatorId
      description
      id
      infraredEmittances
      locale
      nearnormalHemisphericalSolarReflectances
      nearnormalHemisphericalSolarTransmittances
      nearnormalHemisphericalVisibleReflectances
      nearnormalHemisphericalVisibleTransmittances
      resources {
        archivedFilesMetaInformation {
          dataFormatId
          path
        }
        description
        dataFormatId
        hashValue
        id
        locator
        uuid
      }
      uuid
      warnings
    }
    errors {
      code
      message
      path
    }
  }
  WaremaVenetianBlindWithGlazingKlems: createOpticalData(
    input: {
      name: "Venetian Blind with Glazing as Example, optical data, Klems-BSDF"
      componentId: "9386f355-2069-4490-bdd1-e1acdb233e12"
      accessToken: "PfXBTba4NMSVDo5ys4XIzIibeTVbmnkHMiv4LbeDOSg="
      appliedMethod: {
        arguments: []
        methodId: "f8c2283a-7fe0-45b5-9608-9fbda4e2d415"
        sources: []
      }
      approvals: []
      cielabColors: []
      colorRenderingIndices: []
      createdAt: "2021-10-12T13:45:30"
      creatorId: "5320d6fb-b96d-4aeb-a24c-eb7036d3437a"
      description: ""
      infraredEmittances: []
      locale: "en-US"
      nearnormalHemisphericalSolarReflectances: []
      nearnormalHemisphericalSolarTransmittances: []
      nearnormalHemisphericalVisibleReflectances: []
      nearnormalHemisphericalVisibleTransmittances: []
      rootResource: {
        archivedFilesMetaInformation: []
        description: ""
        dataFormatId: "e021cf20-e887-4dce-ad27-35da70cec472"
        hashValue: ""
      }
      warnings: []
    }
  ) {
    opticalData {
      appliedMethod {
        arguments {
          name
          # value
        }
        methodId
        sources {
          name
          value {
            dataId
            dataKind
            dataTimestamp
            databaseId
          }
        }
      }
      cielabColors {
        aStar
        bStar
        lStar
      }
      colorRenderingIndices
      componentId
      createdAt
      creatorId
      description
      id
      infraredEmittances
      locale
      name
      nearnormalHemisphericalSolarReflectances
      nearnormalHemisphericalSolarTransmittances
      nearnormalHemisphericalVisibleReflectances
      nearnormalHemisphericalVisibleTransmittances
      resourceTree {
        nonRootVertices {
          appliedConversionMethod {
            arguments {
              name
              # value
            }
            methodId
            sourceName
          }
          parentId
          value {
            archivedFilesMetaInformation {
              dataFormatId
              path
            }
            description
            dataFormatId
            hashValue
            id
            locator
            uuid
          }
          vertexId
        }
        root {
          value {
            archivedFilesMetaInformation {
              dataFormatId
              path
            }
            description
            dataFormatId
            hashValue
            id
            locator
            uuid
          }
          vertexId
        }
      }
      resources {
        archivedFilesMetaInformation {
          dataFormatId
          path
        }
        description
        dataFormatId
        hashValue
        id
        locator
        uuid
      }
      uuid
      warnings
    }
    errors {
      code
      message
      path
    }
  }
  WaremaVenetianBlindWithGlazingTensorTree: createOpticalData(
    input: {
      name: "Venetian Blind with Glazing as Example, optical data, TensorTree-BSDF"
      componentId: "9386f355-2069-4490-bdd1-e1acdb233e12"
      accessToken: "PfXBTba4NMSVDo5ys4XIzIibeTVbmnkHMiv4LbeDOSg="
      appliedMethod: {
        arguments: []
        methodId: "f8c2283a-7fe0-45b5-9608-9fbda4e2d415"
        sources: []
      }
      approvals: []
      cielabColors: []
      colorRenderingIndices: []
      createdAt: "2021-10-12T13:45:30"
      creatorId: "5320d6fb-b96d-4aeb-a24c-eb7036d3437a"
      description: ""
      infraredEmittances: []
      locale: "en-US"
      nearnormalHemisphericalSolarReflectances: []
      nearnormalHemisphericalSolarTransmittances: []
      nearnormalHemisphericalVisibleReflectances: []
      nearnormalHemisphericalVisibleTransmittances: []
      rootResource: {
        archivedFilesMetaInformation: []
        description: ""
        dataFormatId: "dc419491-29de-496d-95a7-a41938a9200c"
        hashValue: ""
      }
      warnings: []
    }
  ) {
    opticalData {
      name
      componentId
      appliedMethod {
        methodId
      }
      cielabColors {
        aStar
        bStar
        lStar
      }
      colorRenderingIndices
      createdAt
      creatorId
      description
      id
      infraredEmittances
      locale
      nearnormalHemisphericalSolarReflectances
      nearnormalHemisphericalSolarTransmittances
      nearnormalHemisphericalVisibleReflectances
      nearnormalHemisphericalVisibleTransmittances
      resources {
        archivedFilesMetaInformation {
          dataFormatId
          path
        }
        description
        dataFormatId
        hashValue
        id
        locator
        uuid
      }
      uuid
      warnings
    }
    errors {
      code
      message
      path
    }
  }
}