Getting Started
Chat Service (beta)
Upload proprietary content
Knowledge Graph
Watchlist
Partner Content Upload
- Getting Started
- Format Requirements
- Input Mechanisms
Find Entities
Find People
The method find_people
returns a list of people that matched the value parameter.
The value can match with the person’s name, or description.
Once you have the IDs, you can use them to filter your search queries with an Entity query filter.
Copy
from dotenv import load_dotenv
from bigdata_client import Bigdata
import os
load_dotenv()
# Initialize the Bigdata API
username = os.environ.get("BIGDATA_USERNAME")
password = os.environ.get("BIGDATA_PASSWORD")
bigdata = Bigdata(username, password)
results = bigdata.knowledge_graph.find_people("Obama")
for person in results:
print(f"Entity ID: {person.id}")
print(f"Person Name: {person.name}")
print(f"Nationality: {person.nationality}")
print(f"Description: {person.description}\n")
Output:
Copy
Entity ID: A1F9FC
Person Name: Barack Obama
Nationality: American
Description: Barack Hussein Obama II (born August 4, 1961) is an American politician who served as the 44th President of the United States from 2009 to 2017, and the first African American to hold the office. He implemented numerous economic stimulus measures and signed into law landmark healthcare reform known as the Affordable Care Act.
Entity ID: 2DED74
Person Name: Michelle Obama
Nationality: American
Description: Michelle Obama (born January 17, 1964) is an American lawyer, university administrator, and writer, who served as the First Lady of the United States from 2009 to 2017. She is known for her advocacy on issues such as education, health, and military families, as well as her efforts to promote healthy eating and physical activity.
Entity ID: 6222B7
Person Name: Malia Ann Obama
Nationality: American
Description: Malia Ann Obama (born July 4, 1998) is the daughter of former President Barack Obama. She is an American student and public figure, known for her activism and advocacy work.
...
Was this page helpful?
Assistant
Responses are generated using AI and may contain mistakes.