Skip to content

Class: Edge

Represents a connection or relationship between two nodes in a graph.

URI: ocsf:Edge

 classDiagram
    class Edge
    click Edge href "../Edge/"
      Entity <|-- Edge
        click Entity href "../Entity/"

      Edge : data

      Edge : is_directed

      Edge : name

      Edge : relation

      Edge : source

      Edge : target

      Edge : uid

Inheritance

Slots

Name Cardinality and Range Description Inheritance
data 0..1
String
Additional data about the edge such as weight, distance, or custom properties direct
is_directed 0..1
Boolean
Indicates whether the edge is (true) or undirected direct
name 0..1 recommended
String
The human-readable name or label for the edge direct
relation 0..1 recommended
String
The type of relationship between nodes (e direct
source 1
String
The unique identifier of the node where the edge originates direct
target 1
String
The unique identifier of the node where the edge terminates direct
uid 0..1 recommended
String
Unique identifier of the edge direct

Usages

used by used in type used
Graph edges range Edge

In Subsets

Aliases

  • Edge

See Also

Notes

Identifier and Mapping Information

Schema Source

Mappings

Mapping Type Mapped Value
self ocsf:Edge
native ocsf:Edge

LinkML Source

Direct

name: Edge
description: Represents a connection or relationship between two nodes in a graph.
notes:
- 'JSON graph specification. 

  https://github.com/jsongraph/json-graph-specification/'
in_subset:
- objects_subset
from_schema: https://w3id.org/lmodel/ocsf
see_also:
- https://github.com/jsongraph/json-graph-specification/
aliases:
- Edge
is_a: Entity
slots:
- data
- is_directed
- name
- relation
- source
- target
- uid
slot_usage:
  data:
    name: data
    description: Additional data about the edge such as weight, distance, or custom
      properties.
  is_directed:
    name: is_directed
    description: 'Indicates whether the edge is (<code>true</code>) or undirected

      (<code>false</code>).'
  name:
    name: name
    description: The human-readable name or label for the edge.
    recommended: true
  relation:
    name: relation
    description: The type of relationship between nodes (e.g. is-attached-to , depends-on,
      etc).
    recommended: true
  source:
    name: source
    description: The unique identifier of the node where the edge originates.
    required: true
  target:
    name: target
    description: The unique identifier of the node where the edge terminates.
    required: true
  uid:
    name: uid
    description: Unique identifier of the edge.
    recommended: true

Induced

name: Edge
description: Represents a connection or relationship between two nodes in a graph.
notes:
- 'JSON graph specification. 

  https://github.com/jsongraph/json-graph-specification/'
in_subset:
- objects_subset
from_schema: https://w3id.org/lmodel/ocsf
see_also:
- https://github.com/jsongraph/json-graph-specification/
aliases:
- Edge
is_a: Entity
slot_usage:
  data:
    name: data
    description: Additional data about the edge such as weight, distance, or custom
      properties.
  is_directed:
    name: is_directed
    description: 'Indicates whether the edge is (<code>true</code>) or undirected

      (<code>false</code>).'
  name:
    name: name
    description: The human-readable name or label for the edge.
    recommended: true
  relation:
    name: relation
    description: The type of relationship between nodes (e.g. is-attached-to , depends-on,
      etc).
    recommended: true
  source:
    name: source
    description: The unique identifier of the node where the edge originates.
    required: true
  target:
    name: target
    description: The unique identifier of the node where the edge terminates.
    required: true
  uid:
    name: uid
    description: Unique identifier of the edge.
    recommended: true
attributes:
  data:
    name: data
    description: Additional data about the edge such as weight, distance, or custom
      properties.
    from_schema: https://w3id.org/lmodel/ocsf
    aliases:
    - Data
    rank: 1000
    alias: data
    owner: Edge
    domain_of:
    - Request
    - Response
    - TlsExtension
    - Resource
    - ApplicationObject
    - Edge
    - Enrichment
    - Evidences
    - ManagedEntity
    - Node
    - Policy
    - QueryInfo
    - WebResource
    - RegValue
    range: string
  is_directed:
    name: is_directed
    description: 'Indicates whether the edge is (<code>true</code>) or undirected

      (<code>false</code>).'
    from_schema: https://w3id.org/lmodel/ocsf
    aliases:
    - Directed
    rank: 1000
    alias: is_directed
    owner: Edge
    domain_of:
    - Edge
    - Graph
    range: boolean
  name:
    name: name
    description: The human-readable name or label for the edge.
    from_schema: https://w3id.org/lmodel/ocsf
    aliases:
    - Name
    rank: 1000
    alias: name
    owner: Edge
    domain_of:
    - AnalysisTarget
    - Observable
    - Os
    - Osint
    - Package
    - Parameter
    - PrivilegeInfo
    - San
    - Scim
    - Script
    - ServicePrivilegeAnalysis
    - SoftwareComponent
    - Sso
    - StartupItem
    - ThreatActor
    - Token
    - Entity
    - Resource
    - Account
    - Agent
    - AiModel
    - Aircraft
    - Analytic
    - ApplicationObject
    - Assessment
    - AutonomousSystem
    - Campaign
    - Check
    - CisBenchmark
    - CisBenchmarkResult
    - CisControl
    - ClassifierDetails
    - Container
    - D3fTactic
    - D3fTechnique
    - Database
    - Databucket
    - DomainContact
    - Edge
    - Endpoint
    - Enrichment
    - EnvironmentVariable
    - Evidences
    - Extension
    - Feature
    - File
    - Graph
    - Group
    - HttpCookie
    - HttpHeader
    - Idp
    - Image
    - Job
    - Kernel
    - KeyValueObject
    - LoadBalancer
    - Logger
    - Malware
    - ManagedEntity
    - MessageContext
    - Metric
    - Mitigation
    - NetworkInterface
    - Node
    - Organization
    - PeripheralDevice
    - Policy
    - ProcessEntity
    - Product
    - QueryInfo
    - Reporter
    - ResourceDetails
    - Rule
    - Scan
    - Service
    - SubTechnique
    - Table
    - Tactic
    - Technique
    - Trait
    - TransformationInfo
    - UnmannedAerialSystem
    - User
    - WebResource
    - Device
    - FtpActivity
    - RegValue
    - WinResource
    - WinService
    - PrefetchQuery
    range: string
    recommended: true
  relation:
    name: relation
    description: The type of relationship between nodes (e.g. is-attached-to , depends-on,
      etc).
    from_schema: https://w3id.org/lmodel/ocsf
    aliases:
    - Relation
    rank: 1000
    alias: relation
    owner: Edge
    domain_of:
    - Edge
    range: string
    recommended: true
  source:
    name: source
    description: The unique identifier of the node where the edge originates.
    from_schema: https://w3id.org/lmodel/ocsf
    aliases:
    - Source
    rank: 1000
    alias: source
    owner: Edge
    domain_of:
    - Packet
    - Edge
    - Metadata
    range: string
    required: true
  target:
    name: target
    description: The unique identifier of the node where the edge terminates.
    from_schema: https://w3id.org/lmodel/ocsf
    aliases:
    - Target
    rank: 1000
    alias: target
    owner: Edge
    domain_of:
    - Edge
    range: string
    required: true
  uid:
    name: uid
    description: Unique identifier of the edge.
    from_schema: https://w3id.org/lmodel/ocsf
    aliases:
    - Unique ID
    rank: 1000
    alias: uid
    owner: Edge
    domain_of:
    - Osint
    - Package
    - ProgrammaticCredential
    - RelatedEvent
    - Request
    - Sbom
    - Scim
    - Script
    - Session
    - Span
    - Sso
    - Ticket
    - Token
    - Trace
    - Entity
    - Resource
    - Account
    - Advisory
    - Agent
    - AiModel
    - Aircraft
    - Analytic
    - ApplicationObject
    - Assessment
    - Certificate
    - Check
    - ClassifierDetails
    - Container
    - Cve
    - Cwe
    - D3fTactic
    - D3fTechnique
    - DataClassification
    - Database
    - Databucket
    - DomainContact
    - Edge
    - Email
    - Endpoint
    - Evidences
    - Extension
    - Feature
    - File
    - FindingObject
    - FindingInfo
    - Graph
    - Group
    - HttpRequest
    - Idp
    - Image
    - KbArticle
    - LoadBalancer
    - Logger
    - Malware
    - ManagedEntity
    - MessageContext
    - Metadata
    - Mitigation
    - NetworkConnectionInfo
    - NetworkEndpoint
    - NetworkInterface
    - Node
    - Organization
    - PeripheralDevice
    - Policy
    - ProcessEntity
    - Product
    - QueryInfo
    - Reporter
    - Rule
    - Scan
    - Service
    - SubTechnique
    - Table
    - Tactic
    - Technique
    - Trait
    - TransformationInfo
    - UnmannedAerialSystem
    - User
    - WebResource
    - Device
    - WinResource
    range: string
    recommended: true