Skip to main content

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


Download files

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

Source Distribution

pyarkg-0.1.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

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

pyarkg-0.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

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

Hashes for pyarkg-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7f2caa665dfd405a937e50fb711d78f39ccdde9d2c1ec9a3248fef5cfc9bea3e
MD5 eaeefb1e6a0959d9c71d408bcfc4906e
BLAKE2b-256 e4cf89eed48d465f22cfa5283f13bd6aea4079a96b0188005b230534b8e4dfe0

See more details on using hashes here.

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

Hashes for pyarkg-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 041871765f159a19884b4fe6d46420402ceaae745d2792862d877bb14c68b3e4
MD5 ca453d9b99e34bb0664f54d4de518a32
BLAKE2b-256 eeaa53f04fb1f24a869025708d8d6f5da5f5a862c06a883954e13cd1dffde58a

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