GIG Python Library

Installation

Prerequisites

Initialization

from gig-python import Server as GIG_Server
from gig-python import Entity

server = GIG_Server("http://localhost:9000/")

API Functions

entity = server.get("Sri Lanka")
entities = server.search("sri lanka", attributes_list=["title"])
results = server.normalize_name("sri lanka")
results = server.normalize_location("colombo")
entities = server.get_links("Person A")
entities = server.get_relations("Sri Lanka")
entity = Entity()
entity.title = "LDF Test Entity"
result = server.add(entity)
entity = Entity()
entity.title = "LDF Batch"
result = server.add_all([entity])
entity = Entity()
entity.title = "LDF Test Entity"
entity.source_date = "2021-01-02T15:04:05-07:00"
entity.source = "python-lib"
result = server.terminate(entity)

References

  1. https://github.com/LDFLK/gig-python
  2. https://pypi.org/project/gig-python/

--

--

--

Tech Enthusiast, Critical Thinker

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Best resources to learn Go-lang programming language!!

Functional Interfaces — Default and static methods

Pickrr customer care number 8392078983,,8392078983

CS373 Spring 2022: Mara Manskie

Long-term review use of Trackpad & Mouse on iPad Setup

Download Sonicwall Global Vpn Client Gvc For Mac

Software Development Phase 2: Sinatra Web Application

Certificate revocation and expiry

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Umayanga Gunawardhana

Umayanga Gunawardhana

Tech Enthusiast, Critical Thinker

More from Medium

Pip commands and virtual env in python

Shuffling an out of box large data file in python

PanDas in Depth— Building Flexible DataFrames

Pandas Intro