The SWRL ABox Built-In Library is one of the SWRLTabBuiltInLibraries. It defines built-ins that be used to query an OWL ABox. In general, these built-ins should only be needed in SQWRL queries in association with the TBox built-in library. Most of the functionality they provide is available directly in SWRL without the use of built-ins.    (CBR)

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 ontology 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.    (CBS)

The built-ins in this library are defined by the ABox Ontology. The default alias is abox. 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.    (8WT)

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

Examples    (9A5)

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

List all the individuals in an OWL ontology, ordered alphabetically by name:    (9A6)

Return the number of individuals in an OWL ontology:    (9A2)

List all the individuals in an OWL ontology that have a value for the hasName property:    (9A3)

Return all the individuals in an OWL ontology that have a value for the hasName property and list those values:    (9X9)