News + Blog

Education

Unlocking AI Potential: Why an AI Maturity Assessment Is Crucial for Your Business

Filter
Filter
Read Time

Introduction to Knowledge Graphs

1.      What’s the big deal?

Data has traditionally been collected and saved in databases, often relational databases, which have the capability to store large amounts of data. However, these databases have limitations due to the complex nature of data and its connections in the real world.

To overcome these limitations knowledge graphs are used. Knowledge graphs offer a novel approach to data storage whilst accounting forthe complex relationships in data. This results in easily accessible data, where it is possible to uncover hidden features and find new insights from your data.

2.      What is a knowledge graph?

Knowledge graphs are models of data about a certain topic. These topics can be anything where data can be collected, such as people across multiple organisations, products for sale in a business or movies, actors,directors and how they are all connected. These models allow us to visualise the way connections are made when the data is used in the real world.

 

A knowledge graph composes of nodes, edges and properties. Edges and nodes are crucial to a knowledge graph whilst properties provide additional information.

 

·       Nodes are usually entities, such as people, organisations or products.

·       Edges are the relationships between nodes. Relationships could be between two nodes describing people such as ‘related to’ or ‘employed by’.

·       Properties can be any further information about a node and properties can vary depending on the node type. Properties donot link to the edges.

 

When we combine nodes, edges and properties we have a knowledge graph!

Nodes and Edges displayed in a graph format.

3.       Movie Knowledge Graph Example

 A simple knowledge graph example is a movie database. This type of database can be shown in a straight forward way whilst still containing the complexities of the relationships involved.

 If we consider our knowledge graph components:

·       Nodes – People, Movies, Directors,Actors, Genres

·       Relationships – ‘Watched’, ‘Directed By’, ‘Acted in’

·       Properties – Age, Run time, Release Date, Number of movies directed

An example of a small section of a Movies knowledge graph is visually displayed below. This simple knowledge graph contains the key components previously described.

An example of a small graph representing movie data.

This example shows which movies Alice and Bob have watched, what genre they are in, who directed them and who acted in them. There are manyreasons why this information is important and how it can be used, but we willget to that later…

4.      Why should you use Knowledge Graphs?

Representing data in a knowledge graph provides contextual understanding that may not be possible in a traditional database. The power of a knowledge graph becomes clear when trying to follow connections between data points to retrieve information. Graph queries can take a tiny amount of time to perform this compared to retrieving the same data from a relational database.Not only does the faster search provide huge benefits but the flexibility of a knowledge graph enables the use of complex algorithms to uncover insights in your data and provide real world solutions.

Knowledge Graph Relational Database
Flexibility Unstructured – The structure of a knowledge graph is flexible to whatever is desired and can be changed whenever needed Rigid - Predefined structure of columns that must be kept the same for future data
Performance Fast - Relational queries can be retrieved quickly even for large datasets Slow - Relational queries require many table joins, and can take a long time to process
Storage & Scaling Highly scalable – Can store massive amounts of data in multiple formats Scales but with difficulty - Can store massive amounts amounts of data, but must be kept in the same format
Maintenance Low Maintenance - Easy to adjust when you need to Tricky to Maintain - Is difficult to change to a new data structure

A further benefit gained from knowledge graphs is the flexibility and scalability. These graphs can be edited to include new information easily without affecting other data entries. Knowledge graphs also store data efficiently resulting in a data store that can scale to hold huge amounts of information. For example, one of the most commonly used knowledge graphs can be found on Amazon, linking every product sold in order to improve searchability and recommendations on a huge scale.

5.       When to use knowledge graphs

Graph databases can be used in a wide variety of use cases, each scenario benefits from a different aspect of a knowledge graph.

Recommendation System:

We can revisit our previous example of a movie dataset stored in a knowledge graph. The data stored can be used to connect likes, dislikes and other data to provide a complex and effective recommendation system. Our example can be extended to show this.

Visualisation of how a graph-based movie recommendation system determines what to recommend to users.

Fraud Detection:

Knowledge graphs have been used to detect fraudulent transactions between groups of people and organisations. Knowledge graphs arekey to the success of this as anomalies can be traced through the graph to the intended recipient.

Semantic Search:

Knowledge graphs can enhance search engines by providing context and semantic knowledge. This contextual knowledge results in more accurate and personalised search results, which in return will lead to a better service for the customer.

6.       Conclusion

To conclude, knowledge graphs are a powerful tool that allows the user to uncover previously hidden insights in their data. Representing data in a graph form rather than a traditional table gives improved and additional use cases such as fraud detection, recommendation systems, semantic search and much more! However, in this introduction we have only covered the basics of knowledge graphs. We will have to return to delve deeper into their true potential.

History
Read Time
A portrait of Ada Lovelace

Celebrating Ada Lovelace: A Computing Pioneer

As today is International Women’s Day, we thought we’d give a shout out to the absolute pioneer in mathematics Augusta Ada King, Countess of Lovelace, better known by the name Ada Lovelace.

Born in 1815 to the iconic rake of Regency London - Lord Byron and reformer Anne Milbanke, Ada showed a keen in interest in logic and maths from a young age. Her mother was supportive of these passions and urged her to explore them, mainly due to a concern that she would end up ‘insane’ like her estranged Father who had left them behind when she was only a month old.

The Enchantress of Numbers

At the age of eighteen, thanks to her obvious talents and interests, Ada was brought into contact with Charles Babbage (also known as the Father of Computing). This meeting happened at one of his Saturday Night Soirees and would possibly have never occurred if not for Ada’s private tutor - scientist, polymath and writer Mary Somerville. A peculiar character herself, Ada felt that she needed someone equally as open-minded to teach her successfully and their working-relationship and friendship blossomed quickly. Later that month Babbage invited her to see the prototype for his difference engine (a mechanical computer), which she immediately became fascinated with. Inspired by her new teacher, Ada used her relationship with Somerville to her advantage and visited Babbage as often as she could. Incredibly impressed by her analytic skills and intellectual ability, he christened her ‘The Enchantress of Numbers,’ a nickname which has stood the test of time.

The First Computer Program

Lovelace would go on to document Babbage's difference engine, as well as envisioning how it may be used by writing algorithms in her notes. She is widely credited as having written the first published computer program, when her algorithm to calculate the Bernoulli numbers was printed in a scientific journal in 1843.

Ada’s exploits also helped her create relationships with scientists such as Andrew Crosse, Sir David Brewster, Charles Wheatstone, and the author Charles Dickens, contacts which she used to further her knowledge and gain more insight into her passions. Ada described her approach as ‘poetical science’ and was a self-described Analyst & Metaphysician.

More than a century after her death, her notes on Babbage's Analytical Engine were republished and the Engine itself has now been recognised as an early model for the computer. Her notes describing this and the software show us just how advanced Charles and Ada both were in their thinking. Ada had many ideas about the potential of these machines and anticipated modern computing one hundred years early... Now that’s impressive!!

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Your future awaits

Ready to start your AI journey?

No matter your technological know-how, we’re here to help. Send us a message or book a free consultation call today.