1. A method for mapping an XML (eXtensible Markup Language) data structure to an ontology, wherein the method is encoded in program instructions that are recorded on and executed by at least one of a computing device and a co-processor device, the method comprising: providing an XML document with a corresponding XML schema definition; a) mapping XML schema declarations and definitions to ontology schema definitions by: mapping XML element and attribute declarations to ontology property definition; and mapping XML complexType definitions to ontology class definitions; a1) validating the XML document by the XML schema to generate a PSVI (post schema validation info set) annotation of the XML document; b) using the PSVI annotation from the validation of the XML document by the XML schema for mapping XML nodes with known PSVI-type to ontology instances by: mapping PSVI complexType annotations to ontology class instances; mapping element and attribute nodes to ontology property instances; and mapping XML nodes with a known PSVI-type in the following way to ontology instances: b1) for each XML element node with a complexType annotation an instance of a class of the ontology is generated, the class of this instance is the class to which this complexType definition is mapped; b2) mapping an XML simpleType element node to a datatype property instance of the ontology, the domain class instance of the datatype property instance being the instance which is generated for the PSVI type annotation where the element node is used; b3) mapping an XML simpleContent element node with an attribute to an object property instance of the ontology, the object property having a domain class instance and a range class instance, the domain class instance of the object property instance being the instance which is generated for the type annotation where the element is used, the range class instance of the object property instance being the class instance which is generated for the PSVI type annotation of the XML simpleContent element node; b4) mapping an XML complexContent element node to an object property instance of the ontology, the object property having a domain class instance and a range class instance, the domain class instance of the object property instance being the instance which is generated for the PSVI type annotation where the element is used, and the range class instance of the object property instance being the class instance which is generated for the PSVI type annotation of the XML complexContent element node; b5) mapping an XML simpleType attribute node to a datatype property instance of the ontology, the domain class instance of the datatype property instance being the instance which is generated for the PSVI type annotation where the attribute node is used; c) defining predefined ontology schema definitions by defining a predefined ontology class definition and a predefined ontology datatype property definition and a predefined object property definition; d) mapping XML nodes without PSVI-type annotation to ontology instances and to ontology definitions by mapping XML element and attribute nodes to ontology property instances of the predefined ontology property definitions and ontology class instances of the predefined ontology class definitions; e) wherein this mapping is performed dynamically while evaluating a query inquiring data from the XML document.
1. A method for mapping an XML (eXtensible Markup Language) data structure to an ontology, wherein the method is encoded in program instructions that are recorded on and executed by at least one of a computing device and a co-processor device, the method comprising: providing an XML document with a corresponding XML schema definition; a) mapping XML schema declarations and definitions to ontology schema definitions by: mapping XML element and attribute declarations to ontology property definition; and mapping XML complexType definitions to ontology class definitions; a1) validating the XML document by the XML schema to generate a PSVI (post schema validation info set) annotation of the XML document; b) using the PSVI annotation from the validation of the XML document by the XML schema for mapping XML nodes with known PSVI-type to ontology instances by: mapping PSVI complexType annotations to ontology class instances; mapping element and attribute nodes to ontology property instances; and mapping XML nodes with a known PSVI-type in the following way to ontology instances: b1) for each XML element node with a complexType annotation an instance of a class of the ontology is generated, the class of this instance is the class to which this complexType definition is mapped; b2) mapping an XML simpleType element node to a datatype property instance of the ontology, the domain class instance of the datatype property instance being the instance which is generated for the PSVI type annotation where the element node is used; b3) mapping an XML simpleContent element node with an attribute to an object property instance of the ontology, the object property having a domain class instance and a range class instance, the domain class instance of the object property instance being the instance which is generated for the type annotation where the element is used, the range class instance of the object property instance being the class instance which is generated for the PSVI type annotation of the XML simpleContent element node; b4) mapping an XML complexContent element node to an object property instance of the ontology, the object property having a domain class instance and a range class instance, the domain class instance of the object property instance being the instance which is generated for the PSVI type annotation where the element is used, and the range class instance of the object property instance being the class instance which is generated for the PSVI type annotation of the XML complexContent element node; b5) mapping an XML simpleType attribute node to a datatype property instance of the ontology, the domain class instance of the datatype property instance being the instance which is generated for the PSVI type annotation where the attribute node is used; c) defining predefined ontology schema definitions by defining a predefined ontology class definition and a predefined ontology datatype property definition and a predefined object property definition; d) mapping XML nodes without PSVI-type annotation to ontology instances and to ontology definitions by mapping XML element and attribute nodes to ontology property instances of the predefined ontology property definitions and ontology class instances of the predefined ontology class definitions; e) wherein this mapping is performed dynamically while evaluating a query inquiring data from the XML document. 12. Computer program comprising program means for performing the method according to the method claim 1 while the computer program is being executed on a computer or on a computer network.