Class: CountOfSubclasses

Number of subclasses for a given class

URI: semsql_rdf:CountOfSubclasses

classDiagram RdfLevelSummaryStatistic <|-- CountOfSubclasses CountOfSubclasses : count_value CountOfSubclasses : element

Usage

SELECT * FROM count_of_subclasses;

Inheritance

Slots

Name Cardinality and Range Description
element 0..1
Node
count_value 0..1
xsd:integer

Usages

Comments

  • sqlview>> SELECT sc.object AS element, count(distinct sc.subject) AS count_value FROM rdfs_subclass_of_statement AS sc GROUP BY sc.object ORDER BY count_value DESC

Identifier and Mapping Information

Schema Source

  • from schema: https://w3id.org/semsql/rdf

SQL View

This class has a SQL view definition:

sqlview>> SELECT sc.object AS element, count(distinct sc.subject) AS count_value FROM rdfs_subclass_of_statement AS sc GROUP BY sc.object ORDER BY count_value DESC

Mappings

Mapping Type Mapped Value
self ['semsql_rdf:CountOfSubclasses']
native ['semsql_rdf:CountOfSubclasses']

LinkML Specification

Direct

name: count_of_subclasses
description: Number of subclasses for a given class
comments:
- sqlview>> SELECT sc.object AS element, count(distinct sc.subject) AS count_value
  FROM rdfs_subclass_of_statement AS sc GROUP BY sc.object ORDER BY count_value DESC
from_schema: https://w3id.org/semsql/rdf
rank: 1000
is_a: rdf_level_summary_statistic

Induced

name: count_of_subclasses
description: Number of subclasses for a given class
comments:
- sqlview>> SELECT sc.object AS element, count(distinct sc.subject) AS count_value
  FROM rdfs_subclass_of_statement AS sc GROUP BY sc.object ORDER BY count_value DESC
from_schema: https://w3id.org/semsql/rdf
rank: 1000
is_a: rdf_level_summary_statistic
attributes:
  element:
    name: element
    from_schema: https://w3id.org/semsql/rdf
    rank: 1000
    alias: element
    owner: count_of_subclasses
    domain_of:
    - rdf_level_summary_statistic
    range: node
  count_value:
    name: count_value
    from_schema: https://w3id.org/semsql/rdf
    rank: 1000
    alias: count_value
    owner: count_of_subclasses
    domain_of:
    - rdf_level_summary_statistic
    range: integer