Skip to content

General Queries

Competency Questions

This document contains competency questions for Chemotion-KG, along with corresponding SPARQL queries to explore the knowledge graph.


General Questions with SPARQL Queries

CQ1: What are all the types of entities (concepts) in the Chemotion-KG?

This query retrieves a distinct list of all entity types (concepts) present in the knowledge graph.

1
2
3
4
5
6
7
8
SELECT DISTINCT ?Concept ?label
WHERE {
  [] a ?Concept
  optional {
    ?Concept rdfs:label ?label .    
  }
}
LIMIT 999

CQ2: How many entities exist for each concept in the Chemotion-KG?

This query counts the number of entities associated with each concept and orders them by frequency.

SELECT ?Concept ?label (COUNT(?entity) AS ?count)
WHERE {
  ?entity a ?Concept .
  optional {
    ?Concept rdfs:label ?label .    
  }
}
GROUP BY ?Concept ?label
ORDER BY DESC(?count)
LIMIT 999

Explore More

These queries allow users to analyze and navigate Chemotion-KG for compounds, reactions, research contributions, and more.

For additional queries or dataset access, visit: 👉 SPARQL Endpoint