How to construct a knowledge graph from the text?

From the previous stories, we know what the knowledge graph is and we get the required information in order to extract information for knowledge graph creation. In this story, we will combine these two pieces of information and create our own knowledge graph!

Introduction

Even folks who do not interested in geography or history have heard about Balkans. Here is the Wikipedia page:


How to construct a knowledge graph?

In the previous story, we made a gentle introduction to the knowledge graphs and gained some intuition about them. This post will be consist of two parts: in the first part, we will do some NLP and extract information from unstructured data using spaCy, and in the second part we will construct our knowledge graph using this information.

Natural Language Processing With spaCy

Natural Language Processing (NLP) is a subfield of Artificial Intelligence and it tries to connect computers and human languages. spaCy is a free and open-source library for NLP in Python. It has a lot of in-built capabilities. …


What is the knowledge graph?

In my previous posts, we have talked about graphs, ontologies in short and in detail. In this post, we will see the knowledge graphs from a bird’s view and gain some intuition about them.

Ontology is described as the study of what exists in philosophy whereas described as a specification of the meanings in Artificial Intelligence. That is, an ontology specifies the conceptualizations, describes the types, properties, and interrelationships between entities in an information system. We have been using ontologies in Artificial Intelligence studies for more than forty years but in the past decades, the knowledge graphs have shed some…


How to develop an ontology?

In the previous posts, we made an overview of ontologies and talk about how to use and visualize them. In this post, we will see the details about how to design one.

There exist a great number of methodologies for developing an ontology in several environments like Protegé and Chimaera. Using these environments save us from the implementation in a language like UML and OWL. Once we have the model for our ontology, we can easily create it.

A simple methodology

There is no one correct methodology for developing ontologies. Here we will see an iterative approach: we start with a first pass…


What is an ontology?

In my previous post, we made a brief introduction to ontologies and mostly talked about one of the editors to examine an existing ontology to see the big picture. In this post, we will go into detail of ontologies and understand why we use and how we use them.

What is an ontology?

Ontologies are the set of concepts that include explicit formal specification of concepts and the relationships among them. The development of ontologies is mostly done by domain experts and the usage of ontologies becomes more common with the development of the World-Wide Web.

The World Wide Web Consortium (W3C), which is…


How to use an Ontology Editor?

In my previous posts, we have talked about graphs and databases to represent the knowledge within an application using the data and the relationships that hold between them. There are other methods that use formal specifications for knowledge representation such as vocabularies, taxonomies, thesauri, wordnets, and ontologies. In this post, we will handle the Ontologies.

What is an ontology?

In computer science, ontology is a set of concepts that includes a description of concepts and the relationships between them. Ontologies are created to limit complexity and to organize information.

What is an ontology editor?


Creating a simple graph database using Neo4j in less than 10 minutes.

Simply, a graph database is a database that pays equal attention to the data and the underlying relationships. It is a collection of relationships that uses graph structures for semantic queries to represent and store data. You can refer to my previous posts about graphs and graph databases for mote detail. In this post, we will walk through downloading and creating a simple graph database using the Neo4j.

What is Neo4j?

Neo4j is an open-source, non-relational (NoSQL), and native graph database that provides an Atomicity, Consistency, Isolation, and Durability (ACID) compliance backend for the applications [1]. It is available on GitHub or as…


What is a Graph Database? Where do we see it? When do we use it?

Photo by Alina Grubnyak on Unsplash

Today, there are tons of databases developed by companies according to their needs. Depending on the type, structure, data model, data store, and intended use case of the data, different systems are likely to be better suited to one’s needs. In general, databases are grouped into two, relational and non-relational databases. In this post, we will be talking about one of the non-relational databases, namely graph databases, their use cases, and when we should use them.

Relational Databases

In relational databases, data is organized into tables. Each table is composed of rows and columns where each row has a record and every…


In the Introduction to Graphs post, we have made a gentle introduction and we have seen some of the problems that can be modeled using graphs. In this post, we will be talking about social networks and perform some graph analytics on them.

Introduction

Any network with connections between individuals can be considered as social networks. Below is an example social network of male/female actors as nodes that are connected by edges if the two actors performed together in a movie. In this graph, the male/female actors, i.e. the nodes are Tom Hiddleston, Chris Hemsworth, Robert Downey Jr, Brie Larson, Jude…


What is a graph? What are the components of graphs? Where do we see them in real life?

Graphs in Everyday Life

Our world is composed of countless objects and connections which we can call as physical networks like roads, phone lines, electrical wires, veins and arteries of our bodies... Besides these physical networks, we also have virtual networks like social media, Web, or the internet itself! To make it more clear here is several examples of networks from everyday life:

  • The Web is a very large network whose components connect with hyperlinks
  • The molecules are in the form of a network with atoms and the bonds between these atoms
  • Epidemics and evolutionary trees can be modeled using networks
  • Social media forms…

Selen Parlar

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