What Are Knowledge Graphs? Understanding How Google and AI Organize Information

Realistic knowledge graph visualization showing interconnected information, entities, and relationships used by Google and artificial intelligence.

Today, there is vast amounts of information available on the internet. Information can range from personal and corporate information to research and news. Not only must information be collected, but the links between information must also be understood. Knowledge Graphs are used for this purpose. Essentially, they are a visualised form of information which illustrates the links between real world ‘things’. Knowledge graphs collate information relating to people, organisations, places and/or ideas and demonstrate how these interlink. Computers can therefore analyse information and recognise the links and context. Knowledge graphs are now commonly implemented in search engines, enterprise and recommendation services and also in Artificial Intelligence.

What is a Knowledge Graph is a type of information system which illustrates links between ‘things’. It can be utilised to show the links between, for example, actual things, people, events and/or ideas. Compared to conventional databases which mainly utilise tables and rows to collate information, a knowledge graph places greater emphasis on the links between information. Within a knowledge graph, a university for example, can show links between its staff, students, departments, courses and even location, along with its research endeavours. Links can then be formed such as works for, teaches, is part of and is located in. Computers can subsequently analyse this information to both analyse and recognise context.

Knowledge graphs are especially beneficial as in reality, information tends not to exist in isolation. Individuals can be associated with companies, cities and universities and will also typically engage in career related activities. These links therefore offer further context which enables computers to gain a greater understanding as to who a person is and how pertinent they are to a given search. Likewise, companies will produce goods, and frequently trade in various countries. They will frequently also employ large numbers of staff and form links with other companies. Again, these associations can be illustrated using a knowledge graph. By visually demonstrating links between information, it is often simpler for computer applications to recognise trends and analyse and collate information from a number of separate databases.

Knowledge graph showing interconnected people, organizations, locations, and information

How Knowledge Graphs Work

Information is analysed and collated within a knowledge graph. This comprises ‘nodes’, which represent ‘things’ and links – known as ‘edges’ – which illustrate how these ‘things’ are associated. Further information can also be added to ‘things’ in the form of attributes and labels so that they can be recognised and described. Together, these elements can be analysed by computers. As information is analysed and then collated within a knowledge graph, relevant ‘things’ are recognised and labelled accordingly. 

Links can then also be formed between these ‘things’. As more information is analysed, further links can be made and the knowledge graph can therefore be continually developed and improved. Understanding these key elements therefore provides insight into how knowledge graphs collate and analyse information to enable smart computer applications to function.

Knowledge graph diagram illustrating entities, nodes, edges, attributes, and relationships

1. Things

Within a knowledge graph, ‘things’ represent the real world objects, people, places and/or ideas that are being analysed. As previously mentioned, these are fundamental to knowledge graphs as all links originate from ‘things’. Examples of ‘things’ include a person (such as Albert Einstein), an organisation (for example, Google), a place (such as Lagos) and/or an idea (for example, artificial intelligence). 

Each ‘thing’ can then be associated with other ‘things’ via suitable links. Depending on the amount and nature of information that is analysed, a knowledge graph can comprise millions of ‘things’. To further avoid confusion, ‘things’ can also be allocated unique identifiers so that different people and/or organisations can be correctly recognised, even if they share similar names.

2. Attributes

Attributes are additional details which can be attributed to ‘things’. This further assists computers in recognising what a ‘thing’ represents. An individual for example, may possess attributes such as name, date of birth, profession, nationality and education. Likewise, a company may have an associated name, area of business, head office, year of foundation and website. Again, adding attributes to ‘things’ ensures that they are further defined and enables distinctions to be drawn between similar ‘things’. 

Without attributes, although links could be formed between ‘things’, there may not be enough information to sufficiently recognise what these ‘things’ represent. Attributes furthermore enable computer applications to analyse information and select that which best fulfils specified criteria. For example, an enterprise search system can collate staff by department, role and/or qualification.

3. Links

Links are formed to demonstrate how two or more ‘things’ are associated. They are shown as edges which join together nodes and consequently convey this association. For instance, a person can be linked to a company via a ‘works for’ link, and a city can be associated with a country using a ‘located in’ link. By analysing links, further context can be recognised and information can thus be given added significance. 

