Skip to contents

Projects a Betwixt review into one row per atomic assertion in the candidate and reviewed states.

Descriptive fields are represented as assertions about the subject. Each semantic candidate column is represented as a predicate, with its cell value forming the value of the atomic assertion. Review status is inherited from the aligned wide projection.

The long projection is derived from project_review_wide() and introduces no additional review semantics.

Row-scoped context_* fields are inherited by each assertion generated from the corresponding wide row. They provide descriptive context only: they do not become assertions and do not receive review status.

Usage

project_review_long(review)

Arguments

review

A Betwixt review object returned by read_review().

Value

A data frame with one row per candidate or reviewed assertion and columns assertion_number, row_id, zero or more context_* columns, plane, subject, predicate, value, status, and provenance fields.

Details

The long projection contains one row for each atomic assertion in both the candidate and reviewed states. The status plane supplies the review status of these assertions but does not itself generate additional long-form rows.

Examples

review_html <- render_review(delini)

path <- tempfile(fileext = ".html")
writeLines(review_html, path)

review <- read_review(path)
long <- project_review_long(review)

head(long)
#> # A tibble: 6 × 21
#>   assertion_number row_id context_1         plane subject predicate value status
#>              <int>  <int> <chr>             <chr> <chr>   <chr>     <chr> <chr> 
#> 1                1      1 The Ethnographic… cand… fuds:Q… label     Deli… pendi…
#> 2                2      1 The Ethnographic… cand… fuds:Q… descript… the … pendi…
#> 3                3      1 The Ethnographic… revi… fuds:Q… label     Deli… pendi…
#> 4                4      1 The Ethnographic… revi… fuds:Q… descript… the … pendi…
#> 5                5      1 The Ethnographic… cand… fuds:Q… instance… farm… pendi…
#> 6                6      1 The Ethnographic… cand… fuds:Q… heritage… Livo… pendi…
#> # ℹ 13 more variables: reviewer <chr>, reviewer_email <chr>,
#> #   reviewer_iri <chr>, started_at <chr>, saved_at <chr>, ended_at <chr>,
#> #   data_manager <chr>, data_manager_email <chr>, data_manager_iri <chr>,
#> #   candidate_generated_at <chr>, software_agent <chr>, software_version <chr>,
#> #   table_id <chr>