kraph 0.3.0__tar.gz → 0.4.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.
Files changed (27) hide show
  1. {kraph-0.3.0 → kraph-0.4.0}/PKG-INFO +1 -1
  2. {kraph-0.3.0 → kraph-0.4.0}/kraph/api/project.json +1 -0
  3. {kraph-0.3.0 → kraph-0.4.0}/kraph/api/schema.graphql +53 -31
  4. {kraph-0.3.0 → kraph-0.4.0}/kraph/api/schema.py +5437 -4706
  5. {kraph-0.3.0 → kraph-0.4.0}/kraph/arkitekt.py +11 -4
  6. {kraph-0.3.0 → kraph-0.4.0}/kraph/rekuest.py +19 -22
  7. {kraph-0.3.0 → kraph-0.4.0}/pyproject.toml +1 -1
  8. {kraph-0.3.0 → kraph-0.4.0}/.gitignore +0 -0
  9. {kraph-0.3.0 → kraph-0.4.0}/README.md +0 -0
  10. {kraph-0.3.0 → kraph-0.4.0}/kraph/__init__.py +0 -0
  11. {kraph-0.3.0 → kraph-0.4.0}/kraph/api/__init__.py +0 -0
  12. {kraph-0.3.0 → kraph-0.4.0}/kraph/contrib/fakts/__init__.py +0 -0
  13. {kraph-0.3.0 → kraph-0.4.0}/kraph/contrib/fakts/datalayer.py +0 -0
  14. {kraph-0.3.0 → kraph-0.4.0}/kraph/datalayer.py +0 -0
  15. {kraph-0.3.0 → kraph-0.4.0}/kraph/errors.py +0 -0
  16. {kraph-0.3.0 → kraph-0.4.0}/kraph/funcs.py +0 -0
  17. {kraph-0.3.0 → kraph-0.4.0}/kraph/io.py +0 -0
  18. {kraph-0.3.0 → kraph-0.4.0}/kraph/kraph.py +0 -0
  19. {kraph-0.3.0 → kraph-0.4.0}/kraph/links/__init__.py +0 -0
  20. {kraph-0.3.0 → kraph-0.4.0}/kraph/links/errors.py +0 -0
  21. {kraph-0.3.0 → kraph-0.4.0}/kraph/links/upload.py +0 -0
  22. {kraph-0.3.0 → kraph-0.4.0}/kraph/py.typed +0 -0
  23. {kraph-0.3.0 → kraph-0.4.0}/kraph/rath.py +0 -0
  24. {kraph-0.3.0 → kraph-0.4.0}/kraph/scalars.py +0 -0
  25. {kraph-0.3.0 → kraph-0.4.0}/kraph/traits.py +0 -0
  26. {kraph-0.3.0 → kraph-0.4.0}/kraph/vars.py +0 -0
  27. {kraph-0.3.0 → kraph-0.4.0}/kraph/widgets.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kraph
3
- Version: 0.3.0
3
+ Version: 0.4.0
4
4
  Summary: the arkitekt knowledge graph
5
5
  Author-email: jhnnsrs <jhnnsrs@gmail.com>
6
6
  License-Expression: GPL-3.0-or-later
@@ -153,6 +153,7 @@
153
153
  },
154
154
  "additional_config": {},
155
155
  "force_plugin_order": true,
156
+ "omited_document_rules": [],
156
157
  "parsers": [],
