Python client for the ArKG Chile archaeological dating knowledge graph
Project description
pyarkg
Python client for the ArKG Chile archaeological dating knowledge graph (arkg.cl), which openly organizes and distributes Chilean archaeological dates (radiocarbon and thermoluminescence) using a SPARQL endpoint powered by MillenniumDB.
Installation
pip install pyarkg
Usage
from pyarkg import ArKGClient, dates, sites
# High-level helpers
dataciones = dates(limit=100) # list of dicts (Fechado)
sitios = sites(limit=50) # list of dicts (ArchSite)
# Raw SPARQL query
client = ArKGClient()
rows = client.query("SELECT (COUNT(*) AS ?n) WHERE { ?s ?p ?o }")
# As a pandas DataFrame (optional extra)
df = client.query_df("SELECT * WHERE { ?s ?p ?o } LIMIT 10")
Endpoint
By default the client queries https://arkg.cl/api/sparql. Override it
with the environment variable ARKG_SPARQL_ENDPOINT.
Optional dependencies
pip install "pyarkg[pandas]" # enables query_df()
License
CC BY-SA 4.0
Citation
Campbell, R., Mendez, V., Arenas, M., Riveros, C. ArKG: Archaeology Knowledge Graph of Chile. https://arkg.cl
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 pyarkg-0.1.0.tar.gz.
File metadata
- Download URL: pyarkg-0.1.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7f2caa665dfd405a937e50fb711d78f39ccdde9d2c1ec9a3248fef5cfc9bea3e
|
|
| MD5 |
eaeefb1e6a0959d9c71d408bcfc4906e
|
|
| BLAKE2b-256 |
e4cf89eed48d465f22cfa5283f13bd6aea4079a96b0188005b230534b8e4dfe0
|
File details
Details for the file pyarkg-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pyarkg-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
041871765f159a19884b4fe6d46420402ceaae745d2792862d877bb14c68b3e4
|
|
| MD5 |
ca453d9b99e34bb0664f54d4de518a32
|
|
| BLAKE2b-256 |
eeaa53f04fb1f24a869025708d8d6f5da5f5a862c06a883954e13cd1dffde58a
|