SWLS offers three property completion modes that control which properties appear in the suggestion list for a given subject node:Documentation Index
Fetch the complete documentation index at: https://mintlify.com/SemanticWebLanguageServer/swls-vscode/llms.txt
Use this file to discover all available pages before exploring further.
none uses the server default, loose surfaces all known properties regardless of type declarations, and strict filters suggestions to properties whose rdfs:domain matches the subject’s declared rdf:type. You can also override the global mode on a per-namespace basis using swls.completion.strict and swls.completion.except.
Completion modes
none (default)
loose
rdfs:domain matches the subject’s rdf:type. Use loose mode when you want maximum discoverability and don’t want the server to hide anything from you — for example, when exploring an unfamiliar ontology.
strict
rdfs:domain is compatible with the subject’s declared rdf:type are suggested. Use strict mode when working with large ontologies (e.g. Schema.org) where the full property list would otherwise be overwhelming.
Setting the mode
Add the following to yoursettings.json (user or workspace level):
Per-namespace overrides
The globalswls.completion.mode can be overridden for individual namespace URI prefixes using swls.completion.strict and swls.completion.except. When either array is non-empty, it takes precedence over whatever swls.completion.mode is set to — swls.completion.strict is checked first, then swls.completion.except; the global mode string is only used when both arrays are empty.
swls.completion.strict — enforce domain matching for specific namespaces in loose mode
When the global mode is loose, you may still want certain vocabularies to be treated strictly — for example, Schema.org where the full property list runs to hundreds of items. List the namespace URI prefixes that should always require domain matching:
https://schema.org/ will only be suggested when the subject’s rdf:type is compatible, even though the global mode is loose.
swls.completion.except — always suggest specific namespaces regardless of strict mode
When the global mode is strict, foundational RDF/OWL properties such as rdf:type, rdfs:label, or owl:sameAs are genuinely applicable to almost any subject. Rather than force-typing every blank node just to get those suggestions, add their namespace URIs to swls.completion.except:
rdf:type declaration.
swls.completion.strict and swls.completion.except both take precedence over swls.completion.mode. When swls.completion.strict is non-empty, it is applied and the mode setting is ignored entirely. When swls.completion.except is non-empty (and swls.completion.strict is empty), it is applied and the mode setting is ignored. The mode string is only used when both arrays are empty.Hiding unwanted prefix.cc completions
Prefix suggestions sourced from prefix.cc can be noisy if you never use certain well-known prefix aliases. Suppress specific short names withswls.prefixDisabled: