Skip to main content

Turtle Language Server

PyPI version

This is a LSP server implementation for RDF graphs serialized as Turtle.

Install with: pip install turtle_language_server

Commands and Features

  • Use the loadGraphs command to pull in the graph definitions listed as prefixes in your Turtle file:

    # caches graphs in-memory for NeoVim session
    :CocCommand loadGraphs
    
    # overrides cache and pulls graphs anyway
    :CocCommand loadGraphs force
    
  • syntax checking your Turtle file (including undefined namespaces)

  • auto-complete when adding statements to the file (relies on loadGraphs)

TODOs:

  • verify shapes and add validation information to UI

Setup With NeoVim and CoC

If you are using coc.nvim, you can configure the language server as follows:

  1. Make sure Vim correctly detects turtle files and sets the filetype. One way to achieve this is by adding the following line to your .vimrc or init.nvim:

    au BufRead,BufNewFile *.ttl set filetype=turtle
    
  2. Modify your CoC settings to use the turtle_language_server when you open a Turtle file.

    1. First, run :CocConfig or edit coc-settings.json
    2. Add the following (merge with existing keys in "languageserver" if needed):
      {
        "languageserver": {
          "turtle": {
            "command": "turtle_langserver",
            "filetypes": ["ttl", "turtle"]
          }
        }
      }
      

Release files for turtle-language-server 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for turtle-language-server 0.1.2
File Size Uploaded
turtle-language-server-0.1.2.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for turtle-language-server 0.1.2
File Interpreter ABI Platform
turtle_language_server-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 11.5 kB

Release files / turtle-language-server-0.1.2.tar.gz

Download URL turtle-language-server-0.1.2.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
a2c8b5e668bff2830e501e4aeef033bdb068b776d36fd559d958ec1ca5f5f549
BLAKE2b-256 checksum
How to use checksums
c2f5efc148eb011c79c0883a48e585484240a978374ac454c2c000301adb3c02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.8.6 Linux/5.8.0-7630-generic

Release files / turtle_language_server-0.1.2-py3-none-any.whl

Download URL turtle_language_server-0.1.2-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c8d26975b60f54899f0a6862187ad54d994504bd17bad87f3e27f2783925082d
BLAKE2b-256 checksum
How to use checksums
62d02397915fdebf18fc14a0b415a94680b511965e03848ce4650cc04e83ab0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.8.6 Linux/5.8.0-7630-generic

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page