Skip to main content

A library for parsing SPARQL queries and updates

Project description

SARI Sparql Parser

A parser for SPARQL queries and updates

Installation

install using pip

pip install sari-sparql-parser

Usage

Parse a SPARQL query:

from sariSparqlParser import parser

query = """PREFIX crm: <http://www.cidoc-crm.org/cidoc/crm>
    SELECT ?subject ?identifier WHERE {
        ?subject crm:P1_is_identified_by ?identifier .
        ?identifier a ?type .
        VALUES (?type) {
            (crm:E41_Appellation)
            (crm:E42_Identifier)
        }
    }
"""
p = parser()
p.parseQuery(query)

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

sari-sparql-parser-0.0.4.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

sari_sparql_parser-0.0.4-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file sari-sparql-parser-0.0.4.tar.gz.

File metadata

  • Download URL: sari-sparql-parser-0.0.4.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1

File hashes

Hashes for sari-sparql-parser-0.0.4.tar.gz
Algorithm Hash digest
SHA256 3679c5ecd32ffacb2542fb7df2fe5fd65aedc22b166e318a5e828780905ef891
MD5 da6aca08f08e08d210ffe6d2e476ca1e
BLAKE2b-256 afe5a3e9e073893b2ba5d23c245dd3195f39ef66ddba022530dc7f9851db1afd

See more details on using hashes here.

File details

Details for the file sari_sparql_parser-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: sari_sparql_parser-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1

File hashes

Hashes for sari_sparql_parser-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8259c9f3f08354086ec7024471ecf0537d1cfbf7bc8f7d1aeec43958e7896538
MD5 409d70349c8e9b1bd70b8887225ea993
BLAKE2b-256 a37bbfce84331796bdf4d33158dbdbd1e1b4e4196cccca8bb62301370a6c53d6

See more details on using hashes here.

Supported by

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