Lark Parser for SPARQL 1.1
Project description
⅃arqL 🐦✨
larql is a simple Lark parser for SPARQL 1.1.
Apart from parsing SPARQL strings into Lark parse trees, the only additional feature larql will provide is a lark.Transformer for (pretty) serializing parsed queries back to strings. That's it.
WARNING: This project is in an early stage of development and should be used with caution.
Usage
from larql import SPARQLParser
parsed = SPARQLParser("select * where {?s ?p ?o .}")
parsed.tree # lark.Tree
# not yet available
parsed.serialize(indent=2)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file larql-0.1.0.tar.gz.
File metadata
- Download URL: larql-0.1.0.tar.gz
- Upload date:
- Size: 2.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
53f1abff5db6b4d28837217a4c615861f7007fc3c9c1bf6ebfdb06608e4263f1
|
|
| MD5 |
af6bd64b5902a6963bddf72e6072e4d0
|
|
| BLAKE2b-256 |
e2d80a27c9a083da4a270dfa06d68a2daa04014001b8fe9b306b63d388c5503b
|
File details
Details for the file larql-0.1.0-py3-none-any.whl.
File metadata
- Download URL: larql-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
967dd1ac2e06f14d6f30810816058760d328316bc961f937dd945e4975c8bc45
|
|
| MD5 |
2d20f315b0c24fd10ca554be622752d8
|
|
| BLAKE2b-256 |
2f0972dac41dd943dc0e432cc0ca7e18c8d2dd25b315c06717e4424d32e595a6
|