Skip to content

Class: SourceRecord

One physical source line with an optional, explicitly scoped interpretation.

URI: bfs:class/SourceRecord

 classDiagram
    class SourceRecord
    click SourceRecord href "../../classes/SourceRecord/"
      SourceRecord : context_record





        SourceRecord --> "0..1" SourceRecord : context_record
        click SourceRecord href "../../classes/SourceRecord/"



      SourceRecord : feature_columns

      SourceRecord : kind





        SourceRecord --> "1" SourceRecordKindEnum : kind
        click SourceRecordKindEnum href "../../enums/SourceRecordKindEnum/"



      SourceRecord : line_number

      SourceRecord : metadata





        SourceRecord --> "*" Attribute : metadata
        click Attribute href "../../classes/Attribute/"



      SourceRecord : metadata_type

      SourceRecord : raw_text

      SourceRecord : record_id

      SourceRecord : scope





        SourceRecord --> "1" MetadataScopeEnum : scope
        click MetadataScopeEnum href "../../enums/MetadataScopeEnum/"



      SourceRecord : sequence_id

      SourceRecord : sequence_text

      SourceRecord : warnings

Slots

Name Cardinality and Range Description Inheritance
record_id 1
String
Document-local record identity derived from the physical line number direct
line_number 1
Integer
One-based physical line number; CRLF counts as one line ending direct
raw_text 1
String
Original line including its exact CR, LF, or CRLF ending, if present direct
kind 1
SourceRecordKindEnum
Lexical role of this record in the source stream direct
scope 1
MetadataScopeEnum
Scope justified by the format or producer profile; stream means position only direct
sequence_id 0..1
String
Source sequence name, present only when explicit or established by a recogniz... direct
context_record 0..1
SourceRecord
Prodigal Sequence Data or FASTA header record establishing this sequence cont... direct
metadata_type 0..1
String
Directive name or recognized producer metadata form direct
metadata *
Attribute
Ordered source values interpreted from a recognized metadata form; repeated k... direct
feature_columns 9..*
String
Lexical source fields; exactly nine for GFF3/GTF or twelve for BED12, enforce... direct
sequence_text 0..1
String
Sequence letters from a FASTA body line, with whitespace removed; raw_text re... direct
warnings *
String
Interpretation problems; the corresponding source line is still retained direct

Usages

used by used in type used
SourceDocument records range SourceRecord
SourceRecord context_record range SourceRecord

Notes

  • raw_text is authoritative. Parsed fields are a read-only projection, not instructions to rewrite it.
  • Feature columns remain lexical strings. No feature identifiers, coordinates, parents, or GFF/GTF attribute semantics are inferred or normalized by this layer.
  • Sequence contexts are identified by the declaring record, not just the sequence name, so repeated Prodigal blocks and FASTA headers remain distinguishable.

Identifier and Mapping Information

Schema Source

Mappings

Mapping Type Mapped Value
self bfs:SourceRecord
native bfs:SourceRecord

LinkML Source

Direct

name: SourceRecord
description: One physical source line with an optional, explicitly scoped interpretation.
notes:
- raw_text is authoritative. Parsed fields are a read-only projection, not instructions
  to rewrite it.
- Feature columns remain lexical strings. No feature identifiers, coordinates, parents,
  or GFF/GTF attribute semantics are inferred or normalized by this layer.
- Sequence contexts are identified by the declaring record, not just the sequence
  name, so repeated Prodigal blocks and FASTA headers remain distinguishable.
from_schema: https://w3id.org/ber-data/feature-schemas
slots:
- record_id
- line_number
- raw_text
- kind
- scope
- sequence_id
- context_record
- metadata_type
- metadata
- feature_columns
- sequence_text
- warnings

Induced

name: SourceRecord
description: One physical source line with an optional, explicitly scoped interpretation.
notes:
- raw_text is authoritative. Parsed fields are a read-only projection, not instructions
  to rewrite it.
