Class: AcceptanceTestAsset
Model derived from Jenn's test asset design and Shervin's runner JSON here as an example.
classDiagram
class AcceptanceTestAsset
TestAsset <|-- AcceptanceTestAsset
AcceptanceTestAsset : answer_informal_concept
AcceptanceTestAsset : association
AcceptanceTestAsset : description
AcceptanceTestAsset : direction
AcceptanceTestAsset --> DirectionEnum : direction
AcceptanceTestAsset : expected_output
AcceptanceTestAsset : expected_result
AcceptanceTestAsset --> ExpectedResultsEnum : expected_result
AcceptanceTestAsset : id
AcceptanceTestAsset : in_v1
AcceptanceTestAsset : input_category
AcceptanceTestAsset : input_id
AcceptanceTestAsset : input_name
AcceptanceTestAsset : must_pass_date
AcceptanceTestAsset : must_pass_environment
AcceptanceTestAsset --> TestEnvEnum : must_pass_environment
AcceptanceTestAsset : name
AcceptanceTestAsset : notes
AcceptanceTestAsset : output_category
AcceptanceTestAsset : output_id
AcceptanceTestAsset : output_name
AcceptanceTestAsset : predicate_id
AcceptanceTestAsset : predicate_name
AcceptanceTestAsset : qualifiers
AcceptanceTestAsset --> Qualifier : qualifiers
AcceptanceTestAsset : query_node
AcceptanceTestAsset --> NodeEnum : query_node
AcceptanceTestAsset : scientific_question
AcceptanceTestAsset : semantic_severity
AcceptanceTestAsset --> SemanticSeverityEnum : semantic_severity
AcceptanceTestAsset : string_entry
AcceptanceTestAsset : tags
AcceptanceTestAsset : test_issue
AcceptanceTestAsset --> TestIssueEnum : test_issue
AcceptanceTestAsset : test_metadata
AcceptanceTestAsset --> TestMetadata : test_metadata
AcceptanceTestAsset : test_reference
AcceptanceTestAsset : test_runner_settings
AcceptanceTestAsset : top_level
AcceptanceTestAsset : well_known
Inheritance
- TestEntity
- TestAsset
- AcceptanceTestAsset
- TestAsset
Slots
Name | Cardinality and Range | Description | Inheritance |
---|---|---|---|
must_pass_date | 0..1 Date |
The date by which this test must pass | direct |
must_pass_environment | 0..1 TestEnvEnum |
The deployment environment within which this test must pass | direct |
scientific_question | 0..1 String |
The full human-readable scientific question a SME would ask, which is encoded... | direct |
string_entry | 0..1 String |
The object of the core triple to be tested | direct |
direction | 0..1 DirectionEnum |
The direction of the expected query result triple | direct |
answer_informal_concept | 0..1 String |
An answer that is returned from the test case, note: this must be combined wi... | direct |
expected_result | 0..1 ExpectedResultsEnum |
The expected result of the query | direct |
top_level | 0..1 Integer |
The answer must return in these many results | direct |
query_node | 0..1 NodeEnum |
The node of the (templated) TRAPI query to replace | direct |
notes | 0..1 String |
The notes of the query | direct |
input_id | 0..1 Uriorcurie |
TestAsset | |
input_name | 0..1 String |
TestAsset | |
input_category | 0..1 ConceptCategory |
TestAsset | |
predicate_id | 0..1 PredicateType |
TestAsset | |
predicate_name | 0..1 String |
TestAsset | |
output_id | 0..1 Uriorcurie |
TestAsset | |
output_name | 0..1 String |
TestAsset | |
output_category | 0..1 ConceptCategory |
TestAsset | |
association | 0..1 AssociationCategory |
Specific Biolink Model association 'category' which applies to the test asset... | TestAsset |
qualifiers | 0..* Qualifier |
Optional qualifiers which constrain to the test asset defined knowledge state... | TestAsset |
expected_output | 0..1 String |
TestAsset | |
test_issue | 0..1 TestIssueEnum |
TestAsset | |
semantic_severity | 0..1 SemanticSeverityEnum |
TestAsset | |
in_v1 | 0..1 Boolean |
TestAsset | |
well_known | 0..1 Boolean |
TestAsset | |
test_reference | 0..1 Uriorcurie |
Document URL where original test source particulars are registered (e | TestAsset |
test_metadata | 0..1 TestMetadata |
Test metadata describes the external provenance, cross-references and objecti... | TestAsset |
id | 1..1 Uriorcurie |
A unique identifier for a Test Entity | TestEntity |
name | 0..1 String |
A human-readable name for a Test Entity | TestEntity |
description | 0..1 String |
A human-readable description for a Test Entity | TestEntity |
tags | 0..* String |
One or more 'tags' slot values (inherited from TestEntity) should generally b... | TestEntity |
test_runner_settings | 0..* String |
Scalar settings for the TestRunner, e | TestEntity |
Usages
used by | used in | type | used |
---|---|---|---|
AcceptanceTestCase | test_assets | range | AcceptanceTestAsset |
Identifier and Mapping Information
Schema Source
- from schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
Mappings
Mapping Type | Mapped Value |
---|---|
self | ttm:AcceptanceTestAsset |
native | ttm:AcceptanceTestAsset |
LinkML Source
Direct
name: AcceptanceTestAsset
description: Model derived from Jenn's test asset design and Shervin's runner JSON
here as an example.
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
is_a: TestAsset
slots:
- must_pass_date
- must_pass_environment
- scientific_question
- string_entry
- direction
- answer_informal_concept
- expected_result
- top_level
- query_node
- notes
Induced
name: AcceptanceTestAsset
description: Model derived from Jenn's test asset design and Shervin's runner JSON
here as an example.
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
is_a: TestAsset
attributes:
must_pass_date:
name: must_pass_date
description: The date by which this test must pass
examples:
- value: '2023-09-01'
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
rank: 1000
alias: must_pass_date
owner: AcceptanceTestAsset
domain_of:
- AcceptanceTestAsset
range: date
must_pass_environment:
name: must_pass_environment
description: The deployment environment within which this test must pass.
examples:
- value: prod
- value: ci
- value: test
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
rank: 1000
alias: must_pass_environment
owner: AcceptanceTestAsset
domain_of:
- AcceptanceTestAsset
range: TestEnvEnum
scientific_question:
name: scientific_question
description: The full human-readable scientific question a SME would ask, which
is encoded into the test asset.
examples:
- value: What drugs may treat multiple sclerosis?
- value: What gene is upregulated?
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
rank: 1000
alias: scientific_question
owner: AcceptanceTestAsset
domain_of:
- AcceptanceTestAsset
range: string
string_entry:
name: string_entry
description: The object of the core triple to be tested
examples:
- value: multiple sclerosis
- value: Castlemans
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
aliases:
- trapi node 2
- disease
rank: 1000
alias: string_entry
owner: AcceptanceTestAsset
domain_of:
- AcceptanceTestAsset
range: string
direction:
name: direction
description: The direction of the expected query result triple
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
rank: 1000
alias: direction
owner: AcceptanceTestAsset
domain_of:
- AcceptanceTestAsset
range: DirectionEnum
answer_informal_concept:
name: answer_informal_concept
description: 'An answer that is returned from the test case, note: this must be
combined with the expected_result to form a complete answer. It might make
sense to couple these in their own object instead of strictly sticking to the
flat schema introduced by the spreadsheet here: https://docs.google.com/spreadsheets/d/1yj7zIchFeVl1OHqL_kE_pqvzNLmGml_FLbHDs-8Yvig/edit#gid=0'
examples:
- value: fingolimod
- value: natalizumab
- value: lead
- value: great answer here
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
rank: 1000
alias: answer_informal_concept
owner: AcceptanceTestAsset
domain_of:
- AcceptanceTestAsset
range: string
expected_result:
name: expected_result
description: The expected result of the query
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
rank: 1000
alias: expected_result
owner: AcceptanceTestAsset
domain_of:
- AcceptanceTestAsset
range: ExpectedResultsEnum
top_level:
name: top_level
description: The answer must return in these many results
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
rank: 1000
alias: top_level
owner: AcceptanceTestAsset
domain_of:
- AcceptanceTestAsset
range: integer
query_node:
name: query_node
description: The node of the (templated) TRAPI query to replace
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
rank: 1000
alias: query_node
owner: AcceptanceTestAsset
domain_of:
- AcceptanceTestAsset
range: NodeEnum
notes:
name: notes
description: The notes of the query
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
rank: 1000
alias: notes
owner: AcceptanceTestAsset
domain_of:
- AcceptanceTestAsset
range: string
input_id:
name: input_id
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
aliases:
- InputID, node normalized
- SubjectID
rank: 1000
alias: input_id
owner: AcceptanceTestAsset
domain_of:
- TestAsset
range: uriorcurie
input_name:
name: input_name
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
aliases:
- InputName (user choice)
- SubjectName
rank: 1000
alias: input_name
owner: AcceptanceTestAsset
domain_of:
- TestAsset
range: string
input_category:
name: input_category
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
aliases:
- SubjectCategory
rank: 1000
alias: input_category
owner: AcceptanceTestAsset
domain_of:
- TestAsset
- TestCase
range: concept_category
predicate_id:
name: predicate_id
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
aliases:
- Predicate
rank: 1000
alias: predicate_id
owner: AcceptanceTestAsset
domain_of:
- TestAsset
range: predicate_type
predicate_name:
name: predicate_name
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
aliases:
- Query
- Relationship
rank: 1000
alias: predicate_name
owner: AcceptanceTestAsset
domain_of:
- TestAsset
range: string
output_id:
name: output_id
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
aliases:
- OutputID
- ObjectID
rank: 1000
alias: output_id
owner: AcceptanceTestAsset
domain_of:
- TestAsset
range: uriorcurie
output_name:
name: output_name
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
aliases:
- OutputName
- ObjectName
rank: 1000
alias: output_name
owner: AcceptanceTestAsset
domain_of:
- TestAsset
range: string
output_category:
name: output_category
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
aliases:
- ObjectCategory
rank: 1000
alias: output_category
owner: AcceptanceTestAsset
domain_of:
- TestAsset
- TestCase
range: concept_category
association:
name: association
description: Specific Biolink Model association 'category' which applies to the
test asset defined knowledge statement
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
rank: 1000
alias: association
owner: AcceptanceTestAsset
domain_of:
- TestAsset
range: association_category
qualifiers:
name: qualifiers
description: Optional qualifiers which constrain to the test asset defined knowledge
statement. Note that this field records such qualifier slots and values as tag=value
pairs, where the tag is the Biolink Model qualifier slot named and the value
is an acceptable (Biolink Model enum?) value of the said qualifier slot.
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
rank: 1000
multivalued: true
alias: qualifiers
owner: AcceptanceTestAsset
domain_of:
- TestAsset
- TestCase
range: Qualifier
inlined: true
inlined_as_list: true
expected_output:
name: expected_output
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
aliases:
- Expected Output
rank: 1000
alias: expected_output
owner: AcceptanceTestAsset
domain_of:
- TestAsset
range: string
test_issue:
name: test_issue
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
aliases:
- issue label
rank: 1000
alias: test_issue
owner: AcceptanceTestAsset
domain_of:
- TestAsset
range: TestIssueEnum
semantic_severity:
name: semantic_severity
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
aliases:
- Semantic Severity
rank: 1000
alias: semantic_severity
owner: AcceptanceTestAsset
domain_of:
- TestAsset
range: SemanticSeverityEnum
in_v1:
name: in_v1
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
aliases:
- In v1
rank: 1000
alias: in_v1
owner: AcceptanceTestAsset
domain_of:
- TestAsset
range: boolean
well_known:
name: well_known
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
aliases:
- Well Known
rank: 1000
alias: well_known
owner: AcceptanceTestAsset
domain_of:
- TestAsset
range: boolean
test_reference:
name: test_reference
description: Document URL where original test source particulars are registered
(e.g. Github repo)
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
aliases:
- GitHubIssue
rank: 1000
alias: test_reference
owner: AcceptanceTestAsset
domain_of:
- TestMetadata
- TestAsset
range: uriorcurie
test_metadata:
name: test_metadata
description: Test metadata describes the external provenance, cross-references
and objectives for a given test.
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
rank: 1000
alias: test_metadata
owner: AcceptanceTestAsset
domain_of:
- TestAsset
- TestSuite
range: TestMetadata
required: false
inlined: true
id:
name: id
description: A unique identifier for a Test Entity
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
aliases:
- AssetIdentifier
rank: 1000
slot_uri: schema:identifier
identifier: true
alias: id
owner: AcceptanceTestAsset
domain_of:
- TestEntity
range: uriorcurie
required: true
name:
name: name
description: A human-readable name for a Test Entity
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
rank: 1000
slot_uri: schema:name
alias: name
owner: AcceptanceTestAsset
domain_of:
- TestEntity
range: string
description:
name: description
description: A human-readable description for a Test Entity
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
rank: 1000
slot_uri: schema:description
alias: description
owner: AcceptanceTestAsset
domain_of:
- TestEntity
range: string
tags:
name: tags
description: One or more 'tags' slot values (inherited from TestEntity) should
generally be defined to specify TestAsset membership in a "Block List" collection
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
rank: 1000
slot_uri: schema:additionalType
multivalued: true
alias: tags
owner: AcceptanceTestAsset
domain_of:
- TestEntity
range: string
test_runner_settings:
name: test_runner_settings
description: Scalar settings for the TestRunner, e.g. "inferred"
from_schema: https://w3id.org/TranslatorSRI/TranslatorTestingModel
rank: 1000
multivalued: true
alias: test_runner_settings
owner: AcceptanceTestAsset
domain_of:
- TestEntity
range: string
required: false