Export Individuals with brackets in the class type

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Export Individuals with brackets in the class type

dcd8
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>
Reply | Threaded
Open this post in threaded view
|

Re: Export Individuals with brackets in the class type

Jiba
Administrator
Hi,

I fixed the problem by using "owl:NamedIndividual" in the XML tag.

It will be part of the upcoming 0.42 version of Owlready today.

Jiba