Within a university, links can be formed between teaching staff and departments, students and courses and researchers and publications. Computer applications can thus analyse information by analysing the links between ‘things’ rather than by individually assessing each ‘thing’. Links can also possess their own attributes, for example a date and/or description, which further explain when and how they should be analysed.

4. Semantics

Semantics are concerned with the significance of links between ‘things’. They enable computers to recognise that ‘things’ are not merely co-located, but rather are associated in a defined manner. Consider, for example, the terms teacher, school and student. Even though these can all be found within the same document, a semantic knowledge graph can recognise that teachers work at schools and instruct students. Recognising semantics is highly important as it allows computers to more effectively analyse search queries. 

Semantics can also enable computer applications to recognise alternative terms for similar ‘things’. For example, a search for a car manufacturer can be associated with information about the cars that it produces. Overall, by classifying information based upon semantics and context, knowledge graphs allow artificial intelligence applications to go beyond simple keyword recognition.

Knowledge Graphs versus Databases

Conventional databases collate information in table form. Different tables are used for distinct types of information and typically links between tables are formed by reference to primary and foreign keys. This method of information collation is highly effective and is frequently utilised within, for example, banking, stock, customer and financial databases. Nonetheless, if applications need to analyse intricate links between information in a number of tables, it can sometimes prove challenging to formulate suitable search queries. Knowledge graphs overcome this issue as they incorporate links within the knowledge graph itself. Moreover, rather than predominantly analysing table links, computer applications can utilise the links within a knowledge graph to analyse associated information. Consequently, knowledge graphs are highly effective for analysing information where associations are of key importance.

Furthermore, knowledge graphs are generally more adaptable than conventional databases. Whereas traditional databases often conform to fixed schemata which define how information should be collated, knowledge graphs can adapt to new links and ‘things’. This is highly advantageous in situations where information is regularly updated and/or expanded. Businesses may for instance wish to associate customers with products, suppliers, personnel and transactions as well as other companies. Such links can be displayed within a knowledge graph. However, knowledge graphs do not wholly supplant conventional databases. Both continue to play highly important roles and often businesses utilise a combination of the two to effectively collate structured information and to also analyse intricate links via knowledge graphs.

How Google Uses Knowledge Graphs

In 2012, Google implemented a Knowledge Graph to enhance the way that its search engine analyses information about ‘things’. Previously, search engines largely analysed search queries by matching relevant words to web pages. Although this process remains important, it is often more beneficial for computers to comprehend the semantics of search queries. 

Google’s knowledge graph enables its search engines to recognise ‘things’ and then associate them with factual information from various sources. If a popular music artist is searched for, for example, Google can recognise who this refers to and display supplementary information such as their profession, discography and associated companies and people. Thus, users can readily obtain key information without needing to visit a number of different websites.

  1. Analysing People, Companies and Places

Google’s knowledge graph can associate ‘things’ so that further context can be analysed. If an individual is searched for, the system may analyse their profession, accomplishments, family members and career related information. Likewise, by searching for a company, its sector, head office, founders and products, as well as associated companies, can be analysed. 

Places can similarly be analysed so that links can be made between cities, countries, sights and geography, as well as nearby attractions. Such associations assist Google in distinguishing between ‘things’, even if these share similar names. Additional context is therefore utilised to facilitate more relevant search results.

  1. Knowledge Panels

Perhaps most visibly, Google utilises knowledge graphs to generate Knowledge Panels which can be displayed alongside search results for well known ‘things’. These can provide information including descriptions, images and websites, along with location and further details. Essentially, Knowledge Panels aim to concisely summarise information about ‘things’ by collating data from different sources. 

This highlights how structured information can enhance the search experience. Not all search queries will generate Knowledge Panels and the information displayed can differ depending on the ‘thing’ and the availability of sources. Google also states that it sources information for its knowledge graph from public, licensed and directly supplied information.

Search engine Knowledge Panel displaying organized information about a public figure
  1. Analysing Search Queries and Context

Knowledge graphs also allow computers to analyse the semantics of search queries. Many words can have differing meanings, and an appropriate interpretation will usually depend on context. For instance, ‘Apple’ may refer either to the fruit or the technology company. If a search engine solely analysed search queries for matching words, it can face difficulty in deciding which of these is most relevant. However, computers which can recognise ‘things’ and analyse links can analyse surrounding information to deduce the most appropriate interpretation. 

