A Graphful of Investment Opportunities

Adding algorithmic calculations to investor’s smart and hunches might sound like the next fin-tech cyberpunk novel, yet this is what Ontotext did. With a set of rules, algorithms and a graph full of investment-related information about companies, Ontotext created an ingenious approach to sifting through millions of companies to help investors narrow down investment opportunities and add computer power to the task of finding companies that are worth considering according to pre-set criteria.

January 10, 2020 7 mins. read Teodora Petkova


In the era of bots serving as investment vehicles and plenty of platforms offering tools for automated investing, could it be that the strength of investment strategies soon becomes a matter of computing power and algorithms well-built?

With more than 8 million companies and 1.5 million financial transactions in mind, sorry – in a graph, it might well be.

Discover more about Ontotext’s Investment Market Intelligence Business Solution!


Approaching investment opportunities with 8 mln companies in mind (or in a graph)

The mid 19th century, writes Steven Marks in his book The Information Nexus, saw the coming of new information technologies on Wall Street that saved time and lowered transaction costs. The messenger who back then gathered prices by running back and forth between brokerage houses and the stock exchange lost out to the stock ticker – a device that printed  the fluctuating prices as they streamed continuously over the telegraph lines. [cit. p. 167, The Information Nexus]

Today the advancement of the information nexus continues. New technologies and new means of processing and analyzing data accelerate the circulation of information about capital markets and business opportunities and reconfigure the way markets work. And we might speculate that these techniques will take over the investor’s task of analyzing and spotting opportunities.

But we will be wrong. They will only shave off X-hours of time for processing information.

It is true that having automated investments is a lucrative option. However the complexity of the problem is too high to allow complete automation. As with the entire man-machine-symbiosis discourse, the matter of outsourcing typically human activities (in this case considering investment options and finding the best among them) to computer programs seems to be best approached with reframing the question of automation: The key question shouldn’t be “Whether and how to automate it all?”, but rather “What part of it can be automated and what techniques will serve best the automation?” 


In the case of an algorithm for finding investment opportunities, the answer is straightforward: The part that will be automated is the part of narrowing down interesting investment opportunities from millions of companies worldwide. And the techniques to be used are data mining techniques to identify patterns of investment opportunities within a custom dataset containing around 8 million companies and investors and 1.5 million investment events.

Long story short, it takes a well-built knowledge graph and a set of algorithms to mine it.

In more detail, reducing the work of sifting through millions of companies and returning a list of interesting investment alternatives for an investor to consider is an active interplay of linking data, algorithmic operations and human expert’s analysis.

Below is the story of how Ontotext put into practice the idea to help investors successfully find investment options without having to sift through millions of options. You can see the full scientific article “Company Investment Recommendation Based on Data Mining Techniques” published in Springer (or in Google books) to learn how inductive logic programming, clustering and other techniques were applied and evaluated.

In order to compute good investment opportunities and make it easier for investors to spot hits, Ontotext set to the task of identifying potential investment alternatives. The identification process was based on the historical data of investment events contained in a knowledge graph with over 8 million companies and 1.5 million financial transactions they built.

This knowledge graph was built by fusing a total of 5 datasets, containing features like the name of the company, rank, country, region, industry, etc. To build and continuously update such a big graph, without degradation of data quality, Ontotext used its GraphDB semantic graph database engine and an efficient semantic data integration pipeline, which allows regeneration, reconciliation, validation, refinement and indexing over night. One of the pillars of the calculations was the relationship between an investor and a company – the so-called investment event.

This very connection between company and investor through an investment event was what served as the basis for training machine learning algorithms that could further find and recommend data answering the specific criteria it had been given. In essence, the algorithms examined different portfolios of investments and look for certain patterns within them to conclude what makes a certain company a good fit for a given investment portfolio.

INFOBOX: It takes 6 steps to mine an investment opportunity.

As regards to the methods, there were several crucial details in finding the most promising combination of algorithms that would serve investors in the pre-selection step of finding investment opportunities: the idea of non-personalization and the idea of indirectly associated companies.

When personalization is not an edge

With a wealth of information oxygenating market activities, the number of approaches is rising and the majority of the proposed solutions are personalized. This particular data mining approach however took the road less travelled – the non-personalized approach.

Knowing how important it is not to leave any trace of choices for investing, as this would be downright brainpicking, Ontotext aimed to develop a method that was non-personalized, data-driven and unsupervised. Another reason for the lack of personalization was the fact that a personalized method would have made the calculations too complex. Here, the aim was to just model the behaviour of what any investor (or analyst) would do: search for companies by given criteria, trying to find his or her way towards the best investment opportunities.

When the association is indirect

One of the distinctive features in this automation of investment opportunities searches is the idea of investigating direct and indirect associations of company investments.

