
Domain helper: example-to-framework bindings with framework name attached
Source:R/sparql-helpers.R
example_framework_bindings.RdOne row per (example, framework) pair where the example is typed
cybed:Example (the pedagogical-scaffolding subtype reserved for
Cyber.org K-12 and CSTA "Clarification statement:" content) and its
partOf target is typed cybed:Framework. Examples without a valid
framework partOf are excluded.
Examples are a strict subset of the elements returned by
element_framework_bindings(). Use this helper when reporting on the
Subpoint-vs-Example split for a framework, or when constructing a
"strict" native element count by subtracting both Example counts (this
helper) and Subpoint counts (subpoint_framework_bindings()) from the
total element count.
Value
A tibble with columns example, framework, framework_name,
framework_slug (added v0.4.0, a stable join key).
Note
The framework column holds the framework's full URI. Avoid
naming a local variable or function parameter framework in code
that filters or mutates this tibble – dplyr's data masking silently
resolves a bare framework reference inside filter()/mutate()
to this COLUMN rather than your same-named variable, with no error
and no warning, only a wrong (often zero-row) result surfacing later.
Examples
if (FALSE) { # \dontrun{
rdf <- load_combined_ntriples_graph()
example_framework_bindings(rdf)
} # }