The include Statement for Core Reference Ontologies

The GFEAR language supports a short-hand method of including core reference ontologies by the use of the include statement.

The include statement lists the ontologies as defined by their industry best practices names:

include  rdf, xml;

The include statement is a form of syntactic sugar that can be written with multiple ontology statements. For example, the above line could be replaced with:

ontology("http://www.w3.org/1999/02/22-rdf-syntax-ns#", "rdf")
ontology("http://www.w3.org/XML/1998/namespace", "xml")

The short-hand method does not need to be used, and the full ontology statement can be used for instances where a different prefix may be desired to prevent conflicting prefixes.

The following table details the core reference ontologies that can be expressed using the short-hand notation:

Prefix Ontology Uri
rdf http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs http://www.w3.org/2000/01/rdf-schema#
owl http://www.w3.org/2002/07/owl#
xsd http://www.w3.org/2001/XMLSchema#
xml http://www.w3.org/XML/1998/namespace