Closed dungscout96 closed 6 months ago
Is this not correct? I have no issue changing the converter if told to, but it's been like this a while.
The viewer can treat them the same as attributes in most senses, that's what the hed-python code does.
https://hed-specification.readthedocs.io/en/develop/03_HED_formats.html#xml-schema-format
<property>
is correct. The property section has modifiers of the schema attributes themselves. They are distinctly different. It has always been this way.
It is necessary to call them something different because they are semantically different. In the ontology representation: tag, unit, unit class, value class, unit modifier are all OWL classes. Schema attributes translate to DataProperty
, ObjectProperty
, or AnnotationProperty
. That is, schema attributes are functions with domains and ranges.
The <property>
section specifies the domain, range, and inheritance characteristics of the attributes. These <property>
values are necessary and sufficient to determine what kind of OWL Property a HED schema attribute is. In other words --- the <property>
section has to be distinguished from schema attributes.
I see, sorry for the misunderstanding. I updated the schema browser accordingly. It should display the properties now.
The (legacy?)
<property>
tags were used instead of<attribute>
for schemaAttributeDefinitions: https://github.com/hed-standard/hed-schemas/blob/bd30aa1035baa6770913880a1b9d2c5dd5c5735e/standard_schema/hedxml/HED8.2.0.xml#L7040The schema viewer thus unable to parse these fields to display.