Class: DemonstrativeExample
A code example illustrating how a weakness may appear (DemonstrativeExamplesType/Demonstrative_Example in XSD).
classDiagram
class DemonstrativeExample
click DemonstrativeExample href "../DemonstrativeExample/"
DemonstrativeExample : body_texts
DemonstrativeExample : demonstrative_example_id
DemonstrativeExample : example_codes
DemonstrativeExample --> "*" ExampleCode : example_codes
click ExampleCode href "../ExampleCode/"
DemonstrativeExample : intro_text
DemonstrativeExample : references
DemonstrativeExample --> "*" CWEReference : references
click CWEReference href "../CWEReference/"
DemonstrativeExample : title_text
Slots
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| demonstrative_example_id | 0..1 String |
Unique identifier for a demonstrative example (e | direct |
| title_text | 0..1 String |
Optional title for a demonstrative example | direct |
| intro_text | 1 String |
Context and setting for the demonstrative example | direct |
| body_texts | * String |
Interleaved body text paragraphs for a demonstrative example | direct |
| example_codes | * ExampleCode |
Structured code snippets within a demonstrative example | direct |
| references | * CWEReference |
Links to external references defined in the catalog | direct |
Usages
| used by | used in | type | used |
|---|---|---|---|
| Weakness | demonstrative_examples | range | DemonstrativeExample |
Identifier and Mapping Information
Schema Source
- from schema: https://w3id.org/lmodel/cwe
Mappings
| Mapping Type | Mapped Value |
|---|---|
| self | cwe:DemonstrativeExample |
| native | cwe:DemonstrativeExample |
LinkML Source
Direct
name: DemonstrativeExample
description: A code example illustrating how a weakness may appear (DemonstrativeExamplesType/Demonstrative_Example
in XSD).
from_schema: https://w3id.org/lmodel/cwe
slots:
- demonstrative_example_id
- title_text
- intro_text
- body_texts
- example_codes
- references
slot_usage:
intro_text:
name: intro_text
required: true
Induced
name: DemonstrativeExample
description: A code example illustrating how a weakness may appear (DemonstrativeExamplesType/Demonstrative_Example
in XSD).
from_schema: https://w3id.org/lmodel/cwe
slot_usage:
intro_text:
name: intro_text
required: true
attributes:
demonstrative_example_id:
name: demonstrative_example_id
description: Unique identifier for a demonstrative example (e.g. DX-1).
from_schema: https://w3id.org/lmodel/cwe
rank: 1000
alias: demonstrative_example_id
owner: DemonstrativeExample
domain_of:
- DemonstrativeExample
range: string
title_text:
name: title_text
description: Optional title for a demonstrative example.
from_schema: https://w3id.org/lmodel/cwe
rank: 1000
alias: title_text
owner: DemonstrativeExample
domain_of:
- DemonstrativeExample
range: string
intro_text:
name: intro_text
description: Context and setting for the demonstrative example.
from_schema: https://w3id.org/lmodel/cwe
rank: 1000
alias: intro_text
owner: DemonstrativeExample
domain_of:
- DemonstrativeExample
range: string
required: true
body_texts:
name: body_texts
description: Interleaved body text paragraphs for a demonstrative example.
from_schema: https://w3id.org/lmodel/cwe
rank: 1000
alias: body_texts
owner: DemonstrativeExample
domain_of:
- DemonstrativeExample
range: string
multivalued: true
example_codes:
name: example_codes
description: Structured code snippets within a demonstrative example.
from_schema: https://w3id.org/lmodel/cwe
rank: 1000
alias: example_codes
owner: DemonstrativeExample
domain_of:
- DemonstrativeExample
range: ExampleCode
multivalued: true
inlined: true
inlined_as_list: true
references:
name: references
description: Links to external references defined in the catalog.
from_schema: https://w3id.org/lmodel/cwe
rank: 1000
alias: references
owner: DemonstrativeExample
domain_of:
- Weakness
- Category
- View
- DemonstrativeExample
range: CWEReference
multivalued: true
inlined: true
inlined_as_list: true