Expand description
Shared, language-agnostic code actions for the text RDF syntaxes
(Turtle / TriG / SPARQL / N3 — anything whose parsed Element is the
Turtle model).
These systems are generic over the language marker L and are opted into by
each language via [setup_blank_node_code_action]. JSON-LD deliberately does
not register them, because its concrete syntax is JSON rather than the
[ … ] / _:bN blank-node forms these actions produce.
Functions§
- extract_
blank_ node - Code action: when the cursor sits inside an anonymous blank node
[ … ], offer to extract it into a labelled blank node (_:bN) declared as a separate statement. For example: - inline_
blank_ node - Code action: the inverse of
extract_blank_node. When the cursor sits on a labelled blank node_:bNthat is defined by exactly one statement and referenced in exactly one other place, inline the definition back into an anonymous blank node[ … ]. For example: