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
Built Distribution
Close
Hashes for sari_sparql_parser-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8682babbc339fa17a8a703e2219f0f76123ae882e4a4343c36196601154ef2af |
|
MD5 | d52f47a59e9b5e3e9d889301257d96ab |
|
BLAKE2b-256 | 8aacd0a2b9bec132200608f80ca5e9f71b5528074411dc02b8782dcb8b993f19 |