Skip to main content

Module systems

Module systems 

Source

Modules§

prefix

Structs§

DefinedClass
DefinedProperty
FromPrefix
OntologyExtractor
PrefixComponent
Set when the cursor is on a prefix declaration (Turtle/SPARQL/TriG) or a JSON-LD @context term. Carries the resolved namespace so hover and goto-definition can describe / navigate to it instead of an unrelated triple.
PrefixEntry
TypeId

Constants§

ALLOW_PROPERTY_COMMAND
executeCommand identifier that adds an IRI to the user’s allowed_properties.

Functions§

add_missing_prefix_code_action
ECS system: runs prefix_diagnostic_helper for every open document to populate CodeActionRequest with “Add prefix declaration” quickfixes.
check_added_ontology_extract
complete_class
complete_properties
derive_ontologies
derive_owl_imports_links
derive_prefix_links
derive_shapes
extract_type_hierarchy
fetch_lov_properties
First of all, fetch the lov dataset information at url https://lov.linkeddata.es/dataset/lov/api/v2/vocabulary/info?vocab=${prefix} Next, extract that json object into an object and find the latest dataset
get_current_prefix
Detect whether the cursor sits on a prefix declaration / JSON-LD @context term and, if so, insert a PrefixComponent and drop the (necessarily wrong) TripleComponent. Shared by the Hover and GotoDefinition schedules.
goto_prefix
Goto-definition system: jump a real namespace prefix to its ontology document (the LOV-resolved file, or the namespace IRI itself). Term aliases (is_namespace() == false) are left to language-specific resolvers.
handle_tasks
hover_class
hover_excluded_property
Hover system: when the cursor sits on an IRI that the user has explicitly allow-listed via allowed_properties, explain that the property is not part of the ontology and is only accepted because the user excluded it from validation — including how to undo that.
hover_prefix
Hover system: describe the prefix → namespace mapping, enriched with the LOV ontology title when the namespace is known.
hover_property
hover_types
infer_current_type
infer_types
init_ontology_extractor
keyword_complete
open_imports
populate_known_ontologies
prefix_diagnostic_helper
Analyse a document’s parsed Turtle model against its declared prefixes and return (diagnostics, code_actions).
prefix_diagnostics
ECS system: runs prefix_diagnostic_helper for every open document whose triples or declared prefixes changed.
spawn_or_insert
unknown_property_code_action
ECS system (CodeActionLabel): offer a quick-fix that allow-lists an unknown property IRI. The action carries a Command so the editor round-trips back through workspace/executeCommand, letting the server persist the choice to the global config and clear the warning at runtime.
validate_namespace_properties
ECS system (ParseLabel): publish warnings for predicates in closed namespaces that are not defined in any known ontology.
validate_shapes
System evaluates linked shapes

Type Aliases§

DefinedClasses
DefinedProperties