taxonomy().concept(ferc:RespondentLegalName).label("http://ferc.gov/form/2020-01-01/roles/label/F1Header").text Name of Respondent:
[@ferc:RespondentLegalName @period=$currentDuration] Duke Energy Kentucky, Inc.
taxonomy().concept(ferc:SubmissionType).label("http://ferc.gov/form/2020-01-01/roles/label/F1Header").text This report is:
(1) if missing({covered @concept=ferc:SubmissionType}) ☐ An Original']]> else if [@concept=ferc:SubmissionType @period=$currentDuration] == "O" ☑ An Original']]> else ☐ An Original']]> An Original
(2) if missing([covered @concept=ferc:SubmissionType @period=$currentDuration]) ☐ A Resubmission']]> else if [@concept=ferc:SubmissionType @period=$currentDuration] == "R" ☑ A Resubmission']]> else ☐ A Resubmission']]> A Resubmission
taxonomy().concept(ferc:ReportDate).label("http://ferc.gov/form/2020-01-01/roles/label/F1Header").text Date of Report:
[@ferc:ReportDate @period=$currentDuration] 04/26/2019
taxonomy().concept(ferc:ReportYearPeriod).label("http://ferc.gov/form/2020-01-01/roles/label/F1Header").text Year/Period of Report:
End of: [@ferc:ReportYear @period=$currentDuration] 2018 / [@ferc:ReportPeriod @period=$currentDuration] Q4
$dataHead = navigate parent-child descendants from ferc:NuclearFuelMaterialsLineItems stop when $relationship.preferred-label == "http://ferc.gov/form/2020-01-01/roles/label/F1RollforwardHeader" role "http://ferc.gov/form/2020-01-01/roles/Schedule/F1/ScheduleNuclearFuelMaterials" returns list (target-name, preferred-label, order); $rollforwardSection = list(for $x in $dataHead $abstractConcept = taxonomy().concept($x[1]); $is-heading = if ($x[2].role.uri == "http://ferc.gov/form/2020-01-01/roles/label/F1NuclearFuelMaterials") true else false; $abstractLabel = list($is-heading, $abstractConcept.label($x[2].role.uri).text); $data = navigate parent-child children from $x[1] role "http://ferc.gov/form/2020-01-01/roles/Schedule/F1/ScheduleNuclearFuelMaterials" returns list(target, preferred-label, order); $dataRow2 = list(none, none, none, none, none); $row_num = (filter $abstractConcept.references("http://ferc.gov/form/2020-01-01/roles/reference/formLocation") where ($item.part-by-name(ferc-part:Schedule).part-value == "202 - Schedule - Nuclear Fuel Materials" and $item.part-by-name(ferc-part:ValueType).part-value.string == "Label")).to-list; $row_number = list(if ($row_num.part-by-name(ferc-part:Row)).length == 0 "" else ($row_num.part-by-name(ferc-part:Row))[1].part-value); $ref_dict = dict(for $y in $data $col_refs = (filter $y[1].references("http://ferc.gov/form/2020-01-01/roles/reference/formLocation") where ($item.part-by-name(ferc-part:Schedule).part-value == "202 - Schedule - Nuclear Fuel Materials" and $item.part-by-name(ferc-part:ValueType).part-value.string == "Value" and $item.part-by-name(ferc-part:Period).part-value.string == "Current")).to-list; $col_num_current = if ($col_refs.part-by-name(ferc-part:Column)).length == 0 "f" else ($col_refs.part-by-name(ferc-part:Column))[1].part-value; $col_num = if $y[2].role.uri == "http://ferc.gov/form/2020-01-01/roles/label/F1BeginningBalance" "b" else $col_num_current; $element_col_Ref = list($col_num, list($y[1], $y[2])); $element_col_Ref ); $cols = list("b", "c", "d", "e", "f"); $dataRow1 = list(for $n in $cols if $ref_dict.has-key($n) $concept = $ref_dict[$n][1]; $role = $ref_dict[$n][2]; $conceptPeriod = $concept.period-type; if $conceptPeriod == "instant" if $role.role.uri == "http://ferc.gov/form/2020-01-01/roles/label/F1BeginningBalance" if list([covered @concept = $concept.name @period = $priorInstant]).length > 0 first(list([covered @concept = $concept.name @period = $priorInstant])) else none else if list([covered @concept = $concept.name @period = $currentInstant]).length > 0 first(list([covered @concept = $concept.name @period = $currentInstant])) else none else if list([covered @concept = $concept.name @period = $currentDuration]).length > 0 first(list([covered @concept = $concept.name @period = $currentDuration])) else none else none ); if $x[2].role.uri == "http://ferc.gov/form/2020-01-01/roles/label/F1NuclearFuelMaterials" $abstractLabel + $dataRow2 + $row_number else $abstractLabel + $dataRow1 + $row_number ); for $rowl in $rollforwardSection
taxonomy().concept(ferc:ScheduleNuclearFuelMaterialsAbstract).label("http://ferc.gov/form/2020-01-01/roles/label/F1ScheduleTitle").text Gas Property And Capacity Leased From Others
taxonomy().concept(ferc:ScheduleNuclearFuelMaterialsAbstract).label("http://ferc.gov/form/2020-01-01/roles/label/F1Instructions").text
  1. Report below the costs incurred for nuclear fuel materials in process of fabrication, on hand, in reactor, and in cooling; owned by the respondent.
  2. If the nuclear fuel stock is obtained under leasing arrangements, attach a statement showing the amount of nuclear fuel leased, the quantity used and quantity on hand, and the costs incurred under such leasing arrangements.
Line No. $headings = filter (taxonomy().concept(ferc:ScheduleNuclearFuelMaterialsAbstract).references("http://ferc.gov/form/2020-01-01/roles/reference/columnDetails")) where ($item.part-by-name(ferc-part:Schedule).part-value == "202 - Schedule - Nuclear Fuel Materials") $headings = list(for $ref in $headings list($ref.part-by-name(ferc-part:Column).part-value, $ref.part-by-name(ferc-part:ColumnName).part-value)) $heading_dict = dict(for $row in $headings list("("+$row[1]+")",$row[2]) ); for $row in $heading_dict.keys.sort
$heading_dict[$row] Description of Item
$row (a)
$rowl[8] 1 $rowl[2] $rowl[3] if $rowl[1] "gray-out" else "" $rowl[4] if $rowl[1] "gray-out" else "" $rowl[5] if $rowl[1] "gray-out" else "" $rowl[6] if $rowl[1] "gray-out" else "" $rowl[7] if $rowl[1] "gray-out" else ""