Direct association, also called frequent patterns, represents different sets of companies that appear together in the investment portfolios of multiple companies. Indirectly associated companies are again connected, but in the way Nike and Reebok are. Unlike typical association rules, indirect association patterns are characterized by the two items participating in a relationship, along with all other items mediating the interaction (This is explained in detail in Indirect Association: Mining Higher Order Dependencies in Data). For example, Nike and Reebok are indirectly associated as customers seldom buy them together. They tend to be bought separately and hence they are competitors. In a similar way, when searching for investment alternatives, this rule was applied so to empower an algorithmic narrowing down of investment choices.

The results from the algorithm JRip classification rules accuracy for 8 clusters

Having evaluated results for 10 –fold cross-validation with training set size with the above-described methods, 66% show:

    • high precision – 0.959
    • recall – 0.958
    • F1-measure – 0.958

For example, one of the companies for which alternatives were sought, the calculated top 5 investment alternatives were startup companies with the same location, comparable rank, similar number of employees and investors and funding, but from different industries – software, electronics, finance, technologies, merchandise.

This alone supports the main objective of the designed investment recommendation system as it is able to diversify the investment portfolio.

Epilogue: Limitless!?

In her book Artificial Unintelligence, author Meredith Broussard suggests that if we understand the limits of what we can do with technology, we can make smarter choices about what we should do with it to make the world better for everyone.

Full automation of investing activities is still far from being possible, one of the many reasons being that algorithms are limited to the quantity and the quality of data they are fed and trained with. However, we, humans, could hardly compete with processing around 8 million companies unarmed. And this is where machines might be of good use for finding investment alternatives. They can help us overcome our natural limitations by leaving the legwork of searching through millions of companies to computers and the art of spotting investment opportunity to investors – where it has always belonged.

Learn how to boost your competitive investment insight!

New call-to-action

Article's content

Marketing Expert at Ontotext

Teodora is a philologist fascinated by the metamorphoses of text on the Web. Curious about our networked lives, she explores how the Semantic Web vision unfolds, transforming the possibilities of the written word. From 2022 on, Teodora helps with the creation and curation of the Ontotext knowledge graph to foster information ecology out of marketing content that will enable relevant user experiences across Ontotext's universe.

GraphDB in Action: Smells Like Semantics Spirit

Read about a project called Odeuropa and a number of exciting applications delivered by it with our RDF graph database humming behind them

KGF 2023: Bikes To The Moon, Datastrophies, Abstract Art And A Knowledge Graph Forum To Embrace Them All

Read about this year’s Knowledge Graph Forum – a space where Ontotext and partners presented smart and linked ways to tame and thrive on complexity, rather than be drowned by it

Do Large Language Models Dream of Knowledge Graphs – Impressions from Day 2 At SEMANTiCS 2023

Read our report from Day 2 of SEMANTiCS 2023 to find out if ChatGPT is the killer app for the Semantic Web, how do we tame the genie of LLMs for Healthcare and more

Can LLMs Become Knowledgeable – Impressions from Day 1 At SEMANTiCS 2023

Read about the interplay between LLMs & KGs and how business and academia tackle them in our report from Day 1 at SEMANTiCS 2023

It’s Time We Give Each Other More Data Spaces: Impressions from the Pre-conference Day at SEMANTiCS 2023

Read about SEMANTiCS pre-conference day, which covered the topics of interoperability, ESG data, knowledge engineering, scholarly communication, and academia & industry collaboration.

GraphDB in Action: Navigating Knowledge About Living Spaces, Cyber-physical Environments and Skies 

Read about three inspiring GraphDB-powered use cases of connecting data in a meaningful way to enable smart buildings, interoperable design engineering and ontology-based air-traffic control

Your Knowledge Graph Journey In Three Simple Steps

A bird’s eye view on where to start in building a knowledge graph solution to help your business excel in a data-driven market

GraphDB in Action: Putting the Most Reliable RDF Database to Work for Better Human-machine Interaction

Read about the world of academia research projects that use GraphDB to meet the challenges of heterogeneous data across various domains

Knowledge Graphs for Retail – Connecting People, Products and Platforms

Read about how knowledge graphs can serve the retail industry’s growing need to connect, manage and utilize data efficiently, aligning it in a collaborative data ecosystem

Data Wants To Be Truly Sovereign: Designing Data Spaces with Linked Data Principles In Mind

Read about what data spaces are and how semantic technologies and Linked Data can make them a stronger and safer mechanism for commercial data exchange

GraphDB in Action: Powering State-of-the-Art Research

Read about how academia research projects use GraphDB to power innovative solutions to challenges in the fields of Accounting, Healthcare and Cultural Heritage

KGF22: Knowledge Graphs and The Not So Quiet Cognitive Revolution

Read about Ontotext’s KGF22 days dedicated to stories about knowledge graphs in the domains of Industry, Healthcare & Life Sciences and Financial Services

