Hi,
Trying to export an ontology created by Protoge, edited using owlready2 and exported.
When I have a class with brackets in the name i.e. Class_with(Brackets), and then instantiate it and then export it produces the following XML:
<Class_with(Brackets) rdf:about="#Instantiated">
<rdf:type rdf:resource="
http://www.w3.org/2002/07/owl#NamedIndividual"/><Class_with(Brackets)>
Now that bracket invalidated the XML. Protoge solves it by exporting it like this:
<owl:NamedIndividual rdf:about="uri#Instantiated">
<rdf:type rdf:resource="uri#Class_with(Brackets))"/>
</owl:NamedIndividual>