Skip to content

Class: OccurrenceDetails

Details about where in the target entity, specified information was discovered.

Only the attributes, relevant to the target entity type should be populated.

URI: ocsf:OccurrenceDetails

 classDiagram
    class OccurrenceDetails
    click OccurrenceDetails href "../OccurrenceDetails/"
      Object <|-- OccurrenceDetails
        click Object href "../Object/"

      OccurrenceDetails : cell_name

      OccurrenceDetails : column_name

      OccurrenceDetails : column_number

      OccurrenceDetails : end_line

      OccurrenceDetails : json_path

      OccurrenceDetails : page_number

      OccurrenceDetails : record_index_in_array

      OccurrenceDetails : row_number

      OccurrenceDetails : start_line

Inheritance

Slots

Name Cardinality and Range Description Inheritance
cell_name 0..1
String
The cell name/reference in a spreadsheet direct
column_name 0..1
String
The column name in a spreadsheet, where the information was discovered direct
column_number 0..1
Integer
The column number in a spreadsheet or a plain text document, where the direct
end_line 0..1
Integer
The line number of the last line of the file, where the information was direct
json_path 0..1
String
The JSON path of the attribute in a json record, where the information was direct
page_number 0..1
Integer
The page number in a document, where the information was discovered direct
record_index_in_array 0..1
Integer
The index of the record in the array of records, where the information was direct
row_number 0..1
Integer
The row number in a spreadsheet, where the information was discovered direct
start_line 0..1
Integer
The line number of the first line of the file, where the information was direct

Usages

used by used in type used
DiscoveryDetails occurrence_details range OccurrenceDetails
DiscoveryDetails occurrences range OccurrenceDetails

Rules

Rule Applied Preconditions Postconditions Elseconditions
any_of [{'slot_conditions': {'cell_name': {'required': True}}}, {'slot_conditions': {'column_name': {'required': True}}}, {'slot_conditions': {'column_number': {'required': True}}}, {'slot_conditions': {'end_line': {'required': True}}}, {'slot_conditions': {'json_path': {'required': True}}}, {'slot_conditions': {'page_number': {'required': True}}}, {'slot_conditions': {'record_index_in_array': {'required': True}}}, {'slot_conditions': {'row_number': {'required': True}}}, {'slot_conditions': {'start_line': {'required': True}}}]

In Subsets

Aliases

  • Occurrence Details

Identifier and Mapping Information

Annotations

property value
ocsf_constraints {"at_least_one": ["cell_name", "column_name", "column_number", "end_line",
"json_path", "page_number", "record_index_in_array", "row_number",
"start_line"]}

Schema Source

Mappings

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

LinkML Source

Direct

name: OccurrenceDetails
annotations:
  ocsf_constraints:
    tag: ocsf_constraints
    value: '{"at_least_one": ["cell_name", "column_name", "column_number", "end_line",

      "json_path", "page_number", "record_index_in_array", "row_number",

      "start_line"]}'
description: 'Details about where in the target entity, specified information was
  discovered.

  Only the attributes, relevant to the target entity type should be populated.'
in_subset:
- objects_subset
from_schema: https://w3id.org/lmodel/ocsf
aliases:
- Occurrence Details
is_a: Object
slots:
- cell_name
- column_name
- column_number
- end_line
- json_path
- page_number
- record_index_in_array
- row_number
- start_line
slot_usage:
  cell_name:
    name: cell_name
    description: The cell name/reference in a spreadsheet. e.g <code>A2</code>
  column_name:
    name: column_name
    description: The column name in a spreadsheet, where the information was discovered.
  column_number:
    name: column_number
    description: 'The column number in a spreadsheet or a plain text document, where
      the

      information was discovered.'
  end_line:
    name: end_line
    description: 'The line number of the last line of the file, where the information
      was

      discovered.'
  json_path:
    name: json_path
    description: 'The JSON path of the attribute in a json record, where the information
      was

      discovered'
  page_number:
    name: page_number
    description: The page number in a document, where the information was discovered.
  record_index_in_array:
    name: record_index_in_array
    description: 'The index of the record in the array of records, where the information
      was

      discovered. e.g. the index of a record in an array of JSON records in a file.'
  row_number:
    name: row_number
    description: The row number in a spreadsheet, where the information was discovered.
  start_line:
    name: start_line
    description: 'The line number of the first line of the file, where the information
      was

      discovered.'
rules:
- postconditions:
    any_of:
    - slot_conditions:
        cell_name:
          name: cell_name
          required: true
    - slot_conditions:
        column_name:
          name: column_name
          required: true
    - slot_conditions:
        column_number:
          name: column_number
          required: true
    - slot_conditions:
        end_line:
          name: end_line
          required: true
    - slot_conditions:
        json_path:
          name: json_path
          required: true
    - slot_conditions:
        page_number:
          name: page_number
          required: true
    - slot_conditions:
        record_index_in_array:
          name: record_index_in_array
          required: true
    - slot_conditions:
        row_number:
          name: row_number
          required: true
    - slot_conditions:
        start_line:
          name: start_line
          required: true
  description: 'OCSF at_least_one: at least one of [''cell_name'', ''column_name'',

    ''column_number'', ''end_line'', ''json_path'', ''page_number'',

    ''record_index_in_array'', ''row_number'', ''start_line''] must be set.'

Induced

name: OccurrenceDetails
annotations:
  ocsf_constraints:
    tag: ocsf_constraints
    value: '{"at_least_one": ["cell_name", "column_name", "column_number", "end_line",

      "json_path", "page_number", "record_index_in_array", "row_number",

      "start_line"]}'
