Skip to content

enumeration documentation is not parsed and included in OWL output #23

@eric-jahn

Description

@eric-jahn

My source XML Schema has enumerations, which are correctly parsed by Ontmalizer. However, within each of my enumerations is documentation. It looks like this:

<xs:simpleType name="issuesYears">
	<xs:restriction base="xs:unsignedInt">
		<xs:enumeration value="1">
			<xs:annotation>
				<xs:documentation xml:lang="en">Less than one year</xs:documentation>
			</xs:annotation>
		</xs:enumeration>
		<xs:enumeration value="2">
			<xs:annotation>
				<xs:documentation xml:lang="en">1 to 2 years</xs:documentation>
			</xs:annotation>
		</xs:enumeration>	
                    <xs:enumeration value="3">
			<xs:annotation>
				<xs:documentation xml:lang="en">3 to 5 or more years</xs:documentation>
			</xs:annotation>
		</xs:enumeration>	

And the resulting OWL is:

http://www.hudhdx.info/Resources/Vendors/FY2022/HUD_HMIS.xsd#issuesYears_Enumeration

:issuesYears_Enumeration rdf:type owl:NamedIndividual ,
dtype:Enumeration ;
dtype:hasValue :issuesYears_1 ,
:issuesYears_2 ,
:issuesYears_3 .

It would be great if Ontmalizer picked up these changes, and added the documentation to describe the enumeration values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions