## XML ontology ## specified in Libretto ## version 2010-04-02 ## # "x" is the default prefix of the XML ontology in Libretto ontology x "http://xml.ontobox.org/"; # the general class of an XML document node class x:Node; # the 'feature' classes class x:Namespace { x:prefix[0,1] {xsd:string}, x:uri[0,1] {xsd:string} }; class x:Named { x:ns[0,1] {x:Namespace}, x:name[0,1] {xsd:string} }; class x:Container { x:content {x:Node} }; # the main XML document components class x:Text extends x:Node { x:text[0,1] {xsd:string} }; class x:Attribute extends x:Named { x:value[0,1] {xsd:string} }; class x:Element extends x:Named, x:Container, x:Node { x:attributes {x:Attribute} }; class x:Comment extends x:Node { x:comment[0,1] {xsd:string} }; class x:CDATA extends x:Text; # the class of an XML document class x:Document extends x:Container { x:root[0,1] {x:Element} };