
Domain helper: element-to-framework bindings with framework name attached
Source:R/sparql-helpers.R
element_framework_bindings.RdOne row per (element, framework) pair where the element is typed
cybed:RoleElement (which includes parent elements, cybed:Subpoint
children, and cybed:Example children) and its partOf target is
typed cybed:Framework. Elements without a cybed:partOf triple, or
whose partOf target is not a Framework, are excluded.
This helper is the broad cut. Use example_framework_bindings() when
you need only the cybed:Example subset (e.g., for the "with-examples"
counting column in framework_summary).
Value
A tibble with columns element, 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()
element_framework_bindings(rdf)
} # }