Skip to main content

Module systems

Module systems 

Source

Modules§

prefix
visible
Which SHACL shape documents apply to a document.

Structs§

ConfiguredOntology
Marks a LocalPrefix that was loaded from the user’s ontologies config.
DefinedClass
DefinedProperty
FromPrefix
NamespaceSource
One document the server loads to describe a namespace.
OntologyExtractor
PreferredPrefixes
The preferred prefix name of every known namespace.
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
ShaclShapes
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
complete_shape_templates
Completion system offering “required” and “all properties” templates from the SHACL shapes that apply to the subject at the cursor.
configured_url
Label of the document loaded for a configured ontology at location.
derive_ontologies
Recompute Ontologies whenever the store changed (see load_store and Revisions::store), and bump Revisions::ontologies.
derive_owl_imports_links
Link every document to the documents it owl:imports, as loaded by open_imports (see import_url).
derive_prefix_links
Link every document to the ontology documents of the prefixes it declares.
derive_shapes
Compile the SHACL shapes of every document whose triples changed. Bumps Revisions::shapes when a document gains, changes or loses shapes.
extract_type_hierarchy
fetch_lov_properties
Load the ontology documents for every prefix used in an open document.
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_shape_property
Hover system: document a predicate with the property shapes that apply to it for this subject.
hover_types
import_url
Label of the document loaded for owl:imports <iri>.
infer_current_type
infer_types
Infer the types of the subjects of open documents, from rdf:type and the domains and ranges of the properties they use.
init_ontology_extractor
keyword_complete
namespace_sources
Every document the server loads for namespace, written as prefix: in the user’s document.
open_imports
Load the targets of owl:imports of every document whose triples changed.
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.
shape_property_completions
Completion system: add shape documentation to property completions, and offer predicates that only the shapes declare.
spawn_background
Like spawn_or_insert, for documents the server loads in the background (LOV ontologies, owl:imports, configured ontologies and shapes).
spawn_document
Load a background document with content at url and parse it.
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