Unpicking a tangle of terminology to conclude it’s semantic, smart and alive.\n-----------------------------------------------------------------------------\n\n!(https://hackernoon.com/hn-images/1*yei8pgRVyWA8XUI2-hD0rw.jpeg)\n\n“[Uncertain Journeys](http://www.blainsouthern.com/exhibitions/2016/uncertain-journey)”. [Photo by designmilk on Flickr](https://www.flickr.com/photos/designmilk/29887952246). [CC BY-SA 2.0](https://creativecommons.org/licenses/by-sa/2.0/)\n\nI’ve worked in the [technology](https://hackernoon.com/tagged/technology) industry for 20 years and much has changed in that time. But one thing that hasn’t is the firehose of unfamiliar terminology used, abused, and generally misused, usually in a range of different contexts. These days, it’s easier than ever to [look up the definition](https://sidewaysdictionary.com/) of new jargon, but, every so often I hit a phrase that leaves me in a loop of [Google](https://hackernoon.com/tagged/google) searches and open browser tabs. Some phrases seem to defy clear description: I’ve already covered “ontology” in a [previous article](https://blog.grakn.ai/what-is-an-ontology-c5baac4a2f6c#.9l6kxiu1x).\n\nHere, I aim to simplify another such example. You too may have heard the phrase “knowledge graph” and turned to Google to find out what it means. Did you ever work it out? If not, read on. All will be explained…\n\n### Google’s Knowledge Graph\n\nA superficial search will deliver information about a single product: the [Google Knowledge Graph](https://en.wikipedia.org/wiki/Knowledge_Graph), which enhances the results of a Google search. It’s the box on the right hand side of the results page (the top of a search on mobile devices).\n\n!(https://hackernoon.com/hn-images/1*WKEUWnkGs6oT_2u9_KG7ag.png)\n\nThe output of Google’s Knowledge Graph following a search for Bertrand Russell\n\nIn their 2012 [introduction to the Knowledge Graph](https://googleblog.blogspot.co.uk/2012/05/introducing-knowledge-graph-things-not.html), Google announced\n\n> “… we’ve been working on an intelligent model — in geek-speak, a ‘graph’ — that understands real-world entities and their relationships to one another: things, not strings.”\n\nThere is no official information about exactly how Google’s Knowledge Graph works, but it draws upon public sources such as Wikipedia, and also amasses data on what people search for on the web. By the end of 2016 it [apparently](http://www.theverge.com/2016/10/4/13122406/google-phone-event-stats) contained 70 billion connected facts.\n\n### No single definition of a knowledge graph\n\nBack then to the search for the generic definition of a knowledge graph, rather than for information about a Google product of the same name. Wikipedia doesn’t have a page on that subject, but instead links to:\n\n* its [ontology page](https://en.wikipedia.org/wiki/Ontology_%28information_science%29), which is painfully complex\n* A page about [semantic networks](https://en.wikipedia.org/wiki/Semantic_network)…let’s not even go there.\n\nSo, a knowledge graph is something about linked data and semantic technology…some kind of graph-based knowledge representation? But it isn’t clear what it is or what I can do with it.\n\nFortunately, others have recently noticed the shortage of a clear definition too. A [recent paper](http://ceur-ws.org/Vol-1695/paper4.pdf) noted that there are several descriptions, and helpfully tabulated them:\n\n!(https://hackernoon.com/hn-images/1*_twvkFkRMOdiUQZMKcE8RQ.png)\n\nFrom “[Towards a Definition of Knowledge Graphs](http://ceur-ws.org/Vol-1695/paper4.pdf)”.\n\nOK. Quite a range — from reasonably clear to completely opaque. In the same article, after outlining the various definitions above, the authors then go on to propose the following definition of a knowledge graph, highlighting reasoning as a key characteristic:\n\n**_A knowledge graph acquires and integrates information into an ontology and applies a reasoner to derive new knowledge._**\n\n### Indigestion?\n\nIs it possible to make that definition clearer? Let’s look at the common factors seen in the table of different definitions above, to see if that leads to a deeper understanding of a “knowledge graph”.\n\n#### It’s a graph\n\nThis is the main difference between the terms knowledge **graph** and knowledge **base**. The terms are used interchangeably, but they are not necessarily synonymous. While every knowledge graph is a knowledge base, or uses a knowledge base, the key is in the word “graph”.\n\nA knowledge graph is organised as a [graph](https://en.wikipedia.org/wiki/Graph_%28abstract_data_type%29), which is not always true of knowledge bases. The primary benefits of a graph are that connections (relationships) in the data are [first-class citizens](https://en.wikipedia.org/wiki/First-class_citizen), you can easily connect new data items as they are injected into the data pool, and, finally, you can easily traverse links to discover how remote parts of a domain relate to each other (there’s a huge value in linking information). A graph is one of the most flexible formal data structures, so you can easily map other data formats to graphs using generic tools and pipelines.\n\n#### It’s semantic\n\nTerminology alert! By “semantic”, I mean that the _meaning of the data_ is encoded alongside the data in the graph, in the form of the ontology. A knowledge graph is self-descriptive, or, simply put, it provides a single place to find the data _and_ understand what it’s all about.\n\nThere is an additional benefit in that you can submit queries in a style that is much closer to a natural language, using a familiar domain vocabulary. That is, the meaning of the data is typically expressed in terms of entity and relation names that are familiar to those interested in the given domain. This enables smarter search, more efficient discovery, and narrows the communication gap between data providers and consumers.\n\n#### It’s smart\n\nThe underlying basis of a knowledge graph is the ontology, which specifies the semantics of the data. An ontology is typically based on logical formalisms which support some form of inference: allowing implicit information to be derived from explicitly asserted data. Some of the information inferred can be otherwise hard to discover.\n\nKnowledge graphs being actual graphs, in the proper mathematical sense, allow for the application of various graph-computing techniques and algorithms (for example, shortest path computations, or network analysis), which add additional intelligence over the stored data.\n\nThey are easy to extend over time as the schema is not strict or prohibitive in the same way as it is for SQL, which takes us to the final point…\n\n#### It’s alive\n\nAs I’ve already described, knowledge graphs have a flexible structure: the ontology can be extended and revised as new data arrives. This makes it convenient to store and manage data in a knowledge graph if you have use cases where regular updates and data growth are important, particularly when data is arriving from diverse, heterogenous sources. A knowledge graph can support a continuously running data pipeline that keeps adding new knowledge to the graph, refining it as new information arrives.\n\nKnowledge graphs are also able to capture diverse meta-data annotations such as provenance or versioning information, which make them ideal for working with a dynamic dataset. There is an increasing need to account for the provenance of data and include it so that the knowledge can be assessed by its consumers in terms of credibility and trustworthiness. A knowledge graph can answer what it knows, and also how and why it knows it.\n\n### Why would I use a knowledge graph?\n\nSome of the potential applications include: semantic search, automated fraud detection, intelligent chatbots, advanced drug discovery, dynamic risk analysis, content-based recommendation engines and knowledge management systems. If, like me, your preferred way of learning is to dive in and get your hands dirty trying things out, there is a list of [potential projects](https://grakn.ai/pages/documentation/examples/projects.html) to use the knowledge graph platform of [GRAKN.AI](https://grakn.ai).\n\nGRAKN.AI is a database in the form of a knowledge graph that uses machine reasoning to simplify data processing challenges for AI applications. It stores data flexibly and in a way that allows machines to understand the meaning of information in the complete context of their relationships. Check out [GRAKN.AI](https://grakn.ai) for more information.\n\n### Summary\n\nOK, so I have hacked a path through the terminology. I think the key points to take away about a knowledge graph are these:\n\n**Duh — it’s a graph**. Relationships are first-class citizens and the links between data add huge value, as well as flexibility.\n\n**It’s semantic** or self-descriptive and has a natural language-like representation, making it easy to query and explore.\n\n**It’s smart**. Inference can uncover hidden knowledge that is too complex for human cognition, and being a graph means you can apply various graph-computing techniques and algorithms.\n\n**It’s alive**. You can use a knowledge graph to store information in a form that is easy to reuse.\n\nLet me know how you think I did in clearing up the confusion…and what I should take on next!\n\nMany thanks to my colleagues at [GRAKN.AI](http://ceur-ws.org/Vol-1695/paper4.pdf) for help in writing this article, particularly [Szymon Klarman](https://medium.com/@sklarman) for helping me find a path through the concepts and difficult words.