Returns an rdf object containing a synthetic two-framework graph with
the structural shape the package's helpers expect under the v0.2.0
vocabulary:
Framework A (US, civilian, cybersecurity-specific) is workforce-shaped: its 2 organizing units are typed
cybed:Roleandcybed:OrganizingUnit, mirroring NICE / DCWF / ENISA ECSF.Framework B (EU, general, general-IT) is non-workforce-shaped: its 1 organizing unit is typed
cybed:OrganizingUnitonly, mirroring SFIA / Cyber.org K-12 / CSTA / CSEC2017 / DigComp 2.2.
The graph also includes 5 atomic elements (typed cybed:RoleElement),
one cybed:Subpoint (an enumerated child of an element, reachable via
the role's cybed:hasElement), and one cybed:Example (a pedagogical-
scaffolding child, reachable only via the parent element's
cybed:hasExample and excluded from default cybed:hasElement
traversals). This is enough to exercise the cross-framework pivots
(cybed:OrganizingUnit), the workforce-only pivots (cybed:Role),
the Subpoint vs Example separation, and the per-framework pivots in
a single small graph.
Use this to:
Verify the package is installed and SPARQL execution works on your system (helpful when troubleshooting
librdfsystem-library issues).Try out the domain helpers before running the full pipeline.
Develop new helpers or queries against a graph small enough to reason about by hand.
For real cross-framework analysis, use load_combined_ntriples_graph()
against a graph assembled from staged framework sources.
See also
Other RDF graph loading:
load_combined_ntriples_graph(),
load_combined_rdf_graph(),
load_single_framework_graph(),
load_unified_rdf_graph()
Examples
rdf <- make_demo_graph()
framework_metadata(rdf)
#> # A tibble: 2 × 5
#> framework name jurisdiction sector specificity
#> <chr> <chr> <chr> <chr> <chr>
#> 1 https://w3id.org/cybed/ontology#framewo… Demo… EU gener… general-IT
#> 2 https://w3id.org/cybed/ontology#framewo… Demo… US civil… cybersecur…
organizing_unit_framework_bindings(rdf) # all three units, both frameworks
#> # A tibble: 3 × 4
#> unit framework unit_name framework_name
#> <chr> <chr> <chr> <chr>
#> 1 https://w3id.org/cybed/ontology#role/demo-… https://… IT Gener… Demo Framewor…
#> 2 https://w3id.org/cybed/ontology#role/demo-… https://… Incident… Demo Framewor…
#> 3 https://w3id.org/cybed/ontology#role/demo-… https://… Security… Demo Framewor…
role_framework_bindings(rdf) # only the two workforce-shaped units
#> # A tibble: 2 × 4
#> role framework role_name framework_name
#> <chr> <chr> <chr> <chr>
#> 1 https://w3id.org/cybed/ontology#role/demo-… https://… Incident… Demo Framewor…
#> 2 https://w3id.org/cybed/ontology#role/demo-… https://… Security… Demo Framewor…
sparql_pairs(rdf, "cybed:hasExample") # the parent -> example link
#> # A tibble: 1 × 2
#> s o
#> <chr> <chr>
#> 1 https://w3id.org/cybed/ontology#element/demo-el-b1 https://w3id.org/cybed/ont…
