Class: RelatedWeakness
Typed directional relationship from one CWE entry to another (RelatedWeaknessesType/Related_Weakness in XSD).
URI: cwe:RelatedWeakness
classDiagram
class RelatedWeakness
click RelatedWeakness href "../RelatedWeakness/"
RelatedWeakness : chain_id
RelatedWeakness : cwe_id
RelatedWeakness : nature
RelatedWeakness --> "1" WeaknessRelationNature : nature
click WeaknessRelationNature href "../WeaknessRelationNature/"
RelatedWeakness : ordinal
RelatedWeakness --> "0..1" OrdinalQualifier : ordinal
click OrdinalQualifier href "../OrdinalQualifier/"
RelatedWeakness : view_id
Slots
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| nature | 1 WeaknessRelationNature |
Nature of the relationship | direct |
| cwe_id | 1 Integer |
Numeric ID of the target CWE entry | direct |
| view_id | 1 Integer |
View within which this relationship is relevant | direct |
| chain_id | 0..1 Integer |
ID of a named chain for CanFollow/CanPrecede relationships | direct |
| ordinal | 0..1 OrdinalQualifier |
Set to "Primary" for the primary ChildOf relationship in the given view | direct |
Usages
| used by | used in | type | used |
|---|---|---|---|
| Weakness | related_weaknesses | range | RelatedWeakness |
Identifier and Mapping Information
Schema Source
- from schema: https://w3id.org/lmodel/cwe
Mappings
| Mapping Type | Mapped Value |
|---|---|
| self | cwe:RelatedWeakness |
| native | cwe:RelatedWeakness |
LinkML Source
Direct
name: RelatedWeakness
description: Typed directional relationship from one CWE entry to another (RelatedWeaknessesType/Related_Weakness
in XSD).
from_schema: https://w3id.org/lmodel/cwe
slots:
- nature
- cwe_id
- view_id
- chain_id
- ordinal
slot_usage:
nature:
name: nature
description: Nature of the relationship.
range: WeaknessRelationNature
required: true
cwe_id:
name: cwe_id
description: Numeric ID of the target CWE entry.
required: true
view_id:
name: view_id
description: View within which this relationship is relevant.
required: true
chain_id:
name: chain_id
description: ID of a named chain for CanFollow/CanPrecede relationships.
ordinal:
name: ordinal
description: Set to "Primary" for the primary ChildOf relationship in the given
view.
Induced
name: RelatedWeakness
description: Typed directional relationship from one CWE entry to another (RelatedWeaknessesType/Related_Weakness
in XSD).
from_schema: https://w3id.org/lmodel/cwe
slot_usage:
nature:
name: nature
description: Nature of the relationship.
range: WeaknessRelationNature
required: true
cwe_id:
name: cwe_id
description: Numeric ID of the target CWE entry.
required: true
view_id:
name: view_id
description: View within which this relationship is relevant.
required: true
chain_id:
name: chain_id
description: ID of a named chain for CanFollow/CanPrecede relationships.
ordinal:
name: ordinal
description: Set to "Primary" for the primary ChildOf relationship in the given
view.
attributes:
nature:
name: nature
description: Nature of the relationship.
from_schema: https://w3id.org/lmodel/cwe
rank: 1000
slot_uri: skos:related
alias: nature
owner: RelatedWeakness
domain_of:
- RelatedWeakness
- ExampleCode
range: WeaknessRelationNature
required: true
cwe_id:
name: cwe_id
description: Numeric ID of the target CWE entry.
from_schema: https://w3id.org/lmodel/cwe
rank: 1000
alias: cwe_id
owner: RelatedWeakness
domain_of:
- RelatedWeakness
- CatalogMember
- MappingSuggestion
range: integer
required: true
view_id:
name: view_id
description: View within which this relationship is relevant.
from_schema: https://w3id.org/lmodel/cwe
rank: 1000
alias: view_id
owner: RelatedWeakness
domain_of:
- RelatedWeakness
- CatalogMember
range: integer
required: true
chain_id:
name: chain_id
description: ID of a named chain for CanFollow/CanPrecede relationships.
from_schema: https://w3id.org/lmodel/cwe
rank: 1000
alias: chain_id
owner: RelatedWeakness
domain_of:
- RelatedWeakness
range: integer
ordinal:
name: ordinal
description: Set to "Primary" for the primary ChildOf relationship in the given
view.
from_schema: https://w3id.org/lmodel/cwe
rank: 1000
alias: ordinal
owner: RelatedWeakness
domain_of:
- RelatedWeakness
range: OrdinalQualifier