LSP Extension Ontology 1.0

Properties and metrics derived from LSP data via multilspy resolution and call graph analysis.

79 triples · Download .ttl · 0 classes · 4 object properties · 11 datatype properties

Object Properties (4)

PropertyDomainRangeDescription
lsp-x:argToParam ast:Node ast:Node Links an argument expression at a call site to the parameter definition it passes to. Populated by dataflow analysis after LSP call resolution.
lsp-x:callTarget ast:Node lsp:Location The resolved definition/location of a call site, populated by multilspy LSP DefinitionRequest.
lsp-x:importTarget ast:Node lsp:Location The resolved location of an imported module/symbol, populated by multilspy LSP resolution.
lsp-x:returnToCall ast:Node ast:Node Links a return statement to the call site that receives its value. Populated by dataflow analysis tracking return value flow.

Datatype Properties (11)

PropertyDomainRangeDescription
lsp-x:callTargetFile ast:Node xsd:string DEPRECATED — use lsp-x:resolutionTargetFile instead. Repository-relative file path of the call target.
lsp-x:callTargetLine ast:Node xsd:nonNegativeInteger Line number where the call target is defined, extracted from LSP Location response. Convenience property for quick access without following lsp-x:callTarget.
lsp-x:callTargetName ast:Node xsd:string Symbol name of the call target, extracted from LSP Hover response (best-effort). Convenience property for displaying target name without additional lookups.
lsp-x:calledByCount ast:Node xsd:nonNegativeInteger Fan-in: Number of distinct callers that call this function. Computed by counting how many call sites have lsp-x:callTarget pointing to this function.
lsp-x:callsCount ast:Node xsd:nonNegativeInteger Fan-out: Number of distinct functions this function calls. Computed by counting distinct lsp-x:callTarget triples where the subject is a call site within this function.
lsp-x:childClassCount ast:Node xsd:nonNegativeInteger Number of direct subclasses. Changes to classes with many children have wide ripple effects. Computed from LSP TypeHierarchyRequest (subtypes count).
lsp-x:importModule ast:Node xsd:string The module name or path being imported (e.g., 'react', 'lodash', './utils/helper'). Extracted from the import statement source text. Convenience property for quick access to import target without LSP ...
lsp-x:importSymbol ast:Node xsd:string Specific symbol name imported from the module (e.g., 'useState' from 'react', 'Path' from 'pathlib'). Optional — not present for wildcard or module-level imports.
lsp-x:inheritanceDepth ast:Node xsd:nonNegativeInteger Distance from root class in the inheritance hierarchy. Deep hierarchies can be harder to understand. Computed from LSP TypeHierarchyRequest (supertypes traversal).
lsp-x:resolutionSourceFile ast:Node xsd:string Repo-relative file path where the LSP resolution originated (the caller/importer side). Denormalized on all LSP resolution triples (calls, imports, extends) for file-level filtering and incremental en...
lsp-x:resolutionTargetFile ast:Node xsd:string Repo-relative file path where LSP resolved to (the definition/target side). Denormalized on all LSP resolution triples for file-level filtering and version diffs. Replaces the narrower lsp-x:callTarge...