If a search query includes terms such as iPhone, MacBook and technology related items, for example, then the computer can recognise that the most relevant ‘thing’ is likely to be the technology company. Conversely, if a query incorporates terms such as fruit, nutrition and farming, the computer can recognise that the relevant ‘thing’ is likely to be the fruit. Analysing both queries and context therefore facilitates more appropriate information retrieval.

Role of Graph Databases

Graph databases are used to both collate and analyse information and are specifically designed to facilitate the creation, collation and analysis of knowledge graphs. Rather than collating information in tabular format, graph databases represent ‘things’ as nodes and links between ‘things’ as edges. Both nodes and links can then be labelled to further describe ‘things’ and links. 

Computer applications can then analyse information by analysing the links between ‘things’. For instance, an enterprise may use a graph database to associate customers with their buying behaviour, products, suppliers and customer support. When an application is requested to analyse specific customer information, it can then analyse relevant links to provide a more comprehensive view of an individual’s behaviour and interactions.

Popular Graph Database Technology

There are various technologies which can be used to collate information using a graph format. One commonly used graph database is Neo4j. This uses a property graph model and also allows the Cypher query language to be employed to analyse links. Amazon Neptune is also a graph database, but is a managed database service and is intended for use by computer applications which must analyse highly interlinked information. 

Other technologies, such as ArangoDB, can be used to collate information in a variety of formats, including both graph and document formats. Again, these technologies enable businesses to develop computer applications which can effectively analyse complex information, without necessarily exclusively depending on conventional database query analysis. Factors including the quantity of information, desired performance levels, infrastructure, security and the intricacy of information links will often affect the type of graph database technology that is implemented.

Knowledge Graphs for Artificial Intelligence

Computer applications which utilise artificial intelligence analyse information to recognise patterns, analyse language and formulate responses. However, it can be difficult for these applications to analyse links between information if it has not been collated in a structured format. Knowledge graphs assist in this respect as they collate information in a structured format and illustrate links between and the semantics of ‘things’. 

When computer applications include knowledge graphs, extra context can therefore be analysed so that queries can be more effectively interpreted and relevant information can be collated. Knowledge graphs can also supplement machine learning by highlighting links between ‘things’ which may not initially be readily apparent. As previously discussed, the way in which knowledge graphs collate information, including links, is of significant benefit for computer applications which utilise natural language processing, searching, reasoning and knowledge discovery.

  1. Enhancing Artificial Intelligence Analysis and Reasoning

Knowledge graphs can be used to enable artificial intelligence applications to analyse links between ‘things’. For example, an artificial intelligence application providing health related information may wish to analyse links between diseases, symptoms, therapies and medication, as well as health related research. A knowledge graph can therefore be used to collate and illustrate the links between these ‘things’ so that relevant information can be more easily analysed. Similarly, an artificial intelligence educational application could associate areas of study with relevant ideas, definitions and learning materials. 

Additional context can therefore again be analysed to enable more informative responses to be formulated. However, it is important to recognise that knowledge graphs alone will not necessarily result in artificially intelligent computer applications. The quality of information, the reliability of links and the efficiency with which computer applications can analyse and interpret information will all influence the extent to which knowledge graphs are of benefit.

AI professional analysing interconnected information through a knowledge graph visualization
  1. Using Knowledge Graphs for Retrieval Augmented Generation

Knowledge graphs can also be used to facilitate Retrieval Augmented Generation, whereby computer applications firstly retrieve information and then formulate responses. Typically, existing retrieval augmented generation computer applications will utilise semantic or keyword analysis to locate relevant information from documents. However, to analyse information, it can sometimes be necessary to also recognise links between a number of ‘things’. Graph based information retrieval can therefore be utilised to identify relevant ‘things’ and then analyse their links to further obtain contextual information. 

For example, an employee wishing to seek information on a business related project may need to access information relating to the project manager, relevant department and deadlines. Alongside this, information regarding associated documentation may also be of interest. A knowledge graph can therefore be used to associate this information and to subsequently enable a computer application to analyse relevant information from a variety of sources. Although the retrieved information must still be appropriately verified, this can therefore contribute to more comprehensive and contextually relevant computer generated information.

