kraph 6.1.0__tar.gz → 7.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {kraph-6.1.0 → kraph-7.0.0}/PKG-INFO +1 -1
- {kraph-6.1.0 → kraph-7.0.0}/kraph/api/project.json +2 -0
- {kraph-6.1.0 → kraph-7.0.0}/kraph/api/schema.graphql +81 -57
- {kraph-6.1.0 → kraph-7.0.0}/kraph/api/schema.py +442 -351
- {kraph-6.1.0 → kraph-7.0.0}/kraph/scalars.py +23 -1
- {kraph-6.1.0 → kraph-7.0.0}/.gitignore +0 -0
- {kraph-6.1.0 → kraph-7.0.0}/README.md +0 -0
- {kraph-6.1.0 → kraph-7.0.0}/kraph/__init__.py +0 -0
- {kraph-6.1.0 → kraph-7.0.0}/kraph/api/__init__.py +0 -0
- {kraph-6.1.0 → kraph-7.0.0}/kraph/arkitekt.py +0 -0
- {kraph-6.1.0 → kraph-7.0.0}/kraph/client.py +0 -0
- {kraph-6.1.0 → kraph-7.0.0}/kraph/contrib/fakts/__init__.py +0 -0
- {kraph-6.1.0 → kraph-7.0.0}/kraph/datalayer.py +0 -0
- {kraph-6.1.0 → kraph-7.0.0}/kraph/errors.py +0 -0
- {kraph-6.1.0 → kraph-7.0.0}/kraph/kraph.py +0 -0
- {kraph-6.1.0 → kraph-7.0.0}/kraph/links/__init__.py +0 -0
- {kraph-6.1.0 → kraph-7.0.0}/kraph/links/errors.py +0 -0
- {kraph-6.1.0 → kraph-7.0.0}/kraph/links/upload.py +0 -0
- {kraph-6.1.0 → kraph-7.0.0}/kraph/py.typed +0 -0
- {kraph-6.1.0 → kraph-7.0.0}/kraph/rath.py +0 -0
- {kraph-6.1.0 → kraph-7.0.0}/kraph/refs.py +0 -0
- {kraph-6.1.0 → kraph-7.0.0}/kraph/traits.py +0 -0
- {kraph-6.1.0 → kraph-7.0.0}/pyproject.toml +0 -0
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"exclude_typenames": true,
|
|
23
23
|
"scalar_definitions": {
|
|
24
24
|
"ID": "rath.scalars.ID",
|
|
25
|
+
"UUID": "kraph.scalars.UUID",
|
|
25
26
|
"AnyScalar": "typing.Any",
|
|
26
27
|
"JSON": "typing.Any",
|
|
27
28
|
"CypherLiteral": "kraph.scalars.CypherLiteral",
|
|
@@ -223,6 +224,7 @@
|
|
|
223
224
|
],
|
|
224
225
|
"coercible_scalars": {
|
|
225
226
|
"ID": "rath.scalars.IDCoercible",
|
|
227
|
+
"UUID": "kraph.scalars.UUIDCoercible",
|
|
226
228
|
"CypherLiteral": "kraph.scalars.CypherLiteralCoercible",
|
|
227
229
|
"StructureIdentifier": "kraph.scalars.StructureIdentifierCoercible",
|
|
228
230
|
"StructureObject": "kraph.scalars.StructureObjectCoercible"
|
|
@@ -134,39 +134,6 @@ input AssertMeasurementExistsInput {
|
|
|
134
134
|
term: String!
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
"""Input for creating a new metric"""
|
|
138
|
-
input AssertMetricValueForStructureInput {
|
|
139
|
-
key: String!
|
|
140
|
-
value: AnyScalar!
|
|
141
|
-
|
|
142
|
-
"""
|
|
143
|
-
What type of value this is. Required: it decides which column the value is stored in and which measurement term it is recorded under, and nothing infers it. Two callers may declare the same key differently — a float `confidence` and a category-label `confidence` are two terms, and both are recorded.
|
|
144
|
-
"""
|
|
145
|
-
valueKind: PropertyType!
|
|
146
|
-
|
|
147
|
-
"""
|
|
148
|
-
How sure you are, 0 to 1. Left unset, the claim carries no number — which is neither 1.0 nor 0.0: a category rule with a CONFIDENCE condition admits only claims that carry one.
|
|
149
|
-
"""
|
|
150
|
-
confidence: Float = null
|
|
151
|
-
|
|
152
|
-
"""
|
|
153
|
-
What kind of number `confidence` is — a method's own score, a p-value. Measurement-only
|
|
154
|
-
"""
|
|
155
|
-
confidenceType: String = null
|
|
156
|
-
unit: String = null
|
|
157
|
-
|
|
158
|
-
"""When the world was observed. Defaults to when it was claimed."""
|
|
159
|
-
observedAt: DateTime = null
|
|
160
|
-
|
|
161
|
-
"""
|
|
162
|
-
The claims this one came from — ids of instances, links, metrics or structures in your organization. Each is recorded as a DERIVED_FROM link under the same assertion as the claim itself, because "this, because of that" is one act (RFC 0017). Read back as `derivedFrom`; the cited claim lists it under `derivations`.
|
|
163
|
-
"""
|
|
164
|
-
derivedFrom: [String!]! = []
|
|
165
|
-
|
|
166
|
-
"""The unique ID of the structure this metric is associated with"""
|
|
167
|
-
structure: ID!
|
|
168
|
-
}
|
|
169
|
-
|
|
170
137
|
"""Input for creating a new metric"""
|
|
171
138
|
input AssertMetricValueInput {
|
|
172
139
|
key: String!
|
|
@@ -203,6 +170,12 @@ input AssertMetricValueInput {
|
|
|
203
170
|
object: String!
|
|
204
171
|
}
|
|
205
172
|
|
|
173
|
+
"""Input for recording many metrics, about any number of data, as one act"""
|
|
174
|
+
input AssertMetricValuesInput {
|
|
175
|
+
"""The values to record, at most 5000 in one act"""
|
|
176
|
+
metrics: [MetricValueInput!]!
|
|
177
|
+
}
|
|
178
|
+
|
|
206
179
|
"""Input for creating a new natural event instance"""
|
|
207
180
|
input AssertNaturalEventExistsInput {
|
|
208
181
|
"""
|
|
@@ -600,6 +573,29 @@ type AssertedMetric implements Asserted {
|
|
|
600
573
|
metric: Metric!
|
|
601
574
|
}
|
|
602
575
|
|
|
576
|
+
"""
|
|
577
|
+
A batch of metrics as one act. A metric that names a uuid already on the record is reported, not recorded again
|
|
578
|
+
"""
|
|
579
|
+
type AssertedMetricValues {
|
|
580
|
+
"""
|
|
581
|
+
The act that recorded this batch's new metrics. Null when every one of them was already recorded
|
|
582
|
+
"""
|
|
583
|
+
assertion: Assertion
|
|
584
|
+
|
|
585
|
+
"""
|
|
586
|
+
True when the act was recorded and announced but its drawing did not finish. The claim is durable; the drawing is owed, `Graph.projection { pending lag }` counts it, and `reproject --incremental` (the runner) applies it. `drawings` lists what was drawn so far. False is the ordinary case: the drawing completes within the request.
|
|
587
|
+
"""
|
|
588
|
+
pending: Boolean!
|
|
589
|
+
|
|
590
|
+
"""How many of the batch's metrics this call recorded"""
|
|
591
|
+
recorded: Int!
|
|
592
|
+
|
|
593
|
+
"""
|
|
594
|
+
Every metric of the batch, in the order given: new ones and those an earlier attempt recorded
|
|
595
|
+
"""
|
|
596
|
+
metrics: [Metric!]!
|
|
597
|
+
}
|
|
598
|
+
|
|
603
599
|
"""An assertion about a natural event, and everywhere it is now drawn"""
|
|
604
600
|
type AssertedNaturalEvent implements Asserted {
|
|
605
601
|
"""
|
|
@@ -3866,6 +3862,54 @@ type MetricKindStats {
|
|
|
3866
3862
|
sum(field: MetricKindField!): Float
|
|
3867
3863
|
}
|
|
3868
3864
|
|
|
3865
|
+
"""One value about one external datum, inside a batch"""
|
|
3866
|
+
input MetricValueInput {
|
|
3867
|
+
key: String!
|
|
3868
|
+
value: AnyScalar!
|
|
3869
|
+
|
|
3870
|
+
"""
|
|
3871
|
+
What type of value this is. Required: it decides the storage column and the measurement term
|
|
3872
|
+
"""
|
|
3873
|
+
valueKind: ValueKind!
|
|
3874
|
+
|
|
3875
|
+
"""
|
|
3876
|
+
How sure you are, 0 to 1. Left unset, the claim carries no number — which is neither 1.0 nor 0.0: a category rule with a CONFIDENCE condition admits only claims that carry one.
|
|
3877
|
+
"""
|
|
3878
|
+
confidence: Float = null
|
|
3879
|
+
|
|
3880
|
+
"""
|
|
3881
|
+
What kind of number `confidence` is — a method's own score, a p-value. Measurement-only
|
|
3882
|
+
"""
|
|
3883
|
+
confidenceType: String = null
|
|
3884
|
+
unit: String = null
|
|
3885
|
+
|
|
3886
|
+
"""When the world was observed. Defaults to when it was claimed."""
|
|
3887
|
+
observedAt: DateTime = null
|
|
3888
|
+
|
|
3889
|
+
"""
|
|
3890
|
+
The claims this one came from — ids of instances, links, metrics or structures in your organization. Each is recorded as a DERIVED_FROM link under the same assertion as the claim itself, because "this, because of that" is one act (RFC 0017). Read back as `derivedFrom`; the cited claim lists it under `derivations`.
|
|
3891
|
+
"""
|
|
3892
|
+
derivedFrom: [String!]! = []
|
|
3893
|
+
|
|
3894
|
+
"""
|
|
3895
|
+
Optional: a uuid for this metric that stays the same across retries, so a retried batch records nothing twice. Left out, one is minted, and rerunning records the value again
|
|
3896
|
+
"""
|
|
3897
|
+
uuid: UUID = null
|
|
3898
|
+
|
|
3899
|
+
"""
|
|
3900
|
+
The structure identifier of the datum this value is about, e.g. '@mikro/annotation'
|
|
3901
|
+
"""
|
|
3902
|
+
identifier: String!
|
|
3903
|
+
|
|
3904
|
+
"""The id of the datum this value is about"""
|
|
3905
|
+
object: String!
|
|
3906
|
+
|
|
3907
|
+
"""
|
|
3908
|
+
The uuid of an earlier metric of this API that this value corrects: that one is retracted and cited, under this act
|
|
3909
|
+
"""
|
|
3910
|
+
supersedes: UUID = null
|
|
3911
|
+
}
|
|
3912
|
+
|
|
3869
3913
|
"""Graph Engine Mutations"""
|
|
3870
3914
|
type Mutation {
|
|
3871
3915
|
"""
|
|
@@ -3911,11 +3955,6 @@ type Mutation {
|
|
|
3911
3955
|
"""Claim that a datum is evidence for an entity — an INFORMS claim"""
|
|
3912
3956
|
assertInforms(input: AssertInformsInput!): AssertedDescription! @auth(required_scopes: ["kraph_assert"], any_role_of: ["kraph_editor"])
|
|
3913
3957
|
|
|
3914
|
-
"""
|
|
3915
|
-
Record measurements against a datum already on the record, as one act (was `updateStructure`)
|
|
3916
|
-
"""
|
|
3917
|
-
recordMetrics(input: RecordMetricsInput!): AssertedStructure! @auth(required_scopes: ["kraph_assert"], any_role_of: ["kraph_editor"])
|
|
3918
|
-
|
|
3919
3958
|
"""
|
|
3920
3959
|
Record a remark about an external datum, minting its structure if this is the first sight of it. A reply names its parent and stays on the parent's thread
|
|
3921
3960
|
"""
|
|
@@ -3937,9 +3976,9 @@ type Mutation {
|
|
|
3937
3976
|
assertMetricValue(input: AssertMetricValueInput!): AssertedMetric! @auth(required_scopes: ["kraph_assert"], any_role_of: ["kraph_editor"])
|
|
3938
3977
|
|
|
3939
3978
|
"""
|
|
3940
|
-
Record
|
|
3979
|
+
Record many measurements, about any number of data, as one act, creating the structures they describe. A metric that names its own uuid is recorded once however often the batch is retried
|
|
3941
3980
|
"""
|
|
3942
|
-
|
|
3981
|
+
assertMetricValues(input: AssertMetricValuesInput!): AssertedMetricValues! @auth(required_scopes: ["kraph_assert"], any_role_of: ["kraph_editor"])
|
|
3943
3982
|
|
|
3944
3983
|
"""
|
|
3945
3984
|
Retract a measurement without destroying it. It stays readable, because a derived value that dropped it still has to be explainable
|
|
@@ -5419,23 +5458,6 @@ type Query {
|
|
|
5419
5458
|
renderTablePlan(graph: ID!, plan: TableQueryPlanInput!, filters: RenderGraphTableFilter = null, pagination: RenderGraphTablePagination = null, order: RenderGraphTableOrder = null): TablePlanRender! @auth(required_scopes: ["kraph_read"])
|
|
5420
5459
|
}
|
|
5421
5460
|
|
|
5422
|
-
"""Input for recording measurements against a datum already on the record"""
|
|
5423
|
-
input RecordMetricsInput {
|
|
5424
|
-
"""The unique ID of the object this structure references"""
|
|
5425
|
-
object: String!
|
|
5426
|
-
|
|
5427
|
-
"""List of measurements associated with this structure"""
|
|
5428
|
-
metrics: [MetricInput!]! = []
|
|
5429
|
-
|
|
5430
|
-
"""
|
|
5431
|
-
The claims this one came from — ids of instances, links, metrics or structures in your organization. Each is recorded as a DERIVED_FROM link under the same assertion as the claim itself, because "this, because of that" is one act (RFC 0017). Read back as `derivedFrom`; the cited claim lists it under `derivations`.
|
|
5432
|
-
"""
|
|
5433
|
-
derivedFrom: [String!]! = []
|
|
5434
|
-
|
|
5435
|
-
"""The ID of the structure the measurements describe"""
|
|
5436
|
-
id: String!
|
|
5437
|
-
}
|
|
5438
|
-
|
|
5439
5461
|
input RefreshUploadInput {
|
|
5440
5462
|
storeId: String!
|
|
5441
5463
|
}
|
|
@@ -6869,6 +6891,8 @@ input TraversalPaginationInput {
|
|
|
6869
6891
|
limit: Int = 100
|
|
6870
6892
|
}
|
|
6871
6893
|
|
|
6894
|
+
scalar UUID
|
|
6895
|
+
|
|
6872
6896
|
"""Input for updating an existing entity definition in the graph schema"""
|
|
6873
6897
|
input UpdateEntityCategoryInput {
|
|
6874
6898
|
"""The ID of the definition to update"""
|