Edit this page | Blame

Understanding GN's Classification Scheme

In GeneNetwork (GN), data is grouped into specific discrete categories. Let's dive into the currently implemented scheme:

The aforementioned classification scheme is inspired by GN's menu structure which forms the skeleton of the proposed classification. You can query metadata about this classification: "gn:ResourceClassificationScheme". This classification scheme has 3 levels:

Here's a depper look at each level:

The beauty of this system is that most of the resources in GN can be accurately categorized using it. Instead of using specific properties like "gnt:belongsToSpecies" or "gnt:belongsToSet," we can utilize the xkos[0] approach. For instance, to classify a resource, we can use the concept of xkos and apply the relationship "xkos:classifiedUnder." Here's an example of a resource that has been classified:

gn:Gtexv8_sto_0220 xkos:classifiedUnder gnc:Probeset .
gn:Gtexv8_sto_0220 xkos:classifiedUnder gn:setGtex_v8

This means that the resource "gn:Gtexv8_sto_0220" is classified under the category "gnc:Probeset" and also under the set "gn:setGtex_v8."

To query this classification using SPARQL, we can use the following code snippet:

PREFIX xkos: <http://rdf-vocabulary.ddialliance.org/xkos#>
PREFIX gnc: <http://genenetwork.org/category/>
PREFIX gn: <http://genenetwork.org/id/>

SELECT * WHERE {
  gn:Gtexv8_sto_0220 xkos:classifiedUnder ?datasetType .
  gn:Gtexv8_sto_0220 xkos:classifiedUnder ?set .
  gnc:DatasetType skos:member ?datasetType .
  gnc:Set skos:member ?set .
}
(made with skribilo)