pub fn extract_blank_node(
query: Query<'_, '_, (&Element, &Source, &RopeC, &Label, &PositionComponent, &DynLang, &mut CodeActionRequest)>,
config: Res<'_, ServerConfig>,
)Expand description
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:
<#s> foaf:knows [ foaf:name "Alice" ] .becomes
<#s> foaf:knows _:b0 .
_:b0 foaf:name "Alice" .This is generic over the language marker L; every text RDF syntax whose
parsed model is Turtle (Turtle, TriG, SPARQL, N3, …) can reuse it.