Hello,
I'm using the XML Schema Export function on one of my models and was
wondering if there is a way to export xsd enumerations from my model. E.g.
something like:
<xsd:simpleType name = "iso3currency">
<xsd:restriction base = "xsd:string">
<xsd:enumeration value = "AUD"/><!-- Australian Dollar -->
<xsd:enumeration value = "BRL"/><!-- Brazilian Real -->
<xsd:enumeration value = "CAD"/><!-- Canadian Dollar -->
<xsd:enumeration value = "CNY"/><!-- Chinese Yen -->
<xsd:enumeration value = "EUR"/><!-- Euro -->
<xsd:enumeration value = "GBP"/><!-- British Pound -->
<xsd:enumeration value = "INR"/><!-- Indian Rupee -->
<xsd:enumeration value = "JPY"/><!-- Japanese Yen -->
<xsd:enumeration value = "RUR"/><!-- Russian Rouble -->
<xsd:enumeration value = "USD"/><!-- US Dollar -->
<xsd:length value = "3"/>
</xsd:restriction>
</xsd:simpleType>
I tried using the owl:oneOf property in my model to define the enumeration
values for a class, e.g.
<rdf:Description
rdf:about="http://www.boeing.com/sem/acms/ACMS_Datalink_Report.owl#Suffix">
<owl:oneOf
rdf:resource="http://www.boeing.com/sem/acms/ACMS_Datalink_Report.owl#LDISP1"/>
<owl:oneOf
rdf:resource="http://www.boeing.com/sem/acms/ACMS_Datalink_Report.owl#REECGE"/>
<owl:oneOf
rdf:resource="http://www.boeing.com/sem/acms/ACMS_Datalink_Report.owl#TAKEOFF"/>
</rdf:Description>
<Suffix
rdf:about="http://www.boeing.com/sem/acms/ACMS_Datalink_Report.owl#LDISP1">
<rdfs:label>LDISP1</rdfs:label>
</Suffix>
but the exporter seems to ignore that. Is there some other construct I could
use? If not, could this functionality perhaps be added to the exporter,
perhaps using the enum resource's local name or its rdfs:label property for the
value used in the xml schema? I'm no xml schema export, but it seems to me
that on the surface they are two semantically equivalent concepts.
Thanks,
Jeff
--
You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en