Enterprise Search and Information Management

Many enterprises maintain various information systems such as employee, customer, financial, document and project information. Occasionally, it can prove difficult to locate relevant information as these systems often function independently. Enterprise knowledge graphs assist in this regard as they can collate information from a range of sources. Within a business, for example, employees can be associated with departments, projects and responsibilities, as well as skills and documentation. When an individual searches for particular projects or information, relevant people and documentation as well as related activities can then be analysed. Therefore, enterprise search is further enhanced as computer applications can analyse information based on links rather than solely by reference to specific keywords or documentation titles.

Knowledge graphs can further improve information management as they can identify duplicate information and analyse links. Within a financial enterprise, for example, a knowledge graph can associate customers, accounts, transactions, businesses and service providers. Such links can then be analysed by professionals to recognise trends and to determine which information requires further attention. Manufacturing enterprises can similarly associate machinery, suppliers, production locations, maintenance and product components so that they can analyse how different business functions are interdependent. Again, such knowledge graph functionality can therefore contribute to improved information analysis and business planning. Appropriate access and data governance procedures must however be established to ensure that confidential information is only accessible to authorised personnel.

Knowledge Graphs and Recommendation Systems

Recommendation computer applications utilise information relating to people, products, preferences and behaviour in order to suggest relevant information and/or services. Conventionally, these computer applications often base recommendations on behaviour, product similarity and/or past behaviour. Knowledge graphs add further value as they can associate people and/or products with their attributes and links. For example, on an entertainment platform, films can be associated with actors, directors, genres, production companies and release dates. If an individual views a particular film, a computer application can then analyse associated ‘things’ to identify other films which either involve the same actors or fall into comparable genres. Recommendations can thus be formulated based on meaningful associations, not just on the similarity of past viewing behaviour.

Knowledge graphs can also enhance computer applications which recommend information on online shopping platforms. Customers, product types, brands, manufacturers and complementary products can all be associated. Then, when an individual searches for particular products, computer applications can analyse further information and recommend additional items of interest or relevance. For example, a person researching laptops can recommend relevant accessories, software and/or other products. Improved relevance for recommendations can be achieved if computer applications can also recognise product links. Nonetheless, computer applications must also consider issues concerning customer privacy and data protection. Furthermore, there is also a risk that computer applications may entrench individuals’ limited preferences if they continually recommend similar products or information.

Business analyst using interconnected data to support enterprise search and recommendation systems.

Knowledge Graphs and Information Retrieval

Information retrieval is concerned with identifying appropriate information from a wide range of documents, databases, websites and other digital information sources. Typically, search engines analyse information by referencing keywords and using indexing and ranking processes to locate relevant documents. Whilst these mechanisms are often effective, they may not fully recognise the semantics of more complex queries. Knowledge graphs enhance information retrieval as they can associate search queries with relevant ‘things’ and information. Computer applications can then analyse associated ‘things’ and recognise pertinent links. Information can then be retrieved from multiple sources. For instance, when a researcher seeks information relating to renewable energy, a knowledge graph can be used to recognise links between solar technology, power generation, environmental policy, research bodies and energy storage.

Moreover, knowledge graphs can be utilised to perform more sophisticated information retrieval. Someone may wish to identify companies which both trade in a specific country and also collaborate with a particular research body. If this was done traditionally, a number of searches may be required and then results manually compared. However, a knowledge graph can visually show how companies, locations and collaborations are interconnected. Again, such functionality is particularly valuable within scientific, financial, business intelligence and digital library fields. By analysing the semantics of search queries, knowledge graphs enable information retrieval applications to transcend basic keyword analysis and so return information which is informed by the links between different topics.

Knowledge Graphs

Knowledge graphs offer several benefits. Not only do they allow people and technology to easily recognise the links between data items which may prove challenging to discern using conventional data storage, but they can also facilitate the interlinking of data from various sources. 

Key benefits of knowledge graphs include:

1. Context

Knowledge graphs illustrate the links between data items and explain why these links are important. This allows search engines and AI to analyse information more effectively. 