157
158
  "plugins": [
158
159
  {
@@ -428,6 +428,7 @@ type StructureCategoryDefinition implements CategoryDefintion {
428
428
  categoryFilters: [ID!]
429
429
  categoryExcludeFilters: [ID!]
430
430
  matches: [StructureCategory!]!
431
+ identifierFilters: [StructureIdentifier!]
431
432
  }
432
433
 
433
434
  interface CategoryDefintion {
@@ -490,6 +491,11 @@ type StructureCategory implements NodeCategory & BaseCategory {
490
491
  identifier: String!
491
492
  }
492
493
 
494
+ """
495
+ The `StructureIdentifier` scalar type represents a identifier of a structure
496
+ """
497
+ scalar StructureIdentifier
498
+
493
499
  input MetricCategoryFilter {
494
500
  ids: [ID!]
495
501
  id: ID
@@ -926,6 +932,7 @@ input MeasurementCategoryFilter {
926
932
  id: ID
927
933
  search: String
928
934
  graph: ID
935
+ sourceIdentifier: String = null
929
936
  AND: MeasurementCategoryFilter
930
937
  OR: MeasurementCategoryFilter
931
938
  NOT: MeasurementCategoryFilter
@@ -1672,11 +1679,6 @@ type KnowledgeView {
1672
1679
  structure: Structure
1673
1680
  }
1674
1681
 
1675
- """
1676
- The `StructureIdentifier` scalar type represents a identifier of a structure
1677
- """
1678
- scalar StructureIdentifier
1679
-
1680
1682
  """Filter for entity relations in the graph"""
1681
1683
  input StructureFilter {
1682
1684
  """Filter by graph ID"""
@@ -1918,6 +1920,9 @@ type Mutation {
1918
1920
  """Delete an existing expression"""
1919
1921
  deleteEntityCategory(input: DeleteEntityCategoryInput!): ID!
1920
1922
 
1923
+ """Create a new structure metric"""
1924
+ createStructureMetric(input: StructureMetricInput!): Metric!
1925
+
1921
1926
  """Create a new expression"""
1922
1927
  createReagentCategory(input: ReagentCategoryInput!): ReagentCategory!
1923
1928
 
@@ -2236,12 +2241,34 @@ input MeasurementCategoryInput {
2236
2241
  label: String!
2237
2242
 
2238
2243
  """The source definition for this expression"""
2239
- structureDefinition: CategoryDefinitionInput!
2244
+ structureDefinition: StructureCategoryDefinitionInput!
2240
2245
 
2241
2246
  """The target definition for this expression"""
2242
2247
  entityDefinition: CategoryDefinitionInput!
2243
2248
  }
2244
2249
 
2250
+ """Input for creating a new expression"""
2251
+ input StructureCategoryDefinitionInput {
2252
+ """A list of classes to filter the entities"""
2253
+ categoryFilters: [ID!] = null
2254
+
2255
+ """A list of StructureIdentifier to filter the entities"""
2256
+ identifierFilters: [StructureIdentifier!] = null
2257
+
2258
+ """A list of tags to filter the entities by"""
2259
+ tagFilters: [String!] = null
2260
+
2261
+ """
2262
+ The default ACTIVE reagent to use for this port if a reagent is not provided
2263
+ """
2264
+ defaultUseActive: ID = null
2265
+
2266
+ """
2267
+ The default creation of entity or reagent to use for this port if a reagent is not provided
2268
+ """
2269
+ defaultUseNew: ID = null
2270
+ }
2271
+
2245
2272
  """Input for updating an existing expression"""
2246
2273
  input UpdateMeasurementCategoryInput {
2247
2274
  """The ID of the expression to update"""
@@ -2454,28 +2481,6 @@ input StructureRelationCategoryInput {
2454
2481
  targetDefinition: StructureCategoryDefinitionInput!
2455
2482
  }
2456
2483
 
2457
- """Input for creating a new expression"""
2458
- input StructureCategoryDefinitionInput {
2459
- """A list of classes to filter the entities"""
2460
- categoryFilters: [ID!] = null
2461
-
2462
- """A list of StructureIdentifier to filter the entities"""
2463
- identifierFilters: [StructureIdentifier!] = null
2464
-
2465
- """A list of tags to filter the entities by"""
2466
- tagFilters: [String!] = null
2467
-
2468
- """
2469
- The default ACTIVE reagent to use for this port if a reagent is not provided
2470
- """
2471
- defaultUseActive: ID = null
2472
-
2473
- """
2474
- The default creation of entity or reagent to use for this port if a reagent is not provided
2475
- """
2476
- defaultUseNew: ID = null
2477
- }
2478
-
2479
2484
  """Input for updating an existing expression"""
2480
2485
  input UpdateStructureRelationCategoryInput {
2481
2486
  """A detailed description of the expression"""
@@ -2598,6 +2603,26 @@ input DeleteEntityCategoryInput {
2598
2603
  id: ID!
2599
2604
  }
2600
2605
 
2606
+ input StructureMetricInput {
2607
+ structure: StructureString!
2608
+
2609
+ """The name of the measurement"""
2610
+ label: String!
2611
+
2612
+ """The description of the measurement"""
2613
+ description: String = null
2614
+
2615
+ """The kind of the metric"""
2616
+ metricKind: MetricKind! = FLOAT
2617
+
2618
+ """The value of the measurement"""
2619
+ value: Any!
2620
+ graph: ID!
2621
+ }
2622
+
2623
+ """The `StructureString` scalar type represents a string with a structure"""
2624
+ scalar StructureString
2625
+
2601
2626
  """Input for creating a new expression"""
2602
2627
  input ReagentCategoryInput {
2603
2628
  """
@@ -3223,9 +3248,6 @@ input StructureInput {
3223
3248
  context: ContextInput = null
3224
3249
  }
3225
3250
 
3226
- """The `StructureString` scalar type represents a string with a structure"""
3227
- scalar StructureString
3228
-
3229
3251
  """Input type for creating a new model"""
3230
3252
  input CreateModelInput {
3231
3253
  """The name of the model"""