KGF22: Wittgenstein, Developers Empathy and Other Semantic Data Considerations

Read about our event report from Ontotext’s Knowledge Graph Forum 2022, highlighting expert insight on building knowledge graphs and designing enterprise-grade solutions with semantic technologies.

A Little SEMANTiCS Goes A Long Way

Take a sneak peek at some of the keynote speeches and tutorials throughout SEMANTiCS 2022

It Takes A Village To Raise An Enterprise Knowledge Graph

Read about the design processes behind crafting knowledge-graph enabled solutions and explore some of the stories of our partners.

Smart Buildings Are Built of Smart Data: Knowledge Graphs for Building Automation Systems

Read about how knowledge graphs offer a sustainable solution for harnessing and making sense of heterogeneous data in the building automation industry.

Metadata Moves: Knowledge Graph Technology for Logistics

Read about how the world of metadata humming behind the logistics and other supply chain processes can benefit from using knowledge graph technology.

Electrical Standards, Smart Grids and Your Air Conditioner

Read about how applying Linked Data principles and semantic technology to electricity data can make for a more efficient, reliable and sustainable electricity market.

The Semantic Web: 20 Years And a Handful of Enterprise Knowledge Graphs Later

Read about how the Semantic Web vision reincarnated in thousands of Linked Open Data datasets and millions of Schema.org tagged webpages. And how it enables knowledge graphs to smarten up enterprises data.

Metadata is Like Packaging: Seeing Beyond the Library Card Metaphor

Read about what metadata is, why it is important and how it can enhance the ways information flows across the enterprise.

From Fragmented Data to a Comprehensive Knowledge Graph: The Case for Building an R&D Repository

Read about how enterprise knowledge graphs can unlock meaning and thus create a smart future-proof living repository of scientific data and its relationships.

Texts Without Pages: Advancing Text Analytics with Content Enrichment

Read about how text analytics can be brought forward with content enrichment processes for better text authoring, delivery and navigation.

A Shield Built of Connected Data: Knowledge Graphs Meet Cybersecurity

Read about how a knowledge graph can help organizations stay vigilant of the increasing number of cyber threats, keeping malicious attacks at bay with the help of semantics.

Digital Twins: If It Sounds Like Cyberpunk, It’s Because It Is

Read about what digital twins are, what makes them attractive to companies and how digital twins relate to semantic technology and enable organizations to design, simulate and validate various scenarios virtually.

Eating the Knowledge Soup, Literally

Read about the fluid essence of knowledge and the capability of knowledge graphs to power an information-rich platform of diverse facts about anything, a broccoli soup included.

If Curiosity Cabinets Were Knowledge Graphs

Read about why and how knowledge graph technology can help build networks of interwoven digital objects in the world of cultural heritage.

On the Hunt for Patterns: from Hippocrates to Supercomputers

Read about the ExaMode project that will help medical professional use the power of supercomputers and knowledge graphs for more efficient patient care through data-driven diagnoses.

Crafting a Knowledge Graph: The Semantic Data Modeling Way

Read about how to build a knowledge graph the semantic data modeling way in 10 steps, provided by our knowledge graph technology experts.

A Graphful of Investment Opportunities

Read about the story of an algorithm that mines data to narrow down opportunities for investing.

Okay, You Got a Knowledge Graph Built with Semantic Technology… And Now What?

Read about how knowledge management can be made smarter using a knowledge graph built with semantic technology.

If Johnny Mnemonic Smuggled Linked Data

Read about how semantic technology and Linked Data can help enterprises benefit from smart data management and retrieval practices.

Data, Databases and Deeds: A SPARQL Query to the Rescue

Read about why and how SPARQL queries make for a better search in diverse datasets across an organization in an integrated way.

Semantic Technology and the Way We See the World

Read about how semantic technology can help you set the wheels for many processes related to еfficient data management and governance.

Telling Stories with an RDF Database

Read about the opportunities for authoring and publishing workflows opened by an RDF triplestore.

The Power of URI or Why Odysseus Called Himself Nobody

Read about URI and its power to enable the sharing and reuse of machine-readable data with minimum integration costs.

From Cultivating Nature to Cultivating Data: Semantic Technology and Viticulture

Learn how the potential that Big Data streams bring to grape and wine production can be harnessed with the right kind of technology.

The Knowledge Graph and the Enterprise

Read about the knowledge graph and about how many enterprises are already embracing the idea of benefiting from it.

It Don’t Mean a Thing If It Ain’t Got Semantics

Learn how you can turn data pieces into actionable knowledge and data-driven decisions with an RDF database.

The Bounties of Semantic Data Integration for the Enterprise

Learn about the potential semantic data integration carries for piecing massive amounts of data together.

Here’s a Graph, Go Figure! Coupling Text Analytics with a Knowledge Graph

