An ontology is created in a similar way as a d3web knowledge base using the knowledgebase markup.
%%knowledgebase %
A more detailed description of this markup can be found on the page Doc KnowledgeFormalization.
Ontologies in KnowWE are based on the RDF standard (http://www.w3.org/TR/REC-rdf-syntax/). In RDF every resource is identified by a full qualified URI name. For brevity, KnowWE uses shortened identifier such as rdf for http://www.w3.org/1999/02/22-rdf-syntax-ns#. The resource http://www.w3.org/1999/02/22-rdf-syntax-ns#type therefore is called rdf:type in KnowWE.