$data = navigate parent-child descendants from ferc:AccumulatedProvisionsForDepreciationAmortizationAndDepletionLineItems role "http://ferc.gov/form/2020-01-01/roles/Schedule/F2/SummaryOfUtilityPlantDepreciationAmortizationDepletion" returns list (target-name, preferred-label);
$data-labels = list(for $row in $data
$concept = taxonomy().concept($row[1]);
$row_num = (filter $concept.references("http://ferc.gov/form/2020-01-01/roles/reference/formLocation") where ($item.part-by-name(ferc-part:Schedule).part-value == "200 - Schedule - Summary of Utility Plant and Accumulated Provisions for Depreciation, Amortization and Depletion" and $item.part-by-name(ferc-part:ValueType).part-value.string == "Label" and "http://ferc.gov/form/2020-01-01/roles/label/" + $item.part-by-name(ferc-part:ColumnName).part-value.string == $row[2].role.uri)).to-list;
$current = if list([covered @concept = $row[1] @period = $currentInstant]).length > 0
first(list([covered @concept = $row[1] @period = $currentInstant]))
else
none
$current_electric = if list([covered @concept = $row[1] @ferc:UtilityTypeAxis=ferc:ElectricUtilityMember @period = $currentInstant]).length > 0
first(list([covered @concept = $row[1] @ferc:UtilityTypeAxis=ferc:ElectricUtilityMember @period = $currentInstant]))
else
none
$current_gas = if list([covered @concept = $row[1] @ferc:UtilityTypeAxis=ferc:GasUtilityMember @period = $currentInstant]).length > 0
first(list([covered @concept = $row[1] @ferc:UtilityTypeAxis=ferc:GasUtilityMember @period = $currentInstant]))
else
none
$current_other = if list([covered @concept = $row[1] @ferc:UtilityTypeAxis=ferc:OtherUtilityMember @period = $currentInstant]).length > 0
first(list([covered @concept = $row[1] @ferc:UtilityTypeAxis=ferc:OtherUtilityMember @period = $currentInstant]))
else
none
$current_common = if list([covered @concept = $row[1] @ferc:UtilityTypeAxis=ferc:CommonUtilityMember @period = $currentInstant]).length > 0
first(list([covered @concept = $row[1] @ferc:UtilityTypeAxis=ferc:CommonUtilityMember @period = $currentInstant]))
else
none
list($concept,
$concept.label($row[2].role.uri).text,
if ($row_num.part-by-name(ferc-part:Row)).length == 0
""
else
($row_num.part-by-name(ferc-part:Row))[1].part-value,
$current,
$current_electric,
$current_gas,
$current_other,
$current_common
));
for $rowl in $data-labels
$rowl[3]
1
|
|
$rowl[4]
if $rowl[1].is-abstract "gray-out" else ""
|
$rowl[5]
if $rowl[1].is-abstract "gray-out" else ""
|
$rowl[6]
if $rowl[1].is-abstract "gray-out" else ""
|
$rowl[7]
if $rowl[1].is-abstract "gray-out" else ""
|
$rowl[8]
if $rowl[1].is-abstract "gray-out" else ""
|