Learn why and how a Knowledge Graph boosts significantly Text Analytics processes and practices and makes text work for us in a more meaningful way.

Cognitive Computing: Let’s Play an Awareness Game

Read about the new breed of computing is emerging before our eyes – cognitive computing and join us in our Awareness Game.

Machine Learning and Our (Insatiable) Penchant for Making Things Smarter

Read about how machines can be of great help with many tasks where fast and error-free computation over big amounts of data are required.

Staying In the Vanguard of Digital Transformation with Open Data

Learn about Open Data and its potential to be part of smart solutions to data problems and innovative products and services.

Whose Meaning? Which Ontology?

Read about how ontologies open up opportunities for a new class of tools to power information consumption and knowledge management.

Shiny Happy Data: A Praise for RDF

Learn how to choose the right solution for working with your data the conceptual framework of “happy connected people”.

Enterprise Metadata Matters: From Having Data to Acting Upon Them

Learn more about the importance of being metadata-driven today in our latest SlideShare presentation.

Data Daiquiri: The Power of Mixing Data

Learn how companies can tap into the power of the data coming their way by integrating the huge data flows with their proprietary data.

Migrating to GraphDB: Your Why and How in 20 slides

Learn about the steps you need to migrate your data to GraphDB to use it as a smart brain on top of your legacy systems.

Got meaning? Or Why an RDF Graph Database Is Good for Making Sense of Your Data

Read about how you can create systems capable of discovering relationships and detecting patterns within all kinds of data.

Brains Armored with Smart Data

Read our thoughts rising from questions such as “Will Giant Brains Rule the World?” and “Can a mechanical brain replace you?”

One Step Closer to Intertwingularity: Semantic Metadata

Learn about how semantic metadata allows us to add granularity to an object, interlink it to other objects and make it easy to search.

Exceptional User Experiences with Meaningful Content NOW

Content enrichment and semantic web technologies are key to efficient content management. Learn why and see these technologies in action.

Semantic Information Extraction: From Data Bits to Knowledge Bytes

Learn about semantic information extraction and how it pulls out meaningful data from textual sources, ready to be leveraged for insights, decisions and actions.

Weaving Data Into Texts: The Value of Semantic Annotation

Read about how semantic annotation links certain words to context and references that can be processed by an algorithm.

Exploring Linked Open Data with FactForge

Learn about FactForge and how you can turn the opportunities that data flows on the web can pour into our business into a real experience.

What is GraphDB and how can it help you run a smart data-driven business?

Learn about GraphDB in a simple and easy to understand way and see what Ontotext’s semantic graph database has to do with pasta making.

Linked Data for Libraries: Our New Librarians

Learn how semantic technologies can bring audiences back to libraries and make library archives and collections visible and accessible.

Working with Data Just Got Easier: Converting Tabular Data into RDF Within GraphDB

Read about OntoRefine – a new tool that allows you to do many ETL (extract, transform and load) tasks over tabular data.

GraphDB: Answers for Kids of All Ages

Read about how GraphDB can help you clean up messes of data (just like your room) – whether you are a kid or not.

The Knowledge Discovery Quest

Learn how by joining the dots, semantic search enhances the way we look for clues and compare correlations on our knowledge discovery quest.

Connectivity, Open Data and A Bag of Chips

Learn how LOD’s connectivity allows data to be shared seamlessly, used and reused freely. As simple as a bag of chips.

Data Integration: Joining the Data Pieces of Your Business Puzzle

Learn how to use information interconnectedness to integrate, interpret and ultimately make sense of data.

Cooking Up the Semantic Web

Read about the Semantic Web and what it takes to reach its potential and evolve from a Web of Documents to a Web of Data.

Semantic Search: The Paradigm Shift from Results to Relationships

Read about semantic search and how it takes information retrieval to the next level and puts information at our fingertips.

A Web of People and Machines: W3C Semantic Web Standards

Learn how and why Semantic Web Standards are to serve the Web of Data for better collaboration between people through computers.

Thinking Outside the Table

Learn how to manage highly connected data, working with complex queries and having readily available relationships, without the need to express them explicitly.

Our Networked Lives, Publishing and Semantic Technologies

Read about how semantic technology helps publishing handle data in an interconnected way, attaching machine-processable and readable meaning to them.

Why Graph Databases Make a Better Home for Interconnected Data Than the Relational Databases?

Read about how you can turn data into a resource, easily accessed and effectively used across the organization with a graph database.

Text, Data and the Roman Roads: Semantic Enrichment

Read about semantic enrichment and the unique opportunity it offers for interconnecting objects to facilitate knowledge discovery.

4 Things NOW Lets You Do With Content

Go beyond conventional publishing with Ontotext’s News On the Web and get the feel of how you can discover and consume content with semantic technology.