Skip to content

Commit

Permalink
Add domain geometricData to specification database.graphql. Inclu…
Browse files Browse the repository at this point in the history
…de `thickness` as mirrored value.
  • Loading branch information
christoph-maurer committed Jun 19, 2024
1 parent 506f5a8 commit 5dcda2b
Show file tree
Hide file tree
Showing 2 changed files with 93 additions and 19 deletions.
87 changes: 87 additions & 0 deletions apis/database.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@ type Query {
locale: Locale
): CalorimetricData!

"""
See `Query#data`.
"""
geometricData(id: Uuid!, timestamp: DateTime, locale: Locale): GeometricData!

"""
See `Query#data`.
"""
Expand Down Expand Up @@ -325,6 +330,19 @@ type Query {
before: Cursor
): CalorimetricDataConnection!

"""
See `Query#allData`.
"""
allGeometricData(
where: GeometricDataPropositionInput
timestamp: DateTime
locale: Locale
first: NonNegativeInt
after: Cursor
last: NonNegativeInt
before: Cursor
): GeometricDataConnection!

"""
See `Query#allData`.
"""
Expand Down Expand Up @@ -386,6 +404,15 @@ type Query {
locale: Locale
): Boolean!

"""
See `Query#hasData`.
"""
hasGeometricData(
where: GeometricDataPropositionInput
timestamp: DateTime
locale: Locale
): Boolean!

"""
See `Query#hasData`.
"""
Expand Down Expand Up @@ -712,6 +739,12 @@ input DataPropositionInput {
"""
uValues: FloatsPropositionInput

"""
True for data whose list of `thickness` values satisfies the proposition `thicknesses`,
otherwise false.
"""
thicknesses: FloatsPropositionInput

"""
True for data whose list of nearnormal hemispherical visible transmittance
values satisfies the proposition
Expand Down Expand Up @@ -838,6 +871,18 @@ input CalorimetricDataPropositionInput {
uValues: FloatsPropositionInput
}

"""
See `DataPropositionInput`.
"""
input GeometricDataPropositionInput {
componentId: UuidPropositionInput
and: [GeometricDataPropositionInput!]
not: GeometricDataPropositionInput
or: [GeometricDataPropositionInput!]
resources: GetHttpsResourcesPropositionInput
thicknesses: FloatsPropositionInput
}

"""
See `DataPropositionInput`.
"""
Expand Down Expand Up @@ -996,6 +1041,16 @@ type CalorimetricDataConnection {
timestamp: DateTime!
}

"""
See `DataConnection`.
"""
type GeometricDataConnection {
edges: [GeometricDataEdge!]!
nodes: [GeometricData!]!
pageInfo: PageInfo!
timestamp: DateTime!
}

"""
See `DataEdge`.
"""
Expand All @@ -1004,6 +1059,14 @@ type CalorimetricDataEdge {
node: CalorimetricData!
}

"""
See `DataEdge`.
"""
type GeometricDataEdge {
cursor: Cursor!
node: GeometricData!
}

"""
Measured, simulated, or calculated data.
Expand Down Expand Up @@ -1217,6 +1280,30 @@ type CalorimetricData implements Node & Data {
uValues: [Float!]!
}

type GeometricData implements Node & Data {
id: ID!
uuid: Uuid!
timestamp: DateTime!
locale: Locale!
databaseId: Uuid!
componentId: Uuid!
name: String
description: String
warnings: [String!]!
creatorId: Uuid!
createdAt: DateTime!
appliedMethod: AppliedMethod!
resources: [GetHttpsResource!]!
resourceTree: GetHttpsResourceTree!
approvals: [DataApproval!]!
approval: ResponseApproval!

"""
Mirrored `thickness` values that occur in the data
"""
thicknesses: [Float!]!
}

type HygrothermalData implements Node & Data {
id: ID!
uuid: Uuid!
Expand Down
25 changes: 6 additions & 19 deletions schemas/geometricData.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@
}
},
"additionalProperties": false,
"required": [
"latitude",
"longitude"
]
"required": ["latitude", "longitude"]
},
"location": {
"title": "The location of the center of mass of the component.",
Expand All @@ -69,10 +66,7 @@
}
},
"additionalProperties": false,
"required": [
"east",
"north"
]
"required": ["east", "north"]
},
"orientation": {
"title": "The orientation of the prime surface of the component.",
Expand All @@ -92,10 +86,7 @@
}
},
"additionalProperties": false,
"required": [
"azimuth",
"componentTilt"
]
"required": ["azimuth", "componentTilt"]
},
"assembly": {
"title": "An assembly of components where each item of the array defines one component of the assembly. Note that one component can either consist of a single component or of an assembly of components.",
Expand Down Expand Up @@ -130,18 +121,14 @@
},
"additionalProperties": false,
"minProperties": 1,
"required": [
"id"
]
"required": ["id"]
},
"minItems": 2
}
},
"additionalProperties": false,
"minProperties": 1,
"required": [
"assemblyList"
]
"required": ["assemblyList"]
},
"point": {
"title": "A point according to the definition of a coordinate system elsewhere.",
Expand Down Expand Up @@ -360,4 +347,4 @@
}
},
"$ref": "#/$defs/data"
}
}

0 comments on commit 5dcda2b

Please sign in to comment.