One row per element that carries a cybed:elementText literal, from
the single basic graph pattern sparql_pairs(rdf, "cybed:elementText")
renamed from s/o. This is the statement text itself – the task,
knowledge, skill, competency, or standard wording as the framework
publishes it.
Value
A tibble with columns element (character, the element's full
URI) and text (character, the statement literal).
Details
Nothing is filtered, normalised, or de-duplicated beyond what the graph
holds. Elements without a cybed:elementText triple simply do not
appear, and an element carrying more than one cybed:elementText
literal yields one row per literal, so element is not guaranteed
unique. A graph with no cybed:elementText triples at all returns a
zero-row tibble with the same two columns.
Sub-points and examples are elements too, and they carry their own
text: a cybed:Subpoint holds the enumerated fragment lifted out of
its parent's wording, and a cybed:Example holds the pedagogical
"Clarification statement:" content. A caller who wants parent
statements only should anti-join both child sets away, matching each
helper's own identifier column against element:
subpoint_framework_bindings() returns subpoint, and
example_framework_bindings() returns example.
See also
element_framework_bindings() to attach framework
attribution, subpoint_framework_bindings() and
example_framework_bindings() to separate child elements from
parent statements.
Other SPARQL helpers:
element_framework_bindings(),
example_framework_bindings(),
framework_metadata(),
organizing_unit_framework_bindings(),
role_element_bindings(),
role_framework_bindings(),
sparql_pairs(),
sparql_subjects(),
subpoint_framework_bindings(),
unit_element_bindings(),
unit_relation_bindings()
Examples
rdf <- make_demo_graph()
# The demo graph carries no cybed:elementText, so this is a zero-row
# tibble with the columns `element` and `text`.
element_text(rdf)
#> # A tibble: 0 × 2
#> # ℹ 2 variables: element <chr>, text <chr>
if (FALSE) { # \dontrun{
rdf <- load_combined_ntriples_graph()
texts <- element_text(rdf)
# Parent statements only: drop sub-points and examples.
texts |>
dplyr::anti_join(
dplyr::rename(subpoint_framework_bindings(rdf), element = "subpoint"),
by = "element"
) |>
dplyr::anti_join(
dplyr::rename(example_framework_bindings(rdf), element = "example"),
by = "element"
)
} # }
