Skip to main content

Python client for Maverick EntityGraph API

Project description

Maverick EntityGraph Client

This is a Python client for the Maverick EntityGraph.

Requirements.

Python 3.7+

Installation & Usage

pip install

pip install git+https://github.com/bechtleav360/entitygraph-client.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/bechtleav360/entitygraph-client.git)

Then import the package:

import entitygraph

Getting Started

import entitygraph
from entitygraph import Admin, Entity, Query, Application, Transaction
from rdflib import SDO

# Defining the host is optional and defaults to https://entitygraph.azurewebsites.net
entitygraph.connect(api_key="123")

# For application-specific operations, the Application class is essential. 
# In the following code, an application named "MyApp" is being retrieved. 
# Then, an entity with id "f3f34f" is obtained and converted into the n3 format.
n3: str = Application().get_by_label("MyApp").Entity().get_by_id("f3f34f").n3()

# For operations within the default application, the Admin, Entity, and Query classes can be directly invoked.
# In the example below, an entity with id "g93h4g8" is retrieved and its "foaf.name" value is updated to "New Name".
Entity().get_by_id("g93h4g8").set_value(SDO.title, "New Name")

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

entitygraph-client-0.0.18.tar.gz (48.5 kB view details)

Uploaded Source

Built Distribution

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

entitygraph_client-0.0.18-py3-none-any.whl (51.5 kB view details)

Uploaded Python 3

File details

Details for the file entitygraph-client-0.0.18.tar.gz.

File metadata

  • Download URL: entitygraph-client-0.0.18.tar.gz
  • Upload date:
  • Size: 48.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for entitygraph-client-0.0.18.tar.gz
Algorithm Hash digest
SHA256 d71e0a767494c3ab359a9f05480eba52c6a9473679a0ebd2060fbd1185008c2f
MD5 c1e8ba65d9ffc1a18091e49af3b43a44
BLAKE2b-256 890ef62bbf7b4b6fcc1b198f17f64e86fe163641b3e1727d9a32297d3fbf4386

See more details on using hashes here.

File details

Details for the file entitygraph_client-0.0.18-py3-none-any.whl.

File metadata

File hashes

Hashes for entitygraph_client-0.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 ef18fe69f977e677e78b95db0182b9145a63f3f8365b2343be8e63255b8dc1d6
MD5 f1f8e9fc26cbce0c62cc2d7928336770
BLAKE2b-256 c7fe7dbfa6b98ae0e7d89a544f7174c9da4c1dd918302096757e08fa6345759c

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