Rather than analysing data relating to an individual, business or place in isolation, the knowledge graph can analyse further associated information to enable enhanced understanding. This is particularly advantageous when searching for information using vague search criteria and/or accessing data from multiple sources.

2. Information analysis

Interlinking data enables organisations to recognise previously concealed information, trends and links. Academics can analyse links between journals, authors, organisations and areas of research. 

Likewise, businesses can analyse interlinks between customers, suppliers, goods and sales. Information can therefore be analysed in a more effective manner.

3. Data interlinking

Often organisations analyse data from a number of sources which may have differing data types and structures. Knowledge graphs can thus assist in the interlinking of data by recognising shared data items and interconnecting them. 

Consequently, organisations can achieve a more cohesive source of information and minimise the difficulties that may arise from analysing non-integrated data. Furthermore, new data items and links can be added in response to evolving business needs.

4. Enhanced searching

Searches can utilize knowledge graphs to analyse both links and context. This assists in differentiating between near-synonyms and facilitates searches which are more aligned with a user’s true search intention. 

Users can consequently obtain relevant information, even if there is no precise match for their search keywords.

5. Facilitating AI and other smart technology

Knowledge graphs supply well-structured data which can be utilised by AI, recommendation and search technology and automated analytical tools. Such technology can then analyse and recognise interlinks and analyse intricate data. 

Alongside other technology, knowledge graphs can enhance the contextuality and informativeness of digital offerings.

Challenges and Limitations of Knowledge Graphs

Whilst knowledge graphs can offer many benefits, there are also limitations and issues for businesses to be aware of. Firstly, data quality can pose a key issue. As mentioned above, the quality of a knowledge graph will be dictated by the reliability of the underlying data. Inaccurate, duplicated, out-of-date and/or erroneously interlinked data can all lead to unreliable outputs. Organisations need to implement mechanisms to assess, rectify and refresh data. Constructing knowledge graphs may also be resource and time intensive. Particularly where data is drawn from a range of sources with differing data structures, specific tools and skills may also be required alongside thorough planning to recognise data items and establish accurate interlinks.

Secondly, expanding knowledge graphs can involve issues concerning scalability together with privacy and security. As graphs expand, there may be increased pressure on computer hardware and software to store, analyse and search for data, particularly where there are intricate interlinks which need to be managed effectively – again requiring suitable data modelling and governance. Ensuring privacy is also of great importance, particularly where customer, staff and/or other personal data is included. Organisations need to implement suitable data access protocols and ensure that confidential data is appropriately safeguarded. They should also comply with data protection legislation. Finally, even though knowledge graphs can automate data analysis, human intervention is still required. Automated technology can sometimes create inappropriate interlinks and/or analyse links in an unsuitable manner. Therefore, it will often be essential to manually analyse crucial data prior to applying it for business and/or other high-impact purposes.

The Future of Knowledge Graphs in AI and Search Technology

As search engines and AI technology continues to advance, knowledge graphs are anticipated to continue to play an important role. Contemporary digital technology frequently needs to not only comprehend complex queries, but also source and analyse data from a variety of sources to provide contextually appropriate responses. Knowledge graphs can aid in this process by interlinking data items, links and characteristics. Moreover, the interlinking of knowledge graphs with technologies such as large language models and machine learning as well as retrieval augmented generation, opens up further possibilities for contextually aware digital offerings. For instance, an AI can utilize a knowledge graph to firstly analyse interlinks between individuals, projects, information and organisations and then respond to someone’s query. Together, these technologies can thus assist in sourcing pertinent data and decrease reliance on non-integrated data and discrete data items.

Moreover, there is an increasing trend for sector-specific knowledge graphs to be developed. Rather than devising one extensive knowledge graph covering all areas of interest, businesses can now develop graphs pertinent to specific sectors including healthcare, education, finance, manufacturing and telecommunications. Detailed data regarding relevant data items and interlinks can thus be formulated. In addition, businesses can merge knowledge graphs with live data technology so that they can track evolving data and refresh interrelated data accordingly. Overall, as AI and search technology develops, knowledge graphs will continue to play an important part in smart search, enterprise information management and AI-led analysis. However, their efficacy will rely upon high-quality data, efficient governance and the capacity to consistently manage interlinks in response to evolving data.

Leave a Reply

Your email address will not be published. Required fields are marked *