description: 'Details about where in the target entity, specified information was
  discovered.

  Only the attributes, relevant to the target entity type should be populated.'
in_subset:
- objects_subset
from_schema: https://w3id.org/lmodel/ocsf
aliases:
- Occurrence Details
is_a: Object
slot_usage:
  cell_name:
    name: cell_name
    description: The cell name/reference in a spreadsheet. e.g <code>A2</code>
  column_name:
    name: column_name
    description: The column name in a spreadsheet, where the information was discovered.
  column_number:
    name: column_number
    description: 'The column number in a spreadsheet or a plain text document, where
      the

      information was discovered.'
  end_line:
    name: end_line
    description: 'The line number of the last line of the file, where the information
      was

      discovered.'
  json_path:
    name: json_path
    description: 'The JSON path of the attribute in a json record, where the information
      was

      discovered'
  page_number:
    name: page_number
    description: The page number in a document, where the information was discovered.
  record_index_in_array:
    name: record_index_in_array
    description: 'The index of the record in the array of records, where the information
      was

      discovered. e.g. the index of a record in an array of JSON records in a file.'
  row_number:
    name: row_number
    description: The row number in a spreadsheet, where the information was discovered.
  start_line:
    name: start_line
    description: 'The line number of the first line of the file, where the information
      was

      discovered.'
attributes:
  cell_name:
    name: cell_name
    description: The cell name/reference in a spreadsheet. e.g <code>A2</code>
    from_schema: https://w3id.org/lmodel/ocsf
    aliases:
    - Cell Name
    rank: 1000
    alias: cell_name
    owner: OccurrenceDetails
    domain_of:
    - OccurrenceDetails
    range: string
  column_name:
    name: column_name
    description: The column name in a spreadsheet, where the information was discovered.
    from_schema: https://w3id.org/lmodel/ocsf
    aliases:
    - Column Name
    rank: 1000
    alias: column_name
    owner: OccurrenceDetails
    domain_of:
    - OccurrenceDetails
    range: string
  column_number:
    name: column_number
    description: 'The column number in a spreadsheet or a plain text document, where
      the

      information was discovered.'
    from_schema: https://w3id.org/lmodel/ocsf
    aliases:
    - Column Number
    rank: 1000
    alias: column_number
    owner: OccurrenceDetails
    domain_of:
    - OccurrenceDetails
    range: integer
  end_line:
    name: end_line
    description: 'The line number of the last line of the file, where the information
      was

      discovered.'
    from_schema: https://w3id.org/lmodel/ocsf
    aliases:
    - End Line
    rank: 1000
    alias: end_line
    owner: OccurrenceDetails
    domain_of:
    - OccurrenceDetails
    - AffectedCode
    range: integer
  json_path:
    name: json_path
    description: 'The JSON path of the attribute in a json record, where the information
      was

      discovered'
    from_schema: https://w3id.org/lmodel/ocsf
    aliases:
    - JSON Path
    rank: 1000
    alias: json_path
    owner: OccurrenceDetails
    domain_of:
    - OccurrenceDetails
    range: string
  page_number:
    name: page_number
    description: The page number in a document, where the information was discovered.
    from_schema: https://w3id.org/lmodel/ocsf
    aliases:
    - Page Number
    rank: 1000
    alias: page_number
    owner: OccurrenceDetails
    domain_of:
    - OccurrenceDetails
    range: integer
  record_index_in_array:
    name: record_index_in_array
    description: 'The index of the record in the array of records, where the information
      was

      discovered. e.g. the index of a record in an array of JSON records in a file.'
    from_schema: https://w3id.org/lmodel/ocsf
    aliases:
    - Record Index in Array
    rank: 1000
    alias: record_index_in_array
    owner: OccurrenceDetails
    domain_of:
    - OccurrenceDetails
    range: integer
  row_number:
    name: row_number
    description: The row number in a spreadsheet, where the information was discovered.
    from_schema: https://w3id.org/lmodel/ocsf
    aliases:
    - Row Number
    rank: 1000
    alias: row_number
    owner: OccurrenceDetails
    domain_of:
    - OccurrenceDetails
    range: integer
  start_line:
    name: start_line
    description: 'The line number of the first line of the file, where the information
      was

      discovered.'
    from_schema: https://w3id.org/lmodel/ocsf
    aliases:
    - Start Line
    rank: 1000
    alias: start_line
    owner: OccurrenceDetails
    domain_of:
    - OccurrenceDetails
    - AffectedCode
    range: integer
rules:
- postconditions:
    any_of:
    - slot_conditions:
        cell_name:
          name: cell_name
          required: true
    - slot_conditions:
        column_name:
          name: column_name
          required: true
    - slot_conditions:
        column_number:
          name: column_number
          required: true
    - slot_conditions:
        end_line:
          name: end_line
          required: true
    - slot_conditions:
        json_path:
          name: json_path
          required: true
    - slot_conditions:
        page_number:
          name: page_number
          required: true
    - slot_conditions:
        record_index_in_array:
          name: record_index_in_array
          required: true
    - slot_conditions:
        row_number:
          name: row_number
          required: true
    - slot_conditions:
        start_line:
          name: start_line
          required: true
  description: 'OCSF at_least_one: at least one of [''cell_name'', ''column_name'',

    ''column_number'', ''end_line'', ''json_path'', ''page_number'',

    ''record_index_in_array'', ''row_number'', ''start_line''] must be set.'