The aim of this work was to check the possibilities of usage the beacons to find out the relations between the members of cattle herd. Relations between animals are important because of animals welfare and can influence on animal health and productivity. In the early stage of the research, relations between animals were determined on the base of the distance between animals and described as like/not like" (they like each other or not). It's difficult to precisely determine when animals like each other. Not only distance is the criterium but also time and direct behavior. The experiment was carried out in the cowshed with 70 dairy cows. BLE Beacons (Bluetooth Low Energy Beacons) were attached to the cows and they regularly transmitted data about the cows' localisation in the cowshed to the smartphones which were distributed in the cowshed. From smartphones with Android system data were sent to the relational database. Because of the large amount of data, in the database data were processed, i.e. aggregated. Some of the data were transformed to the geometric form and then, thanks to the specially developed application, these geometric data were mapped to relations and written in the graph database. Graph databases are very useful tool to analyse and show relations between animals. The Neo4j technology was used to prepare the graph database. Other ICT technologies used in this work were: SQL Server 2014, Visual Studio 2015 and Entity Framework 6. Relational databases are still very usefull to analyse data and the graph databases are especially useful to visualize the spatial relations between objects. New technologies allows to widen our perceptions and create new possibilities of getting knowledge. There are a lot of tools to connect these technoogies, but it requires multidisciplinary approach.