Class: StixGranularMarking
A marking of parts of an object: the properties its selectors name, marked either by a marking definition or with a language.
URI: attack:StixGranularMarking
classDiagram
class StixGranularMarking
click StixGranularMarking href "../StixGranularMarking/"
StixGranularMarking : lang
StixGranularMarking : marking_ref
StixGranularMarking --> "0..1" StixMarkingDefinition : marking_ref
click StixMarkingDefinition href "../StixMarkingDefinition/"
StixGranularMarking : selectors
| Name | Cardinality and Range | Description | Inheritance |
|---|---|---|---|
| marking_ref | 0..1 StixMarkingDefinition |
The marking_ref property specifies the ID of the marking-definition object th… | direct |
| selectors | 1..* String |
A list of selectors for content contained within the STIX object in which thi… | direct |
| lang | 0..1 String |
The language of the text content, as an RFC 5646 language code | direct |
Expressions & Logic
Exactly One Of
Section titled “Exactly One Of”The class must satisfy exactly one of:
- AnonymousClassExpression({ ‘slot_conditions’: {‘marking_ref’: SlotDefinition({‘name’: ‘marking_ref’, ‘required’: True})} })
- AnonymousClassExpression({‘slot_conditions’: {‘lang’: SlotDefinition({‘name’: ‘lang’, ‘required’: True})}})
Usages
Section titled “Usages”Comments
Section titled “Comments”- STIX 2.1 requires exactly one of marking_ref and lang. OASIS’s JSON schema requires marking_ref, which rejects a language marking. The schema follows the standard.
Identifier and Mapping Information
Section titled “Identifier and Mapping Information”Schema Source
Section titled “Schema Source”- from schema: https://w3id.org/lmodel/attack
Mappings
Section titled “Mappings”| Mapping Type | Mapped Value |
|---|---|
| self | attack:StixGranularMarking |
| native | attack:StixGranularMarking |
| close | uco-marking:GranularMarking |
LinkML Source
Section titled “LinkML Source”Direct
Section titled “Direct”name: StixGranularMarkingdescription: 'A marking of parts of an object: the properties its selectors name, marked either by a marking definition or with a language.'comments:- STIX 2.1 requires exactly one of marking_ref and lang. OASIS's JSON schema requires marking_ref, which rejects a language marking. The schema follows the standard.from_schema: https://w3id.org/lmodel/attackclose_mappings:- uco-marking:GranularMarkingslots:- marking_ref- selectors- langslot_usage: selectors: name: selectors required: trueexactly_one_of:- slot_conditions: marking_ref: name: marking_ref required: true- slot_conditions: lang: name: lang required: trueInduced
Section titled “Induced”name: StixGranularMarkingdescription: 'A marking of parts of an object: the properties its selectors name, marked either by a marking definition or with a language.'comments:- STIX 2.1 requires exactly one of marking_ref and lang. OASIS's JSON schema requires marking_ref, which rejects a language marking. The schema follows the standard.from_schema: https://w3id.org/lmodel/attackclose_mappings:- uco-marking:GranularMarkingslot_usage: selectors: name: selectors required: trueattributes: marking_ref: name: marking_ref description: The marking_ref property specifies the ID of the marking-definition object that describes the marking. from_schema: https://w3id.org/lmodel/attack close_mappings: - uco-marking:marking rank: 1000 slot_uri: stix:marking_ref owner: StixGranularMarking domain_of: - StixGranularMarking range: StixMarkingDefinition pattern: ^marking-definition--[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$ selectors: name: selectors description: A list of selectors for content contained within the STIX object in which this property appears. from_schema: https://w3id.org/lmodel/attack close_mappings: - uco-marking:contentSelectors rank: 1000 slot_uri: stix:selectors owner: StixGranularMarking domain_of: - StixGranularMarking range: string required: true multivalued: true pattern: ^([a-z0-9_-]{3,249}(\.(\[\d+\]|[a-z0-9_-]{1,250}))*|id)$ minimum_cardinality: 1 lang: name: lang description: The language of the text content, as an RFC 5646 language code. from_schema: https://w3id.org/lmodel/attack rank: 1000 slot_uri: stix:lang owner: StixGranularMarking domain_of: - StixCommonObject - StixGranularMarking range: stringexactly_one_of:- slot_conditions: marking_ref: name: marking_ref required: true- slot_conditions: lang: name: lang required: true