Skip to content

Class: Bag

Collection that can have a number of copies of each object

URI: collections:Bag

classDiagram class Bag Collection <|-- Bag Bag <|-- Thread Bag <|-- List Bag : element Bag ..> Thing : element Bag : size Bag ..> positive integer : size

Inheritance

Slots

Name Cardinality and Range Description Inheritance
element 0..*
Thing
The link to the members of a collection Collection
size 0..1
PositiveInteger
The number of item belonging to a collection Collection

Usages

used by used in type used
CoItem itemOf range Bag
List item domain Bag
ListItem itemOf range Bag

Aliases

  • bag

Identifier and Mapping Information

Schema Source

  • from schema: https://w3id.org/lmodel/collections

Mappings

Mapping Type Mapped Value
self collections:Bag
native collections:Bag
exact co:Bag, NCIT:C95628, wikidata:Q864377

LinkML Source

Direct

name: Bag
description: Collection that can have a number of copies of each object
from_schema: https://w3id.org/lmodel/collections
aliases:
- bag
exact_mappings:
- co:Bag
- NCIT:C95628
- wikidata:Q864377
is_a: Collection
disjoint_with:
- Set

Induced

name: Bag
description: Collection that can have a number of copies of each object
from_schema: https://w3id.org/lmodel/collections
aliases:
- bag
exact_mappings:
- co:Bag
- NCIT:C95628
- wikidata:Q864377
is_a: Collection
attributes:
  element:
    name: element
    annotations:
      owl:
        tag: owl
        value: allValuesFrom
    description: The link to the members of a collection
    from_schema: https://w3id.org/lmodel/collections
    mixin: true
    domain: Collection
    multivalued: true
    alias: element
    owner: Bag
    domain_of:
    - Collection
    range: Thing
  size:
    name: size
    description: The number of item belonging to a collection.
    from_schema: https://w3id.org/lmodel/collections
    domain: Collection
    alias: size
    owner: Bag
    domain_of:
    - Collection
    range: positive integer
    maximum_cardinality: 1
disjoint_with:
- Set