Skip to main content

A Python functions library for working with GeoSPARQL data

Project description

geosparqllib

A Python functions library for working with GeoSPARQL data.

This Python library contains a series of functions for creating, using and otherwise working with GeoSPARQL RDF data.

Common tasks handled by this library are:

  • creating GeoSPARQL data from other spatial data
  • ...

Installation

This library is available on PyPI so can be installed using PIP:

pip install geosparqllib

or Poetry:

poetry add geosparqllib

Use

Here's an example of using the make_geometry() function:

from geosparqllib import make_geometry

j = """
    {
      "type": "Feature",
      "properties": {},
      "geometry": {
        "type": "Polygon", 
        "coordinates": [
          [ 
            [0, 0], 
            [1, 0], 
            [1, 1], 
            [0, 1], 
            [0, 0] 
          ]
        ]
      }
    }
    """
f = "http://example.com/f/1"
geom = make_geometry(f, j)
print(geom.serialize(format="longturtle"))

License

BSD- 3-Clause (and in RDF).

Contact

Developer:

Nicholas Car
KurrawongAI
nick@kurrawong.ai

Admin

Useful build commands

~$ poetry run pytest
# update version in pyproject.toml
~$ git commit -am "new version x.x.x"
~$ git tag x.x.x
~$ git push --tags
~$ poetry build
~$ poetry publish

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

geosparqllib-0.1.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

geosparqllib-0.1.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file geosparqllib-0.1.2.tar.gz.

File metadata

  • Download URL: geosparqllib-0.1.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.11.0b5 Darwin/23.5.0

File hashes

Hashes for geosparqllib-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1bca0409468149ca49755c43d292c60aa7397341aacefa0a39e6fd02f6840005
MD5 5bf242d9d7ca90fbe13c4a26480a0e12
BLAKE2b-256 eca3941566574bd9d9b172922ef00f46eaa006337fb6f00d61089578e646f578

See more details on using hashes here.

Provenance

File details

Details for the file geosparqllib-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: geosparqllib-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.11.0b5 Darwin/23.5.0

File hashes

Hashes for geosparqllib-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7bbee125196d3dd637056a697576424a07058f986688dbf485b417adc8fd93e0
MD5 769c977864f5110fb034c6a513e6a3e6
BLAKE2b-256 e43d3d1598cca09be8a4b5558b090b50eeee27a20b8acc58f52604eb2f48d567

See more details on using hashes here.

Provenance

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