Should have a closer look at owl functional-style syntax. Rdflib doesnt bring a parser, but maybe its possible to write one.