Skip to content

Class: NamedElement

Abstract base for any named, identifiable schema element.

  • NOTE: this is an abstract class and should not be instantiated directly

URI: mellea:NamedElement

 classDiagram
    class NamedElement
    click NamedElement href "../NamedElement/"
      NamedElement <|-- RepositoryCatalog
        click RepositoryCatalog href "../RepositoryCatalog/"
      NamedElement <|-- PythonPackage
        click PythonPackage href "../PythonPackage/"
      NamedElement <|-- ModelElement
        click ModelElement href "../ModelElement/"
      NamedElement <|-- ApiFieldSpec
        click ApiFieldSpec href "../ApiFieldSpec/"
      NamedElement <|-- MethodSpec
        click MethodSpec href "../MethodSpec/"
      NamedElement <|-- ModelIdentifierSpec
        click ModelIdentifierSpec href "../ModelIdentifierSpec/"
      NamedElement <|-- IntrinsicAdapterSpec
        click IntrinsicAdapterSpec href "../IntrinsicAdapterSpec/"

      NamedElement : coverage_scope





        NamedElement --> "*" CoverageScopeEnum : coverage_scope
        click CoverageScopeEnum href "../CoverageScopeEnum/"



      NamedElement : description

      NamedElement : element_kind





        NamedElement --> "0..1" ElementKindEnum : element_kind
        click ElementKindEnum href "../ElementKindEnum/"



      NamedElement : id

      NamedElement : module_path

      NamedElement : name

      NamedElement : package_kind





        NamedElement --> "0..1" PackageKindEnum : package_kind
        click PackageKindEnum href "../PackageKindEnum/"



      NamedElement : source_file

      NamedElement : tags

Inheritance

Slots

Name Cardinality and Range Description Inheritance
id 1
Uriorcurie
Stable identifier for a schema element direct
name 1
String
Human-readable name direct
description 0..1
String
Narrative description of the element direct
module_path 0..1
PythonDottedPath
Python module path where this element is defined direct
source_file 0..1
RepositoryRelativePath
Source file relative to repository root direct
package_kind 0..1
PackageKindEnum
Package bucket direct
element_kind 0..1
ElementKindEnum
Kind of Python declaration direct
coverage_scope *
CoverageScopeEnum
Where this element surfaces (source/API/CLI/example/test) direct
tags *
String
Free-form classification tags direct

Identifier and Mapping Information

Schema Source

Mappings

Mapping Type Mapped Value
self mellea:NamedElement
native mellea:NamedElement
related attack:StixEntity, common_domain_model:InventoryRecord, mcp:HasName
close nexus:Entity, gist_linkml:GistThing, iso27001:NamedEntity, spdx:Element

LinkML Source

Direct

name: NamedElement
description: Abstract base for any named, identifiable schema element.
from_schema: https://w3id.org/lmodel/mellea
close_mappings:
- nexus:Entity
- gist_linkml:GistThing
- iso27001:NamedEntity
- spdx:Element
related_mappings:
- attack:StixEntity
- common_domain_model:InventoryRecord
- mcp:HasName
abstract: true
slots:
- id
- name
- description
- module_path
- source_file
- package_kind
- element_kind
- coverage_scope
- tags

Induced

name: NamedElement
description: Abstract base for any named, identifiable schema element.
from_schema: https://w3id.org/lmodel/mellea
close_mappings:
- nexus:Entity
- gist_linkml:GistThing
- iso27001:NamedEntity
- spdx:Element
related_mappings:
- attack:StixEntity
- common_domain_model:InventoryRecord
- mcp:HasName
abstract: true
attributes:
  id:
    name: id
    description: Stable identifier for a schema element.
    from_schema: https://w3id.org/lmodel/mellea
    rank: 1000
    slot_uri: schema:identifier
    identifier: true
    owner: NamedElement
    domain_of:
    - NamedElement
    range: uriorcurie
    required: true
  name:
    name: name
    description: Human-readable name.
    from_schema: https://w3id.org/lmodel/mellea
    rank: 1000
    slot_uri: schema:name
    owner: NamedElement
    domain_of:
    - NamedElement
    range: string
    required: true
  description:
    name: description
    description: Narrative description of the element.
    from_schema: https://w3id.org/lmodel/mellea
    rank: 1000
    slot_uri: schema:description
    owner: NamedElement
    domain_of:
    - NamedElement
    range: string
  module_path:
    name: module_path
    description: Python module path where this element is defined.
    from_schema: https://w3id.org/lmodel/mellea
    rank: 1000
    owner: NamedElement
    domain_of:
    - NamedElement
    range: PythonDottedPath
  source_file:
    name: source_file
    description: Source file relative to repository root.
    from_schema: https://w3id.org/lmodel/mellea
    rank: 1000
    owner: NamedElement
    domain_of:
    - NamedElement
    range: RepositoryRelativePath
  package_kind:
    name: package_kind
    description: Package bucket.
    from_schema: https://w3id.org/lmodel/mellea
    rank: 1000
    owner: NamedElement
    domain_of:
    - NamedElement
    range: PackageKindEnum
  element_kind:
    name: element_kind
    description: Kind of Python declaration.
    from_schema: https://w3id.org/lmodel/mellea
    rank: 1000
    owner: NamedElement
    domain_of:
    - NamedElement
    range: ElementKindEnum
  coverage_scope:
    name: coverage_scope
    description: Where this element surfaces (source/API/CLI/example/test).
    from_schema: https://w3id.org/lmodel/mellea
    rank: 1000
    owner: NamedElement
    domain_of:
    - NamedElement
    range: CoverageScopeEnum
    multivalued: true
  tags:
    name: tags
    description: Free-form classification tags.
    from_schema: https://w3id.org/lmodel/mellea
    rank: 1000
    owner: NamedElement
    domain_of:
    - NamedElement
    range: string
    multivalued: true