Modules§
Structs§
- Defined
Class - Defined
Property - From
Prefix - Ontology
Extractor - Prefix
Component - Set when the cursor is on a prefix declaration (Turtle/SPARQL/TriG) or a
JSON-LD
@contextterm. Carries the resolved namespace so hover and goto-definition can describe / navigate to it instead of an unrelated triple. - Prefix
Entry - TypeId
Constants§
- ALLOW_
PROPERTY_ COMMAND executeCommandidentifier that adds an IRI to the user’sallowed_properties.
Functions§
- add_
missing_ prefix_ code_ action - ECS system: runs
prefix_diagnostic_helperfor every open document to populateCodeActionRequestwith “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
@contextterm and, if so, insert aPrefixComponentand 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
Turtlemodel against its declared prefixes and return (diagnostics, code_actions). - prefix_
diagnostics - ECS system: runs
prefix_diagnostic_helperfor 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
Commandso the editor round-trips back throughworkspace/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