Skip to content

Commit 85671ba

Browse files
authored
Merge pull request #42 from TranslatorSRI/updated_pathfinder_and_performance_models
Add performance test model and update pathfinder tests
2 parents 82a92bd + c28b2d9 commit 85671ba

14 files changed

Lines changed: 2592 additions & 1538 deletions
1.89 KB
Binary file not shown.

project/graphql/translator_testing_model.graphql

Lines changed: 46 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,15 @@ type AcceptanceTestSuite
7272

7373
type BenchmarkTestSuite
7474
{
75+
id: Uriorcurie!
76+
name: String
77+
description: String
78+
tags: [String]
79+
testRunnerSettings: [String]
80+
testMetadata: TestMetadata
81+
testPersona: TestPersonaEnum
82+
testCases: [TestCase]
83+
testSuiteSpecification: TestSuiteSpecification
7584
}
7685

7786
type OneHopTestSuite
@@ -87,34 +96,17 @@ type OneHopTestSuite
8796
testSuiteSpecification: TestSuiteSpecification
8897
}
8998

90-
interface PathfinderPathNode
99+
type PathfinderPathNode
91100
{
92101
ids: [String]
93102
name: String
94103
}
95104

96105
type PathfinderTestAsset
97106
{
107+
id: Uriorcurie!
98108
name: String
99109
description: String
100-
inputId: Uriorcurie
101-
inputName: String
102-
inputCategory: ConceptCategory
103-
predicateId: PredicateType
104-
predicateName: String
105-
outputId: Uriorcurie
106-
outputName: String
107-
outputCategory: ConceptCategory
108-
association: AssociationCategory
109-
qualifiers: [Qualifier]
110-
expectedOutput: String
111-
testIssue: TestIssueEnum
112-
semanticSeverity: SemanticSeverityEnum
113-
inV1: Boolean
114-
wellKnown: Boolean
115-
testReference: Uriorcurie
116-
testMetadata: TestMetadata
117-
id: Uriorcurie!
118110
tags: [String]
119111
testRunnerSettings: [String]
120112
sourceInputId: Uriorcurie
@@ -123,11 +115,28 @@ type PathfinderTestAsset
123115
targetInputId: Uriorcurie
124116
targetInputName: String
125117
targetInputCategory: ConceptCategory
126-
pathNodes: [PathfinderPathNode]
127-
minimumRequiredPathNodes: Integer
118+
predicateId: PredicateType
119+
predicateName: String
120+
qualifiers: [Qualifier]
121+
minimumRequiredPathNodes: Integer!
122+
pathNodes: [PathfinderPathNode]!
123+
expectedOutput: String
128124
}
129125

130126
type PathfinderTestCase
127+
{
128+
id: Uriorcurie!
129+
name: String
130+
description: String
131+
tags: [String]
132+
testRunnerSettings: [String]
133+
testAssets: [PathfinderTestAsset]!
134+
testCaseObjective: TestObjectiveEnum
135+
components: [ComponentEnum]
136+
testEnv: TestEnvEnum
137+
}
138+
139+
type PerformanceTestCase
131140
{
132141
id: Uriorcurie!
133142
name: String
@@ -147,7 +156,22 @@ type PathfinderTestCase
147156
components: [ComponentEnum]
148157
testEnv: TestEnvEnum
149158
tags: [String]
150-
testAssets: [PathfinderTestAsset]!
159+
testRunTime: Integer!
160+
spawnRate: Float!
161+
testAssets: [TestAsset]!
162+
}
163+
164+
type PerformanceTestSuite
165+
{
166+
id: Uriorcurie!
167+
name: String
168+
description: String
169+
tags: [String]
170+
testRunnerSettings: [String]
171+
testMetadata: TestMetadata
172+
testPersona: TestPersonaEnum
173+
testSuiteSpecification: TestSuiteSpecification
174+
testCases: [PerformanceTestCase]
151175
}
152176

153177
type Precondition

project/jsonld/translator_testing_model.context.jsonld

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"comments": {
33
"description": "Auto generated by LinkML jsonld context generator",
4-
"generation_date": "2025-10-06T21:11:24",
4+
"generation_date": "2025-10-22T15:23:25",
55
"source": "translator_testing_model.yaml"
66
},
77
"@context": {
@@ -158,6 +158,14 @@
158158
"@type": "@id",
159159
"@id": "pathfinder_test_cases"
160160
},
161+
"spawn_rate": {
162+
"@type": "xsd:float",
163+
"@id": "spawn_rate"
164+
},
165+
"test_run_time": {
166+
"@type": "xsd:integer",
167+
"@id": "test_run_time"
168+
},
161169
"pks": {
162170
"@type": "@id",
163171
"@id": "pks"
@@ -445,6 +453,12 @@
445453
"PathfinderTestCase": {
446454
"@id": "PathfinderTestCase"
447455
},
456+
"PerformanceTestCase": {
457+
"@id": "PerformanceTestCase"
458+
},
459+
"PerformanceTestSuite": {
460+
"@id": "PerformanceTestSuite"
461+
},
448462
"Precondition": {
449463
"@id": "Precondition"
450464
},

0 commit comments

Comments
 (0)