Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
eric-jahn opened this issue Jun 6, 2021 · 0 comments
Open

Comments

@eric-jahn
Copy link

eric-jahn commented Jun 6, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant