id: https://example.org/test
name: test_schema
prefixes:
  linkml: https://w3id.org/linkml/
  ex: https://example.org/

imports:
  - linkml:types

default_range: string

classes:
  Person:
    description: A person
    attributes:
      name:
        description: The person's name
        required: true
      age:
        description: The person's age
        range: integer
      description:
        description: A description of the person
        recommended: true
      email:
        description: Email address
        recommended: true
      address:
        description: Home address
        range: Address
        inlined: true
      friends:
        description: List of friends
        range: Person
        multivalued: true
        inlined_as_list: true

  Address:
    description: A postal address
    attributes:
      street:
        description: Street address
        recommended: true
      city:
        description: City name
        recommended: true
      country:
        description: Country name

  Container:
    description: A container for people
    tree_root: true
    attributes:
      people:
        description: List of people
        range: Person
        multivalued: true
        inlined_as_list: true