- Feature columns remain lexical strings. No feature identifiers, coordinates, parents,
  or GFF/GTF attribute semantics are inferred or normalized by this layer.
- Sequence contexts are identified by the declaring record, not just the sequence
  name, so repeated Prodigal blocks and FASTA headers remain distinguishable.
from_schema: https://w3id.org/ber-data/feature-schemas
attributes:
  record_id:
    name: record_id
    description: Document-local record identity derived from the physical line number.
    from_schema: https://w3id.org/ber-data/feature-schemas
    rank: 1000
    identifier: true
    owner: SourceRecord
    domain_of:
    - SourceRecord
    range: string
    required: true
  line_number:
    name: line_number
    description: One-based physical line number; CRLF counts as one line ending.
    from_schema: https://w3id.org/ber-data/feature-schemas
    rank: 1000
    owner: SourceRecord
    domain_of:
    - SourceRecord
    range: integer
    required: true
    minimum_value: 1
  raw_text:
    name: raw_text
    description: Original line including its exact CR, LF, or CRLF ending, if present.
    from_schema: https://w3id.org/ber-data/feature-schemas
    rank: 1000
    owner: SourceRecord
    domain_of:
    - SourceRecord
    range: string
    required: true
  kind:
    name: kind
    description: Lexical role of this record in the source stream.
    from_schema: https://w3id.org/ber-data/feature-schemas
    rank: 1000
    owner: SourceRecord
    domain_of:
    - SourceRecord
    range: SourceRecordKindEnum
    required: true
  scope:
    name: scope
    description: Scope justified by the format or producer profile; stream means position
      only.
    from_schema: https://w3id.org/ber-data/feature-schemas
    rank: 1000
    owner: SourceRecord
    domain_of:
    - SourceRecord
    range: MetadataScopeEnum
    required: true
  sequence_id:
    name: sequence_id
    description: Source sequence name, present only when explicit or established by
      a recognized context.
    from_schema: https://w3id.org/ber-data/feature-schemas
    rank: 1000
    owner: SourceRecord
    domain_of:
    - SourceRecord
    range: string
  context_record:
    name: context_record
    description: Prodigal Sequence Data or FASTA header record establishing this sequence
      context.
    from_schema: https://w3id.org/ber-data/feature-schemas
    rank: 1000
    owner: SourceRecord
    domain_of:
    - SourceRecord
    range: SourceRecord
  metadata_type:
    name: metadata_type
    description: Directive name or recognized producer metadata form.
    from_schema: https://w3id.org/ber-data/feature-schemas
    rank: 1000
    owner: SourceRecord
    domain_of:
    - SourceRecord
    range: string
  metadata:
    name: metadata
    description: Ordered source values interpreted from a recognized metadata form;
      repeated keys survive.
    from_schema: https://w3id.org/ber-data/feature-schemas
    rank: 1000
    list_elements_ordered: true
    owner: SourceRecord
    domain_of:
    - SourceRecord
    range: Attribute
    multivalued: true
    inlined: true
    inlined_as_list: true
  feature_columns:
    name: feature_columns
    description: Lexical source fields; exactly nine for GFF3/GTF or twelve for BED12,
      enforced by the reader.
    from_schema: https://w3id.org/ber-data/feature-schemas
    rank: 1000
    list_elements_ordered: true
    owner: SourceRecord
    domain_of:
    - SourceRecord
    range: string
    multivalued: true
    minimum_cardinality: 9
    maximum_cardinality: 12
  sequence_text:
    name: sequence_text
    description: Sequence letters from a FASTA body line, with whitespace removed;
      raw_text retains it.
    from_schema: https://w3id.org/ber-data/feature-schemas
    rank: 1000
    owner: SourceRecord
    domain_of:
    - SourceRecord
    range: string
  warnings:
    name: warnings
    description: Interpretation problems; the corresponding source line is still retained.
    from_schema: https://w3id.org/ber-data/feature-schemas
    rank: 1000
    owner: SourceRecord
    domain_of:
    - SourceRecord
    range: string
    multivalued: true