This paper presents a method for converting AutomationML, a widely used open data exchange format in the automation field, to OWL, enabling new use cases such as querying with SPARQL and validation with SHACL. Although AutomationML is based on XML, it includes additional semantics that limit the usability of common XML tools. This paper addresses this issue by providing a declarative mapping for automatically converting AutomationML to RDF triples and a state-of-the-art ontology of concepts defined in the AutomationML standard. Through examples from the automation field, we demonstrate that converting AutomationML to OWL enables powerful querying and validation methods that were previously unavailable.