Skip to main content

Lark Parser for SPARQL 1.1

Project description

⅃arqL 🐦✨

W3C SPARQL 1.1. Tests License: GPL v3 Ruff uv

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

larql-0.1.0.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

larql-0.1.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

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

Hashes for larql-0.1.0.tar.gz
Algorithm Hash digest
SHA256 53f1abff5db6b4d28837217a4c615861f7007fc3c9c1bf6ebfdb06608e4263f1
MD5 af6bd64b5902a6963bddf72e6072e4d0
BLAKE2b-256 e2d80a27c9a083da4a270dfa06d68a2daa04014001b8fe9b306b63d388c5503b

See more details on using hashes here.

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

Hashes for larql-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 967dd1ac2e06f14d6f30810816058760d328316bc961f937dd945e4975c8bc45
MD5 2d20f315b0c24fd10ca554be622752d8
BLAKE2b-256 2f0972dac41dd943dc0e432cc0ca7e18c8d2dd25b315c06717e4424d32e595a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page