# Understanding GN's Classification Scheme In GeneNetwork (GN), data is grouped into specific discrete categories. Let's dive into the currently implemented scheme: * Species: This category groups data based on different species, like humans, mice, or plants. * Set/Group (InbredSet): This groups data according to a group of genetically similar organisms. * DatasetType: This classifies data according to it's type. There are three main types: Genotypes, Molecular Traits, and Phenotypes. 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: * gnc:DatasetType * gnc:Set * gn:Species Here's a depper look at each level: * gnc:DatasetType: This level encompasses subcategories like "gnc:Probeset," "gnc:Genotype," and "gnc:Phenotype." * gnc:Set: This level includes all the members listed in the InbredSet table. * gn:Species: This level consists of all the members from the Species table. 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: PREFIX gnc: PREFIX gn: 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 . } ``` => https://rdf-vocabulary.ddialliance.org/xkos.html [0] XKOS: An SKOS extension for representing statistical classifications. => https://sparql.genenetwork.org/sparql?default-graph-uri=&qtxt=PREFIX%20xkos%3A%20%3Chttp%3A%2F%2Frdf-vocabulary.ddialliance.org%2Fxkos%23%3E%0APREFIX%20gnc%3A%20%3Chttp%3A%2F%2Fgenenetwork.org%2Fcategory%2F%3E%0APREFIX%20gn%3A%20%3Chttp%3A%2F%2Fgenenetwork.org%2Fid%2F%3E%0A%0ASELECT%20*%20WHERE%20%7B%0Agnc%3AResourceClassificationScheme%20%3Fp%20%3Fo%20.%0A%7D&format=text%2Fhtml&timeout=0&signal_void=on Classification Scheme => https://sparql.genenetwork.org/sparql?default-graph-uri=&qtxt=PREFIX%20xkos%3A%20%3Chttp%3A%2F%2Frdf-vocabulary.ddialliance.org%2Fxkos%23%3E%0APREFIX%20gnc%3A%20%3Chttp%3A%2F%2Fgenenetwork.org%2Fcategory%2F%3E%0APREFIX%20gn%3A%20%3Chttp%3A%2F%2Fgenenetwork.org%2Fid%2F%3E%0A%0ASELECT%20*%20WHERE%20%7B%0Agnc%3ADatasetType%20%3Fp%20%3Fo%20.%0A%7D&format=text%2Fhtml&timeout=0&signal_void=on DataSet Types => https://sparql.genenetwork.org/sparql?default-graph-uri=&qtxt=PREFIX%20xkos%3A%20%3Chttp%3A%2F%2Frdf-vocabulary.ddialliance.org%2Fxkos%23%3E%0APREFIX%20gnc%3A%20%3Chttp%3A%2F%2Fgenenetwork.org%2Fcategory%2F%3E%0APREFIX%20gn%3A%20%3Chttp%3A%2F%2Fgenenetwork.org%2Fid%2F%3E%0A%0ASELECT%20*%20WHERE%20%7B%0Agnc%3ASpecies%20%3Fp%20%3Fo%20.%0A%7D&format=text%2Fhtml&timeout=0&signal_void=on Species => https://sparql.genenetwork.org/sparql?default-graph-uri=&qtxt=PREFIX%20xkos%3A%20%3Chttp%3A%2F%2Frdf-vocabulary.ddialliance.org%2Fxkos%23%3E%0APREFIX%20gnc%3A%20%3Chttp%3A%2F%2Fgenenetwork.org%2Fcategory%2F%3E%0APREFIX%20gn%3A%20%3Chttp%3A%2F%2Fgenenetwork.org%2Fid%2F%3E%0A%0ASELECT%20*%20WHERE%20%7B%0Agnc%3ASet%20%3Fp%20%3Fo%20.%0A%7D&format=text%2Fhtml&timeout=0&signal_void=on Set