The SWRL TBox Built-In Library is one of the SWRLTabBuiltInLibraries. It defines built-ins that be used to query an OWL TBox. It allows users to, for example, find all transitive properties in an ontology.    (A3K)

The built-ins in this library are defined by TBox Ontology. The standard alias is tbox. A copy of this file can be found the standard Protege-OWL repositories, and can be imported through the 'Import Ontology' option in the Metadata tab.    (8WU)

The built-ins in this library allow direct reasoning about OWL classes and properties, something that it not permitted in OWL or SWRL. Ideally, they should not be used in SWRL rules - they should only be used in SQWRL queries. These methods themselves do not modify the TBox in any way. Also, the built-ins in this library currently operate on the asserted information in an ontology only - they do not pick up inferred knowledge.    (A9J)

The following are the built-ins defined by this library:    (8NG)

Examples    (99P)

The following examples show how these built-ins can be used in SQWRL queries to examine the structure of an OWL ontology. These queries can be executed using either the SQWRLQueryTab or the SQWRLQueryAPI.    (99Z)

List all the classes in an OWL ontology, ordered alphabetically by name:    (99R)

List the number of individuals in an OWL ontology:    (9A0)

List all the transitive properties in an owl ontology:    (99T)

List all the functional properties together with their direct subproperties:    (99V)

List all the data properties together with the number of their direct subproperties:    (99X)

List all data properties together with their ranges:    (9EY)