Open turbomam opened 2 years ago
try more ranges
unit
: experimental?designates_type
: ? Could implement this in DH, enabling instances of different classes to be entered into the same template.equals_expression
:has_member
:id_prefixes
ifabsent
: doesn't seem to have any effect. Let's implement this in DH! See https://linkml.io/linkml-model/docs/ifabsent/implicit_prefix
:in_language
range_expression
:source
enum_range
:equals_string_in
:values_from
:list_elements_ordered
: Let's implement this in DH once an object saver is implemented and handling is added for multivalued, non-enum slots.list_elements_unique
: Let's implement this in DH once an object saver is implemented and handling is added for multivalued, non-enum slots.maximum_cardinality
:minimum_cardinality
:subproperty_of
: ? see if it behaves like is_a
string_serialization
: this has been mistakenly used where structured_pattern
really should be used insteadstructured_pattern
... just rely on gen-linkml
to expand the structured patterns into regex patterns?all_members
:mappings
alt_descriptions
alias
: not to be confused with aliases
all_of
annotations
apply_to
asymmetric
children_are_mutually_disjoint
:conforms_to
created_by
created_on
definition_uri
deprecated element has exact replacement
deprecated element has possible replacement
disjoint_with
domain_of
: readonlydomain
equals_number
equals_string
exactly_one_of
extensions
from_schema
read onlyimported_from
read onlyinherited
inlined_as_list
inlined
:irreflexive
is_class_field
is_grouping_slot
: could be applied to the dh_section
grouping slot, but not currently necessaryis_usage_slot
key
: ? functionally overlaps some with identifier
last_updated_on
local_names
locally_reflexive
modified_by
none_of
owner
: readonlypath_rule
readonly
reflexive_transitive_form_of
reflexive
relational_role
role
shared
singular_name
status
structured_aliases
symmetric
transitive_form_of
transitive
union_of
usage_slot_name
I think Patrick's new datatypes.js handles Boolean true/false but not yes/no or True/False
Any
class
can be a DH template, even withoutis_a: dh_interface
statements (or the definition of thedh_interface
parent class), but that requires manually adding a block like this intomenu.js
, if one wants to access the interface for a class through the menu system.One could also use a URL in the style http://localhost:8080/?template=dh_testing/test_class
Don't forget to generate at least a minimal
export.js
withexport default {};
Currently, all slots for a class will be displayed. Maybe we should use
abstract
ordeprecated
to suppress slots?Slot attribute handling
Help can be accessed by double-clicking the column header in a stand-alone DH. Invalid cells are colored light pink and illegally empty cells are colored darker pink. Could we choose other colors? Column and section ordering is by appearance in the schema unless otherwise specified. Columns are placed into a
Generic
section unless otherwise specified.abstract
: doesn't prevent slot from appearing as a column, but maybe it shouldaliases
: doen't effect validation or appear in helpany_of
: allows validation on different types, especially combinations of enumerationscomments
appear in the help, on separate lines, with some vertical whitespace in-between.deprecated
: doesn't prevent slot from appearing as a column, but maybe it shoulddescription
appears in the helpexamples
: example values are displayed in the help as a bulleted listidentifier
requires that the values in the column are unique. "Each record must have a unique value for this field." is reported in the help. (Shouldn't it also set the column to required?) This flag doesn't require prefixed IDs or use of approved prefixes on its own. It would be nice to have an additional unique identifier for other slots in the same class.in_subset
: Doen't effect validation or sectioning. Doesn't appear in help.is_a
propagates constraints but not annotations from the parent. Asserts section membership. See preferred Slot_sectioningmaximum_value
is honored for integers and provides help in the following style, when combined withminimum_value
: "Value should be between 2 and 9 (inclusive)."minimum_value
is honored for integers and floats and provides help in the following style, when combined withmaximum_value
: "Value should be between 2 and 9 (inclusive)." When used on its own, the help reads like "Value should be greater than or equal to 4." When used with a float, the validation and the help are truncated down to the next lowest integer!?mixin
doesn't seem to have any effect. Slot is validated and help is reported as if it weren't amixin
.mixins
: Propagates constraints but not annotations from the parent. Does not assert section membership. See preferred Slot_sectioningmultivalued
: Converts a slot withrange
some enum into a multi-select instead of a pulldown. Doesn't appear to have any effect on slots with a string range. If a JSON object saver/exporter is implemented, this (an an appropriately defined delimiter) should result in the cell contents being serialized as a list.name
appears in the help. It would be nice to export the data keyed by name, and not title. That is possible in export mode, given the correctexport.js
.)notes
Do not appear in the help. (That's reasonable.)pattern
: is honored and appears in help like "Pattern as regular expression: /^[aeiou]+$/", when the actual pattern assertion in LinkML waspattern: "^[aeiou]+$"
range: boolean
is honored, but not reported in the help. The acceptable values are0
and1
. Add support fortrue
,True
,yes
, etc.range: date
is honored. A date picker widget is provided, so dates with less than day precision are not supported. Did Damion have some workaround for that? Possibly requiring an additional column?range: datetime
: seems to accept any entryrange: float
is honored, but not reported in the help.range: integer
is honored, but not reported in the help.range: time
: I haven't found any acceptable format. Tried 10:10:10, 10-10-10, T10:10:10.rank
: sets the order of slots/columns within a section, including the implicit "Generic" section.rank
is also used to set the order of the sections. TODO.recommended
is not enforced in any way, but the column header is set to purple. (Could we choose other colors?)required
is honored, and the column header is set to yellow. (Could we choose other colors?)see_also
: doen't effect validation or appear in helpslot_group
doesn't propagate constraints or annotations from the parent. Asserts membership in an ugly section like['test_parent']
, unless the grouping slotis_a: dh_section
. See preferred Slot_sectioningslot_uri
: doesn't appear to have any effecttitle
appears as the column header, and in the help.todos
Do not appear in the help. (That's reasonable.)structured_pattern
andsettings
: requires expansion with gen-linkml?Slot_sectioning
Generic
comes first?