From ce30fed797cf71a0794f2f523be7eac1273d84a0 Mon Sep 17 00:00:00 2001 From: Andrew Davison Date: Tue, 29 Sep 2026 17:06:58 +0200 Subject: [PATCH 1/3] Ensure consistent and robust sorting (#129) Generated queries now carry exactly one root-level sort key, chosen deliberately, instead of sorting by every name-like property. The KG query API allows 'sort' on only a single root-level property, but the previous code set it on all matching root properties, so classes with both 'name' and 'lookup_label' (ParcellationEntity, Electrode, SlicingDevice, ...) produced an invalid query with two sort keys. The sortable set is now aligned with the name-like set used by by_name(), and the single sort property is chosen from it in a fixed priority order: name, full_name, short_name, family_name, abbreviation, lookup_label (synonyms is never used). In practice this means 'name' now wins over 'lookup_label', Person gains a family_name sort key where it had none, and Dataset/Organization sort by full_name. Documents result ordering in doc/queries.rst and the KGObject.list() docstring, and adds offline tests pinning the single root-level sort key plus a live test asserting case-insensitive ordering (the KG sorts case-insensitively, so the assertion is not a plain Python sorted()). Implementation made use of DeepSeek V4 Flash via Albert API (DINUM) --- doc/queries.rst | 25 +++++++ doc/release_notes.rst | 32 +++++++++ fairgraph/kgobject.py | 16 +++-- fairgraph/queries.py | 27 +++++++- .../openminds/core/person_newstyle_query.json | 3 +- .../core/person_resolved-1_query.json | 3 +- .../openminds/core/person_simple_query.json | 3 +- test/test_queries.py | 68 +++++++++++++++++++ 8 files changed, 169 insertions(+), 8 deletions(-) diff --git a/doc/queries.rst b/doc/queries.rst index fb121b36..0e360042 100644 --- a/doc/queries.rst +++ b/doc/queries.rst @@ -125,6 +125,31 @@ This returns 10 nodes starting with the 15th. To see how many nodes there are in .. note:: if you consistently retrieve an empty list, it is probably because you do not yet have the necessary permissions. See :doc:`permissions` for more information. +Result ordering +--------------- + +The order in which ``list()`` returns results is only meaningful when the metadata is retrieved +through the query API (i.e. when a filter or ``follow_links`` is used, or when ``api="query"`` +is passed explicitly). In that case fairgraph asks the Knowledge Graph to sort the results by a +single property, in **ascending** order and **case-insensitively** (so, e.g., ``AAL1_brain`` is +placed between ``AAL1_AMYG`` and ``AAL1_CAU``, which is not the order plain Python ``sorted()`` +would produce). + +The Knowledge Graph API allows sorting on exactly one property, at the root level. fairgraph +chooses that property from the class's name-like properties in a fixed priority order: +``name``, then ``full_name``, ``short_name``, ``family_name``, ``abbreviation``, then +``lookup_label``. It picks the first of these that the class actually has, so, for example, +``ParcellationEntity`` is sorted by ``name``, ``Dataset`` by ``full_name``, and ``Person`` by +``family_name``. ``synonyms`` is never used as a sort key (it is list-valued), and classes with +none of these properties are returned in whatever order the Knowledge Graph supplies. + +Results retrieved through the core API (the default for a plain, unfiltered ``list()``) are +returned in an unspecified order. + +.. note:: This ordering of *results* is unrelated to the internal ``ensure_order`` option on a + query property, which only preserves the order of instances within a list-valued + property, not the ordering of the results returned. + Filtering/searching =================== diff --git a/doc/release_notes.rst b/doc/release_notes.rst index d500c33c..e49f8410 100644 --- a/doc/release_notes.rst +++ b/doc/release_notes.rst @@ -41,6 +41,29 @@ Changes in behaviour (the default is ``existence_match="equals"``). With ``recursive=True`` the setting applies to child objects as well. +- Generated queries now carry exactly **one** sort key, chosen deliberately, instead of sorting + by every name-like property. The Knowledge Graph API allows ``"sort": true`` on only a single + root-level property, but fairgraph previously set it on *all* matching name-like root + properties, so classes with both ``name`` and ``lookup_label`` (e.g. ``ParcellationEntity``, + ``Electrode``, ``SlicingDevice``) produced an invalid query with two sort keys. The sortable + set is now aligned with the name-like set used by :meth:`~fairgraph.kgobject.KGObject.by_name`, + and the single sort property is chosen from it in a fixed priority order: ``name``, then + ``full_name``, ``short_name``, ``family_name``, ``abbreviation``, then ``lookup_label`` + (``synonyms`` is never used). In practice: + + - a class with both ``name`` and ``lookup_label`` is now sorted by ``name`` (previously + ``lookup_label`` won only because it happened to precede it), e.g. ``ParcellationEntity``; + - :class:`~fairgraph.openminds.core.Dataset` and + :class:`~fairgraph.openminds.core.DatasetVersion` are sorted by ``full_name``; + - :class:`~fairgraph.openminds.core.Person` gains a ``family_name`` sort key + where it previously had none; + - classes with none of the sortable properties (e.g. ``DOI``) are returned in whatever order + the Knowledge Graph supplies. + + Results are sorted in ascending, case-insensitive order. This is unrelated to the internal + ``ensure_order`` option on a query property, which only preserves the order of instances within + a list-valued property (`#129 `_). + Bug fixes --------- @@ -51,6 +74,15 @@ Bug fixes Such a link now gives the same existence query as the object it points to (`#145 `_). +Documentation +------------- + +- The order in which :meth:`~fairgraph.kgobject.KGObject.list` returns results is now documented, + in :doc:`queries` and in the :meth:`list` docstring. It covers the single sort key, its priority + order, and the ascending, case-insensitive ordering the Knowledge Graph applies, and it + distinguishes that from the internal ``ensure_order`` option (`#129 `_). + A test against the pre-production Knowledge Graph pins the case-insensitive ordering. + Version 0.15.0 ============== diff --git a/fairgraph/kgobject.py b/fairgraph/kgobject.py index f479b34a..4ca5c35a 100644 --- a/fairgraph/kgobject.py +++ b/fairgraph/kgobject.py @@ -39,7 +39,7 @@ from openminds.base import LinkedNodeEmbedding from .utility import expand_uri, as_list, expand_filter, ActivityLog, normalize_data, handle_scope_keyword -from .queries import Query, QueryProperty, Regex +from .queries import Query, QueryProperty, Regex, choose_sort_property from .errors import AuthorizationError, ResourceExistsError, CannotBuildExistenceQuery from .caching import object_cache, save_cache, generate_cache_key from .base import ErrorHandling, Releasable, JSONdict @@ -395,6 +395,14 @@ def list( Returns: A list of instances of this class representing the objects returned by the KG query. + Note: + When the query API is used (i.e. a filter or ``follow_links`` is given, or + ``api="query"`` is passed), the results are sorted in ascending, case-insensitive + order by a single name-like property chosen in a fixed priority order + (``name``, ``full_name``, ``short_name``, ``family_name``, ``abbreviation``, + ``lookup_label``; ``synonyms`` is never used). Results from the core API are in an + unspecified order. + Raises: ValueError: If invalid arguments are passed to the method. NotImplementedError: If 'follow_links' is used with api='core'. @@ -1183,9 +1191,9 @@ def generate_query( # second pass, we add filters query.properties.extend(cls.generate_query_filter_properties(normalized_filters)) # third pass, we add sorting, which can only happen at the top level - for prop in query.properties: - if prop.name in ("name", "fullName", "lookupLabel"): - prop.sorted = True + sort_property = choose_sort_property(query.properties) + if sort_property is not None: + sort_property.sorted = True # implementation note: the three-pass approach generates queries that are sometimes more verbose # than necessary, but it makes the logic easier to understand. return query.serialize() diff --git a/fairgraph/queries.py b/fairgraph/queries.py index 2888289a..cae46a29 100644 --- a/fairgraph/queries.py +++ b/fairgraph/queries.py @@ -368,7 +368,32 @@ def serialize(self) -> Dict[str, Any]: return query -# todo: I think only one property can have "sort": True - need to check this +#: Order, most preferred first, in which a generated query picks its single sort key. +#: The names are the camelCase schema names used as ``QueryProperty.name`` (e.g. the Python +#: attribute ``lookup_label`` is the schema name ``lookupLabel``). ``name`` is preferred because +#: its values are human-readable and sort meaningfully; ``lookupLabel`` is deliberately last +#: because it embeds atlas/project prefixes, camel-case and sometimes DOIs, so sorting by it +#: groups by origin scheme first and looks cluttered. ``synonyms`` is excluded: it is +#: list-valued and not a sensible sort key. +#: +#: The KG API allows ``"sort": true`` on only one property, and only at the root level, so +#: exactly one property is chosen and it is always a top-level property. +SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + + +def choose_sort_property(query_properties): + """ + Return the single top-level ``QueryProperty`` to sort a generated query by, or ``None``. + + The first top-level property whose ``name`` appears in :data:`SORT_PRIORITY` (in priority + order) is chosen; this satisfies the KG's constraint of exactly one ``"sort": true`` at the + root level. If no sortable property is present, returns ``None`` so no sort is requested. + """ + for sort_name in SORT_PRIORITY: + for prop in query_properties: + if prop.name == sort_name: + return prop + return None def _get_query_property_name(property, possible_classes): diff --git a/test/test_data/queries/openminds/core/person_newstyle_query.json b/test/test_data/queries/openminds/core/person_newstyle_query.json index 529fb424..177f8bd2 100644 --- a/test/test_data/queries/openminds/core/person_newstyle_query.json +++ b/test/test_data/queries/openminds/core/person_newstyle_query.json @@ -883,7 +883,8 @@ }, { "path": "https://openminds.om-i.org/props/familyName", - "propertyName": "familyName" + "propertyName": "familyName", + "sort": true }, { "path": "https://openminds.om-i.org/props/givenName", diff --git a/test/test_data/queries/openminds/core/person_resolved-1_query.json b/test/test_data/queries/openminds/core/person_resolved-1_query.json index c31f15ed..66b67420 100644 --- a/test/test_data/queries/openminds/core/person_resolved-1_query.json +++ b/test/test_data/queries/openminds/core/person_resolved-1_query.json @@ -677,7 +677,8 @@ }, { "path": "https://openminds.om-i.org/props/familyName", - "propertyName": "familyName" + "propertyName": "familyName", + "sort": true }, { "path": "https://openminds.om-i.org/props/givenName", diff --git a/test/test_data/queries/openminds/core/person_simple_query.json b/test/test_data/queries/openminds/core/person_simple_query.json index af8ffa17..5ff39403 100644 --- a/test/test_data/queries/openminds/core/person_simple_query.json +++ b/test/test_data/queries/openminds/core/person_simple_query.json @@ -115,7 +115,8 @@ }, { "path": "https://openminds.om-i.org/props/familyName", - "propertyName": "familyName" + "propertyName": "familyName", + "sort": true }, { "path": "https://openminds.om-i.org/props/givenName", diff --git a/test/test_queries.py b/test/test_queries.py index 1b029056..77988375 100644 --- a/test/test_queries.py +++ b/test/test_queries.py @@ -521,6 +521,74 @@ def test_generate_query_with_follow_named_links(mock_client): assert generated == expected +def test_generate_query_single_root_level_sort_key(mock_client): + """Generated queries carry at most one 'sort': true, on a root-level property only. + + The KG query API allows sorting on exactly one property, at the root level. This pins + that constraint and the deliberate priority order in which the sort property is chosen + (see SORT_PRIORITY in fairgraph/queries.py). + """ + import fairgraph.openminds.v4.core as v4core + import fairgraph.openminds.v4.sands as v4sands + import fairgraph.openminds.v4.ephys as v4ephys + import fairgraph.openminds.v4.specimen_prep as v4sp + import fairgraph.openminds.v5.sands as v5sands + + # (class, expected sort propertyName, or None for "no sort") + cases = [ + # has both name and lookup_label -> name wins over lookup_label + (v4sands.ParcellationEntity, "name"), + (v4sands.ParcellationEntityVersion, "name"), + (v4ephys.Electrode, "name"), + (v4ephys.ElectrodeArray, "name"), + (v4ephys.Pipette, "name"), + (v4sp.SlicingDevice, "name"), + # v5 variants behave the same + (v5sands.ParcellationEntity, "name"), + (v5sands.ParcellationEntityVersion, "name"), + # no 'name', but family_name -> familyName (newly sortable) + (v4core.Person, "familyName"), + # no 'name', full_name present -> fullName + (v4core.Organization, "fullName"), + (v4core.Dataset, "fullName"), + ] + for cls, expected_sort in cases: + query = cls.generate_query(space="collab-foobar", client=mock_client, with_reverse_properties=True) + sorts = [prop.get("propertyName") for prop in query["structure"] if prop.get("sort")] + assert len(sorts) <= 1, f"{cls.__name__}: expected at most one sort key, got {sorts}" + assert sorts == [expected_sort], f"{cls.__name__}: expected sort key {expected_sort!r}, got {sorts}" + # sort must not appear on any nested (non-root) property + for prop in query["structure"]: + if "structure" in prop: + assert "sort" not in prop, f"{cls.__name__}: nested sort present" + + +def test_generate_query_no_sort_when_no_name_like_property(mock_client): + """Classes with no name-like property should not emit a sort key.""" + # DOI has no name-like top-level property to sort by + query = omcore.DOI.generate_query(space="collab-foobar", client=mock_client, with_reverse_properties=True) + for prop in query["structure"]: + assert "sort" not in prop, f"unexpected sort on {prop.get('propertyName')}" + + +@skip_if_no_connection +def test_list_results_sorted_by_name(kg_client): + """Live: results come back sorted case-insensitively by the chosen sort property. + + The KG sorts case-insensitively (e.g. 'AAL1_brain' sits between 'AAL1_AMYG' and + 'AAL1_CAU'), so the assertion compares lower-cased names rather than using plain + ``sorted()``, which would disagree. Sorting only applies to the query API, so the + query API is forced explicitly. + """ + import fairgraph.openminds.v4.sands as v4sands + + instances = v4sands.ParcellationEntity.list(kg_client, size=30, api="query") + names = [inst.name for inst in instances if getattr(inst, "name", None)] + assert len(names) > 1 + lowered = [name.lower() for name in names] + assert lowered == sorted(lowered), "results not ordered case-insensitively by name" + + def test_generate_query_type_filter_flattened(): query = Query( node_type="https://openminds.om-i.org/types/LivePaperVersion", From 49bfa7ee78f91a3d29c425e6c307c0bd9052957b Mon Sep 17 00:00:00 2001 From: Andrew Davison Date: Wed, 30 Sep 2026 10:34:40 +0200 Subject: [PATCH 2/3] Add per-class sort-priority override for parcellation classes (#129) ParcellationEntity and ParcellationEntityVersion now sort by lookup_label instead of name, so that terms from the same atlas stay grouped together. The default sort priority now lives in the openMINDS builder (builder/update_openminds.py, DEFAULT_SORT_PRIORITY) and is regenerated into every generated class as a SORT_PRIORITY class attribute, so that the runtime sort logic (KGObject.generate_query / choose_sort_property) reads a per-class value. A dict of exceptions, SORT_PRIORITY_EXCEPTIONS, overrides the default for specific classes; it currently contains only the two parcellation classes, which prefer lookupLabel. - builder/update_openminds.py: DEFAULT_SORT_PRIORITY + SORT_PRIORITY_EXCEPTIONS, injected into the template context. - builder/fairgraph_module_template.py.txt: emit SORT_PRIORITY on each generated class. - fairgraph/queries.py: choose_sort_property takes an explicit priority (default = module default). - fairgraph/kgobject.py: KGObject.SORT_PRIORITY default; generate_query uses the per-class value. - Regenerated v4/v5 openminds module (513 files, one added line each). - Tests: updated sort-key expectations and added a test pinning the per-class override. - Docs: queries.rst, list() docstring and release notes mention the override. Implementation made use of DeepSeek V4 Flash via Albert API (DINUM) --- builder/fairgraph_module_template.py.txt | 1 + builder/update_openminds.py | 19 ++++++ doc/queries.rst | 10 ++- doc/release_notes.rst | 12 +++- fairgraph/kgobject.py | 14 ++++- .../v4/chemicals/amount_of_chemical.py | 1 + .../v4/chemicals/chemical_mixture.py | 1 + .../v4/chemicals/chemical_substance.py | 1 + .../openminds/v4/chemicals/product_source.py | 1 + .../openminds/v4/computation/data_analysis.py | 1 + .../openminds/v4/computation/data_copy.py | 1 + .../openminds/v4/computation/environment.py | 1 + .../v4/computation/generic_computation.py | 1 + .../v4/computation/hardware_system.py | 1 + .../v4/computation/launch_configuration.py | 1 + .../openminds/v4/computation/local_file.py | 1 + .../v4/computation/model_validation.py | 1 + .../openminds/v4/computation/optimization.py | 1 + .../openminds/v4/computation/simulation.py | 1 + .../v4/computation/software_agent.py | 1 + .../v4/computation/validation_test.py | 1 + .../v4/computation/validation_test_version.py | 1 + .../openminds/v4/computation/visualization.py | 1 + .../v4/computation/workflow_execution.py | 1 + .../v4/computation/workflow_recipe.py | 1 + .../v4/computation/workflow_recipe_version.py | 1 + .../v4/controlled_terms/action_status_type.py | 1 + .../v4/controlled_terms/age_category.py | 1 + .../v4/controlled_terms/analysis_technique.py | 1 + .../anatomical_axes_orientation.py | 1 + .../anatomical_identification_type.py | 1 + .../v4/controlled_terms/anatomical_plane.py | 1 + .../annotation_criteria_type.py | 1 + .../v4/controlled_terms/annotation_type.py | 1 + .../v4/controlled_terms/atlas_type.py | 1 + .../auditory_stimulus_type.py | 1 + .../v4/controlled_terms/biological_order.py | 1 + .../v4/controlled_terms/biological_process.py | 1 + .../v4/controlled_terms/biological_sex.py | 1 + .../v4/controlled_terms/breeding_type.py | 1 + .../v4/controlled_terms/cell_culture_type.py | 1 + .../v4/controlled_terms/cell_type.py | 1 + .../controlled_terms/chemical_mixture_type.py | 1 + .../openminds/v4/controlled_terms/colormap.py | 1 + .../v4/controlled_terms/contribution_type.py | 1 + .../cranial_window_construction_type.py | 1 + .../cranial_window_reinforcement_type.py | 1 + .../controlled_terms/criteria_quality_type.py | 1 + .../v4/controlled_terms/data_type.py | 1 + .../v4/controlled_terms/device_type.py | 1 + .../v4/controlled_terms/difference_measure.py | 1 + .../openminds/v4/controlled_terms/disease.py | 1 + .../v4/controlled_terms/disease_model.py | 1 + .../v4/controlled_terms/educational_level.py | 1 + .../electrical_stimulus_type.py | 1 + .../v4/controlled_terms/ethics_assessment.py | 1 + .../controlled_terms/experimental_approach.py | 1 + .../controlled_terms/file_bundle_grouping.py | 1 + .../controlled_terms/file_repository_type.py | 1 + .../v4/controlled_terms/file_usage_role.py | 1 + .../controlled_terms/genetic_strain_type.py | 1 + .../gustatory_stimulus_type.py | 1 + .../v4/controlled_terms/handedness.py | 1 + .../openminds/v4/controlled_terms/language.py | 1 + .../v4/controlled_terms/laterality.py | 1 + .../learning_resource_type.py | 1 + .../v4/controlled_terms/measured_quantity.py | 1 + .../controlled_terms/measured_signal_type.py | 1 + .../controlled_terms/meta_data_model_type.py | 1 + .../model_abstraction_level.py | 1 + .../v4/controlled_terms/model_scope.py | 1 + .../v4/controlled_terms/molecular_entity.py | 1 + .../v4/controlled_terms/mri_pulse_sequence.py | 1 + .../v4/controlled_terms/mri_weighting.py | 1 + .../olfactory_stimulus_type.py | 1 + .../v4/controlled_terms/operating_device.py | 1 + .../v4/controlled_terms/operating_system.py | 1 + .../controlled_terms/optical_stimulus_type.py | 1 + .../openminds/v4/controlled_terms/organ.py | 1 + .../v4/controlled_terms/organism_substance.py | 1 + .../v4/controlled_terms/organism_system.py | 1 + .../controlled_terms/patch_clamp_variation.py | 1 + .../v4/controlled_terms/preparation_type.py | 1 + .../controlled_terms/product_accessibility.py | 1 + .../controlled_terms/programming_language.py | 1 + .../controlled_terms/qualitative_overlap.py | 1 + .../v4/controlled_terms/semantic_data_type.py | 1 + .../openminds/v4/controlled_terms/service.py | 1 + .../v4/controlled_terms/setup_type.py | 1 + .../software_application_category.py | 1 + .../v4/controlled_terms/software_feature.py | 1 + .../openminds/v4/controlled_terms/species.py | 1 + .../controlled_terms/stimulation_approach.py | 1 + .../controlled_terms/stimulation_technique.py | 1 + .../v4/controlled_terms/subcellular_entity.py | 1 + .../v4/controlled_terms/subject_attribute.py | 1 + .../controlled_terms/tactile_stimulus_type.py | 1 + .../v4/controlled_terms/technique.py | 1 + .../v4/controlled_terms/term_suggestion.py | 1 + .../v4/controlled_terms/terminology.py | 1 + .../tissue_sample_attribute.py | 1 + .../v4/controlled_terms/tissue_sample_type.py | 1 + .../controlled_terms/type_of_uncertainty.py | 1 + .../controlled_terms/uberon_parcellation.py | 1 + .../controlled_terms/unit_of_measurement.py | 1 + .../controlled_terms/visual_stimulus_type.py | 1 + .../v4/core/actors/account_information.py | 1 + .../openminds/v4/core/actors/affiliation.py | 1 + .../openminds/v4/core/actors/consortium.py | 1 + .../v4/core/actors/contact_information.py | 1 + .../openminds/v4/core/actors/contribution.py | 1 + .../openminds/v4/core/actors/organization.py | 1 + fairgraph/openminds/v4/core/actors/person.py | 1 + .../openminds/v4/core/data/content_type.py | 1 + .../v4/core/data/content_type_pattern.py | 1 + fairgraph/openminds/v4/core/data/copyright.py | 1 + fairgraph/openminds/v4/core/data/file.py | 1 + .../openminds/v4/core/data/file_archive.py | 1 + .../openminds/v4/core/data/file_bundle.py | 1 + .../v4/core/data/file_path_pattern.py | 1 + .../openminds/v4/core/data/file_repository.py | 1 + .../v4/core/data/file_repository_structure.py | 1 + fairgraph/openminds/v4/core/data/hash.py | 1 + fairgraph/openminds/v4/core/data/license.py | 1 + .../openminds/v4/core/data/measurement.py | 1 + .../openminds/v4/core/data/service_link.py | 1 + .../v4/core/digital_identifier/doi.py | 1 + .../v4/core/digital_identifier/gridid.py | 1 + .../v4/core/digital_identifier/handle.py | 1 + .../identifiers_dot_org_id.py | 1 + .../v4/core/digital_identifier/isbn.py | 1 + .../v4/core/digital_identifier/issn.py | 1 + .../v4/core/digital_identifier/orcid.py | 1 + .../v4/core/digital_identifier/rorid.py | 1 + .../v4/core/digital_identifier/rrid.py | 1 + .../core/digital_identifier/stock_number.py | 1 + .../v4/core/digital_identifier/swhid.py | 1 + .../v4/core/miscellaneous/comment.py | 1 + .../v4/core/miscellaneous/funding.py | 1 + .../core/miscellaneous/quantitative_value.py | 1 + .../miscellaneous/quantitative_value_array.py | 1 + .../miscellaneous/quantitative_value_range.py | 1 + .../miscellaneous/research_product_group.py | 1 + .../v4/core/miscellaneous/web_resource.py | 1 + .../openminds/v4/core/products/dataset.py | 1 + .../v4/core/products/dataset_version.py | 1 + .../v4/core/products/meta_data_model.py | 1 + .../core/products/meta_data_model_version.py | 1 + fairgraph/openminds/v4/core/products/model.py | 1 + .../v4/core/products/model_version.py | 1 + .../openminds/v4/core/products/project.py | 1 + fairgraph/openminds/v4/core/products/setup.py | 1 + .../openminds/v4/core/products/software.py | 1 + .../v4/core/products/software_version.py | 1 + .../openminds/v4/core/products/web_service.py | 1 + .../v4/core/products/web_service_version.py | 1 + .../v4/core/research/behavioral_protocol.py | 1 + .../v4/core/research/configuration.py | 1 + .../v4/core/research/custom_property_set.py | 1 + .../v4/core/research/numerical_property.py | 1 + .../v4/core/research/property_value_list.py | 1 + .../openminds/v4/core/research/protocol.py | 1 + .../v4/core/research/protocol_execution.py | 1 + .../openminds/v4/core/research/strain.py | 1 + .../v4/core/research/string_property.py | 1 + .../openminds/v4/core/research/subject.py | 1 + .../v4/core/research/subject_group.py | 1 + .../v4/core/research/subject_group_state.py | 1 + .../v4/core/research/subject_state.py | 1 + .../v4/core/research/tissue_sample.py | 1 + .../core/research/tissue_sample_collection.py | 1 + .../tissue_sample_collection_state.py | 1 + .../v4/core/research/tissue_sample_state.py | 1 + .../v4/ephys/activity/cell_patching.py | 1 + .../v4/ephys/activity/electrode_placement.py | 1 + .../v4/ephys/activity/recording_activity.py | 1 + .../openminds/v4/ephys/device/electrode.py | 1 + .../v4/ephys/device/electrode_array.py | 1 + .../v4/ephys/device/electrode_array_usage.py | 1 + .../v4/ephys/device/electrode_usage.py | 1 + .../openminds/v4/ephys/device/pipette.py | 1 + .../v4/ephys/device/pipette_usage.py | 1 + .../openminds/v4/ephys/entity/channel.py | 1 + .../openminds/v4/ephys/entity/recording.py | 1 + fairgraph/openminds/v4/publications/book.py | 1 + .../openminds/v4/publications/chapter.py | 1 + .../v4/publications/learning_resource.py | 1 + .../openminds/v4/publications/live_paper.py | 1 + .../publications/live_paper_resource_item.py | 1 + .../v4/publications/live_paper_section.py | 1 + .../v4/publications/live_paper_version.py | 1 + .../openminds/v4/publications/periodical.py | 1 + .../v4/publications/publication_issue.py | 1 + .../v4/publications/publication_volume.py | 1 + .../v4/publications/scholarly_article.py | 1 + .../v4/sands/atlas/atlas_annotation.py | 1 + .../openminds/v4/sands/atlas/brain_atlas.py | 1 + .../v4/sands/atlas/brain_atlas_version.py | 1 + .../v4/sands/atlas/common_coordinate_space.py | 1 + .../atlas/common_coordinate_space_version.py | 1 + .../v4/sands/atlas/parcellation_entity.py | 1 + .../atlas/parcellation_entity_version.py | 1 + .../sands/atlas/parcellation_terminology.py | 1 + .../atlas/parcellation_terminology_version.py | 1 + .../v4/sands/mathematical_shapes/circle.py | 1 + .../v4/sands/mathematical_shapes/ellipse.py | 1 + .../v4/sands/mathematical_shapes/rectangle.py | 1 + .../anatomical_target_position.py | 1 + .../sands/miscellaneous/coordinate_point.py | 1 + .../qualitative_relation_assessment.py | 1 + .../quantitative_relation_assessment.py | 1 + .../v4/sands/miscellaneous/single_color.py | 1 + .../miscellaneous/viewer_specification.py | 1 + .../non_atlas/custom_anatomical_entity.py | 1 + .../v4/sands/non_atlas/custom_annotation.py | 1 + .../non_atlas/custom_coordinate_space.py | 1 + .../activity/cranial_window_preparation.py | 1 + .../activity/tissue_culture_preparation.py | 1 + .../activity/tissue_sample_slicing.py | 1 + .../v4/specimen_prep/device/slicing_device.py | 1 + .../device/slicing_device_usage.py | 1 + .../activity/stimulation_activity.py | 1 + .../v4/stimulation/stimulus/ephys_stimulus.py | 1 + .../v5/chemicals/amount_of_chemical.py | 1 + .../v5/chemicals/chemical_mixture.py | 1 + .../v5/chemicals/chemical_substance.py | 1 + .../openminds/v5/chemicals/product_source.py | 1 + .../openminds/v5/computation/data_analysis.py | 1 + .../openminds/v5/computation/data_copy.py | 1 + .../v5/computation/deployed_interface.py | 1 + .../openminds/v5/computation/environment.py | 1 + .../v5/computation/generic_computation.py | 1 + .../v5/computation/hardware_system.py | 1 + .../v5/computation/launch_configuration.py | 1 + .../v5/computation/model_validation.py | 1 + .../openminds/v5/computation/optimization.py | 1 + .../v5/computation/service_deployment.py | 1 + .../openminds/v5/computation/simulation.py | 1 + .../v5/computation/software_agent.py | 1 + .../v5/computation/validation_test.py | 1 + .../v5/computation/validation_test_version.py | 1 + .../openminds/v5/computation/visualization.py | 1 + .../v5/computation/workflow_execution.py | 1 + .../v5/computation/workflow_recipe.py | 1 + .../v5/computation/workflow_recipe_version.py | 1 + .../v5/controlled_terms/access_channel.py | 1 + .../access_eligibility_type.py | 1 + .../v5/controlled_terms/access_form.py | 1 + .../controlled_terms/access_process_type.py | 1 + .../v5/controlled_terms/action_status_type.py | 1 + .../v5/controlled_terms/age_category.py | 1 + .../v5/controlled_terms/age_reference.py | 1 + .../v5/controlled_terms/analysis_technique.py | 1 + .../anatomical_axes_orientation.py | 1 + .../v5/controlled_terms/anatomical_cavity.py | 1 + .../anatomical_identification_type.py | 1 + .../v5/controlled_terms/anatomical_plane.py | 1 + .../annotation_criteria_type.py | 1 + .../v5/controlled_terms/annotation_type.py | 1 + .../v5/controlled_terms/atlas_type.py | 1 + .../auditory_stimulus_type.py | 1 + .../v5/controlled_terms/biological_order.py | 1 + .../v5/controlled_terms/biological_process.py | 1 + .../v5/controlled_terms/biological_sex.py | 1 + .../v5/controlled_terms/breeding_type.py | 1 + .../v5/controlled_terms/cell_culture_type.py | 1 + .../v5/controlled_terms/cell_type.py | 1 + .../controlled_terms/chemical_mixture_type.py | 1 + .../openminds/v5/controlled_terms/colormap.py | 1 + .../communication_interface_type.py | 1 + .../communication_protocol.py | 1 + .../v5/controlled_terms/contribution_type.py | 1 + .../cranial_window_construction_type.py | 1 + .../cranial_window_reinforcement_type.py | 1 + .../controlled_terms/criteria_quality_type.py | 1 + .../v5/controlled_terms/data_type.py | 1 + .../v5/controlled_terms/dependency_impact.py | 1 + .../deployment_environment_type.py | 1 + .../controlled_terms/device_mounting_type.py | 1 + .../v5/controlled_terms/device_type.py | 1 + .../v5/controlled_terms/difference_measure.py | 1 + .../openminds/v5/controlled_terms/disease.py | 1 + .../v5/controlled_terms/disease_model.py | 1 + .../v5/controlled_terms/educational_level.py | 1 + .../electrical_stimulus_type.py | 1 + .../controlled_terms/experimental_approach.py | 1 + .../controlled_terms/external_body_region.py | 1 + .../controlled_terms/file_bundle_grouping.py | 1 + .../controlled_terms/file_repository_type.py | 1 + .../v5/controlled_terms/file_usage_role.py | 1 + .../controlled_terms/genetic_strain_type.py | 1 + .../gustatory_stimulus_type.py | 1 + .../v5/controlled_terms/handedness.py | 1 + .../openminds/v5/controlled_terms/language.py | 1 + .../v5/controlled_terms/laterality.py | 1 + .../learning_resource_type.py | 1 + .../v5/controlled_terms/measured_quantity.py | 1 + .../controlled_terms/measured_signal_type.py | 1 + .../controlled_terms/meta_data_model_type.py | 1 + .../model_abstraction_level.py | 1 + .../v5/controlled_terms/model_scope.py | 1 + .../modification_consent_requirement.py | 1 + .../modification_constraint.py | 1 + .../v5/controlled_terms/modification_form.py | 1 + .../v5/controlled_terms/modification_scope.py | 1 + .../v5/controlled_terms/molecular_entity.py | 1 + .../mri_fat_suppression_technique.py | 1 + .../mri_parallel_acquisition_technique.py | 1 + .../v5/controlled_terms/mri_pulse_sequence.py | 1 + .../mri_spoiling_technique.py | 1 + .../v5/controlled_terms/mri_weighting.py | 1 + .../v5/controlled_terms/muscular_structure.py | 1 + .../nervous_system_structure.py | 1 + .../olfactory_stimulus_type.py | 1 + .../v5/controlled_terms/operating_device.py | 1 + .../v5/controlled_terms/operating_system.py | 1 + .../controlled_terms/operational_approach.py | 1 + .../controlled_terms/optical_stimulus_type.py | 1 + .../openminds/v5/controlled_terms/organ.py | 1 + .../organ_system_structure.py | 1 + .../v5/controlled_terms/organism_substance.py | 1 + .../v5/controlled_terms/organism_system.py | 1 + .../v5/controlled_terms/organization_type.py | 1 + .../controlled_terms/patch_clamp_variation.py | 1 + .../v5/controlled_terms/payment_model_type.py | 1 + .../v5/controlled_terms/preparation_type.py | 1 + .../controlled_terms/programming_language.py | 1 + .../v5/controlled_terms/project_type.py | 1 + .../v5/controlled_terms/publication_status.py | 1 + .../v5/controlled_terms/pulse_shape.py | 1 + .../controlled_terms/qualitative_overlap.py | 1 + .../v5/controlled_terms/semantic_data_type.py | 1 + .../v5/controlled_terms/setup_type.py | 1 + .../controlled_terms/signal_directionality.py | 1 + .../v5/controlled_terms/skeletal_structure.py | 1 + .../software_application_category.py | 1 + .../v5/controlled_terms/software_feature.py | 1 + .../v5/controlled_terms/sovereign_state.py | 1 + .../v5/controlled_terms/spatial_encoding.py | 1 + .../openminds/v5/controlled_terms/species.py | 1 + .../controlled_terms/stimulation_approach.py | 1 + .../controlled_terms/stimulation_technique.py | 1 + .../v5/controlled_terms/subcellular_entity.py | 1 + .../v5/controlled_terms/subject_attribute.py | 1 + .../v5/controlled_terms/supranational_body.py | 1 + .../controlled_terms/tactile_stimulus_type.py | 1 + .../v5/controlled_terms/technique.py | 1 + .../v5/controlled_terms/term_suggestion.py | 1 + .../v5/controlled_terms/terminology.py | 1 + .../tissue_sample_attribute.py | 1 + .../v5/controlled_terms/tissue_sample_type.py | 1 + .../v5/controlled_terms/tissue_structure.py | 1 + .../controlled_terms/type_of_uncertainty.py | 1 + .../controlled_terms/unit_of_measurement.py | 1 + .../v5/controlled_terms/vascular_structure.py | 1 + .../controlled_terms/visual_stimulus_type.py | 1 + .../v5/controlled_terms/weight_type.py | 1 + .../v5/core/actors/account_information.py | 1 + .../openminds/v5/core/actors/affiliation.py | 1 + .../openminds/v5/core/actors/consortium.py | 1 + .../v5/core/actors/contact_information.py | 1 + .../openminds/v5/core/actors/contribution.py | 1 + .../openminds/v5/core/actors/organization.py | 1 + fairgraph/openminds/v5/core/actors/person.py | 1 + fairgraph/openminds/v5/core/data/channel.py | 1 + .../openminds/v5/core/data/content_type.py | 1 + .../v5/core/data/content_type_pattern.py | 1 + fairgraph/openminds/v5/core/data/copyright.py | 1 + fairgraph/openminds/v5/core/data/file.py | 1 + .../openminds/v5/core/data/file_archive.py | 1 + .../openminds/v5/core/data/file_bundle.py | 1 + .../v5/core/data/file_path_pattern.py | 1 + .../openminds/v5/core/data/file_repository.py | 1 + .../v5/core/data/file_repository_structure.py | 1 + .../openminds/v5/core/data/grid_image.py | 1 + .../v5/core/data/grid_image_sequence.py | 1 + .../v5/core/data/grid_image_stack.py | 1 + .../openminds/v5/core/data/grid_volume.py | 1 + .../v5/core/data/grid_volume_sequence.py | 1 + fairgraph/openminds/v5/core/data/hash.py | 1 + fairgraph/openminds/v5/core/data/license.py | 1 + .../openminds/v5/core/data/local_file.py | 1 + .../openminds/v5/core/data/measurement.py | 1 + .../v5/core/data/regular_time_series.py | 1 + .../openminds/v5/core/data/service_link.py | 1 + .../openminds/v5/core/data/usage_agreement.py | 1 + .../v5/core/digital_identifier/doi.py | 1 + .../digital_identifier/generic_identifier.py | 1 + .../v5/core/digital_identifier/handle.py | 1 + .../identifiers_dot_org_id.py | 1 + .../v5/core/digital_identifier/isbn.py | 1 + .../v5/core/digital_identifier/isni.py | 1 + .../v5/core/digital_identifier/issn.py | 1 + .../v5/core/digital_identifier/lei.py | 1 + .../v5/core/digital_identifier/orcid.py | 1 + .../v5/core/digital_identifier/rorid.py | 1 + .../v5/core/digital_identifier/rrid.py | 1 + .../core/digital_identifier/stock_number.py | 1 + .../v5/core/digital_identifier/swhid.py | 1 + .../v5/core/miscellaneous/accessibility.py | 1 + .../v5/core/miscellaneous/comment.py | 1 + .../v5/core/miscellaneous/dependency.py | 1 + .../v5/core/miscellaneous/funding.py | 1 + .../v5/core/miscellaneous/geo_coordinates.py | 1 + .../v5/core/miscellaneous/location.py | 1 + .../v5/core/miscellaneous/membership.py | 1 + .../core/miscellaneous/quantitative_value.py | 1 + .../miscellaneous/quantitative_value_array.py | 1 + .../miscellaneous/quantitative_value_range.py | 1 + .../miscellaneous/research_product_group.py | 1 + .../v5/core/miscellaneous/web_resource.py | 1 + .../openminds/v5/core/products/dataset.py | 1 + .../v5/core/products/dataset_version.py | 1 + .../v5/core/products/hardware_product.py | 1 + .../openminds/v5/core/products/interface.py | 1 + .../v5/core/products/interface_version.py | 1 + .../v5/core/products/meta_data_model.py | 1 + .../core/products/meta_data_model_version.py | 1 + fairgraph/openminds/v5/core/products/model.py | 1 + .../v5/core/products/model_version.py | 1 + .../openminds/v5/core/products/project.py | 1 + .../openminds/v5/core/products/service.py | 1 + fairgraph/openminds/v5/core/products/setup.py | 1 + .../openminds/v5/core/products/software.py | 1 + .../v5/core/products/software_version.py | 1 + .../v5/core/research/behavioral_protocol.py | 1 + .../v5/core/research/configuration.py | 1 + .../v5/core/research/custom_property_set.py | 1 + .../v5/core/research/numerical_property.py | 1 + .../v5/core/research/property_value_list.py | 1 + .../openminds/v5/core/research/protocol.py | 1 + .../v5/core/research/protocol_execution.py | 1 + .../v5/core/research/specimen_age.py | 1 + .../v5/core/research/specimen_weight.py | 1 + .../openminds/v5/core/research/strain.py | 1 + .../v5/core/research/string_property.py | 1 + .../openminds/v5/core/research/subject.py | 1 + .../v5/core/research/subject_group.py | 1 + .../v5/core/research/subject_group_state.py | 1 + .../v5/core/research/subject_state.py | 1 + .../v5/core/research/tissue_sample.py | 1 + .../core/research/tissue_sample_collection.py | 1 + .../tissue_sample_collection_state.py | 1 + .../v5/core/research/tissue_sample_state.py | 1 + .../v5/ephys/activity/cell_patching.py | 1 + .../v5/ephys/activity/electrode_placement.py | 1 + .../v5/ephys/activity/recording_activity.py | 1 + .../openminds/v5/ephys/device/electrode.py | 1 + .../v5/ephys/device/electrode_array.py | 1 + .../v5/ephys/device/electrode_array_usage.py | 1 + .../v5/ephys/device/electrode_usage.py | 1 + .../openminds/v5/ephys/device/pipette.py | 1 + .../v5/ephys/device/pipette_usage.py | 1 + .../activity/dynamic_mri_acquisition.py | 1 + .../activity/static_mri_acquisition.py | 1 + .../v5/neuroimaging/device/mri_coil.py | 1 + .../v5/neuroimaging/device/mri_coil_usage.py | 1 + .../v5/neuroimaging/device/mri_scanner.py | 1 + .../neuroimaging/device/mri_scanner_usage.py | 1 + fairgraph/openminds/v5/publications/book.py | 1 + .../openminds/v5/publications/chapter.py | 1 + .../v5/publications/learning_resource.py | 1 + .../openminds/v5/publications/live_paper.py | 1 + .../publications/live_paper_resource_item.py | 1 + .../v5/publications/live_paper_section.py | 1 + .../v5/publications/live_paper_version.py | 1 + .../openminds/v5/publications/periodical.py | 1 + .../v5/publications/publication_issue.py | 1 + .../v5/publications/publication_volume.py | 1 + .../v5/publications/scholarly_article.py | 1 + .../v5/sands/atlas/anatomical_atlas.py | 1 + .../sands/atlas/anatomical_atlas_version.py | 1 + .../v5/sands/atlas/atlas_annotation.py | 1 + .../atlas/common_coordinate_framework.py | 1 + .../common_coordinate_framework_version.py | 1 + .../v5/sands/atlas/parcellation_entity.py | 1 + .../atlas/parcellation_entity_version.py | 1 + .../sands/atlas/parcellation_terminology.py | 1 + .../atlas/parcellation_terminology_version.py | 1 + .../mathematical_shape/centroidal_pyramid.py | 1 + .../v5/sands/mathematical_shape/circle.py | 1 + .../mathematical_shape/circular_sector.py | 1 + .../v5/sands/mathematical_shape/cube.py | 1 + .../v5/sands/mathematical_shape/ellipse.py | 1 + .../v5/sands/mathematical_shape/ellipsoid.py | 1 + .../equilateral_triangle.py | 1 + .../v5/sands/mathematical_shape/frustum.py | 1 + .../mathematical_shape/isosceles_triangle.py | 1 + .../v5/sands/mathematical_shape/kite.py | 1 + .../sands/mathematical_shape/parallelogram.py | 1 + .../v5/sands/mathematical_shape/rectangle.py | 1 + .../mathematical_shape/regular_polygon.py | 1 + .../v5/sands/mathematical_shape/rhombus.py | 1 + .../v5/sands/mathematical_shape/right_cone.py | 1 + .../mathematical_shape/right_cylinder.py | 1 + .../sands/mathematical_shape/right_prism.py | 1 + .../mathematical_shape/right_triangle.py | 1 + .../v5/sands/mathematical_shape/sphere.py | 1 + .../v5/sands/mathematical_shape/spheroid.py | 1 + .../v5/sands/mathematical_shape/square.py | 1 + .../v5/sands/mathematical_shape/trapezoid.py | 1 + .../v5/sands/mathematical_shape/triangle.py | 1 + .../anatomical_target_position.py | 1 + .../sands/miscellaneous/coordinate_point.py | 1 + .../qualitative_relation_assessment.py | 1 + .../quantitative_relation_assessment.py | 1 + .../v5/sands/miscellaneous/single_color.py | 1 + .../miscellaneous/viewer_specification.py | 1 + .../non_atlas/custom_anatomical_entity.py | 1 + .../v5/sands/non_atlas/custom_annotation.py | 1 + .../non_atlas/custom_coordinate_framework.py | 1 + .../activity/cranial_window_preparation.py | 1 + .../activity/tissue_culture_preparation.py | 1 + .../activity/tissue_sample_slicing.py | 1 + .../v5/specimen_prep/device/slicing_device.py | 1 + .../device/slicing_device_usage.py | 1 + .../activity/stimulation_activity.py | 1 + .../v5/stimulation/stimulus/ephys_stimulus.py | 1 + fairgraph/queries.py | 16 +++-- test/test_queries.py | 61 ++++++++++++++----- 520 files changed, 617 insertions(+), 29 deletions(-) diff --git a/builder/fairgraph_module_template.py.txt b/builder/fairgraph_module_template.py.txt index a00d6205..2aafeb07 100644 --- a/builder/fairgraph_module_template.py.txt +++ b/builder/fairgraph_module_template.py.txt @@ -19,6 +19,7 @@ class {{ class_name }}({{base_class}}, OM{{ class_name }}): {%- if default_space %} default_space = "{{ default_space }}" {%- endif %} + SORT_PRIORITY = {{ sort_priority }} # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ {% for prop in reverse_properties -%} diff --git a/builder/update_openminds.py b/builder/update_openminds.py index 3e0cb96b..85312033 100644 --- a/builder/update_openminds.py +++ b/builder/update_openminds.py @@ -22,6 +22,24 @@ } +# The order, most preferred first, in which a generated class picks its single sort key. +# The names are the camelCase schema names used as ``QueryProperty.name`` (e.g. the Python +# attribute ``lookup_label`` is the schema name ``lookupLabel``). ``name`` is preferred because +# its values are human-readable and sort meaningfully; ``lookupLabel`` is put first only for the +# classes listed in SORT_PRIORITY_EXCEPTIONS, where it keeps terms from the same atlas/scheme +# together. ``synonyms`` is excluded: it is list-valued and not a sensible sort key. +# The Knowledge Graph API allows ``"sort": true`` on only one property, at the root level, so +# exactly one property is chosen and it is always a top-level property. +DEFAULT_SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + +# Per-class overrides, most preferred sort property first. The rest of the priority order is +# left unchanged (the full list is emitted into the generated class). +SORT_PRIORITY_EXCEPTIONS = { + "ParcellationEntity": ("lookupLabel", "name", "fullName", "shortName", "familyName", "abbreviation"), + "ParcellationEntityVersion": ("lookupLabel", "name", "fullName", "shortName", "familyName", "abbreviation"), +} + + reverse_name_map = { "RRID": "identifies", "about": { @@ -951,6 +969,7 @@ def get_type(prop): "standard_init_properties": standard_init_properties, "additional_methods": additional_methods, "aliases": aliases, + "sort_priority": SORT_PRIORITY_EXCEPTIONS.get(class_name, DEFAULT_SORT_PRIORITY), "constructor_arguments": sorted( [p["name"] for p in chain(properties, reverse_properties)] + list(aliases.keys()), key=property_name_sort_key, diff --git a/doc/queries.rst b/doc/queries.rst index 0e360042..75526190 100644 --- a/doc/queries.rst +++ b/doc/queries.rst @@ -139,9 +139,13 @@ The Knowledge Graph API allows sorting on exactly one property, at the root leve chooses that property from the class's name-like properties in a fixed priority order: ``name``, then ``full_name``, ``short_name``, ``family_name``, ``abbreviation``, then ``lookup_label``. It picks the first of these that the class actually has, so, for example, -``ParcellationEntity`` is sorted by ``name``, ``Dataset`` by ``full_name``, and ``Person`` by -``family_name``. ``synonyms`` is never used as a sort key (it is list-valued), and classes with -none of these properties are returned in whatever order the Knowledge Graph supplies. +``Dataset`` is sorted by ``full_name`` and ``Person`` by ``family_name``. ``synonyms`` is never +used as a sort key (it is list-valued), and classes with none of these properties are returned in +whatever order the Knowledge Graph supplies. + +A few classes override this default because a different property keeps related results together. +In particular, ``ParcellationEntity`` and ``ParcellationEntityVersion`` are sorted by +``lookup_label`` so that terms from the same atlas stay grouped. Results retrieved through the core API (the default for a plain, unfiltered ``list()``) are returned in an unspecified order. diff --git a/doc/release_notes.rst b/doc/release_notes.rst index e49f8410..07953ba5 100644 --- a/doc/release_notes.rst +++ b/doc/release_notes.rst @@ -47,12 +47,12 @@ Changes in behaviour properties, so classes with both ``name`` and ``lookup_label`` (e.g. ``ParcellationEntity``, ``Electrode``, ``SlicingDevice``) produced an invalid query with two sort keys. The sortable set is now aligned with the name-like set used by :meth:`~fairgraph.kgobject.KGObject.by_name`, - and the single sort property is chosen from it in a fixed priority order: ``name``, then - ``full_name``, ``short_name``, ``family_name``, ``abbreviation``, then ``lookup_label`` + and the single sort property is chosen from it in a fixed default priority order: ``name``, + then ``full_name``, ``short_name``, ``family_name``, ``abbreviation``, then ``lookup_label`` (``synonyms`` is never used). In practice: - a class with both ``name`` and ``lookup_label`` is now sorted by ``name`` (previously - ``lookup_label`` won only because it happened to precede it), e.g. ``ParcellationEntity``; + ``lookup_label`` won only because it happened to precede it), e.g. ``Electrode``; - :class:`~fairgraph.openminds.core.Dataset` and :class:`~fairgraph.openminds.core.DatasetVersion` are sorted by ``full_name``; - :class:`~fairgraph.openminds.core.Person` gains a ``family_name`` sort key @@ -60,6 +60,12 @@ Changes in behaviour - classes with none of the sortable properties (e.g. ``DOI``) are returned in whatever order the Knowledge Graph supplies. + A few classes override the default order via a per-class ``SORT_PRIORITY`` attribute so that a + different property keeps related results together: ``ParcellationEntity`` and + ``ParcellationEntityVersion`` are sorted by ``lookup_label`` so that terms from the same atlas + stay grouped (instead of by ``name``). The override is defined in the builder's + ``SORT_PRIORITY_EXCEPTIONS`` and regenerated into each generated class. + Results are sorted in ascending, case-insensitive order. This is unrelated to the internal ``ensure_order`` option on a query property, which only preserves the order of instances within a list-valued property (`#129 `_). diff --git a/fairgraph/kgobject.py b/fairgraph/kgobject.py index 4ca5c35a..39084644 100644 --- a/fairgraph/kgobject.py +++ b/fairgraph/kgobject.py @@ -39,7 +39,7 @@ from openminds.base import LinkedNodeEmbedding from .utility import expand_uri, as_list, expand_filter, ActivityLog, normalize_data, handle_scope_keyword -from .queries import Query, QueryProperty, Regex, choose_sort_property +from .queries import Query, QueryProperty, Regex, choose_sort_property, SORT_PRIORITY from .errors import AuthorizationError, ResourceExistsError, CannotBuildExistenceQuery from .caching import object_cache, save_cache, generate_cache_key from .base import ErrorHandling, Releasable, JSONdict @@ -72,6 +72,11 @@ class KGObject(KGNode, Releasable): # many cases be over-ridden. # It assumes that "name" is unique within instances of a given type, # which may often not be the case. + # + # Priority order, most preferred first, in which generate_query picks the single sort key. + # Generated openMINDS classes override this (see the builder's DEFAULT_SORT_PRIORITY / + # SORT_PRIORITY_EXCEPTIONS). If None, generate_query falls back to the default in queries.py. + SORT_PRIORITY = None def __init__( self, @@ -400,7 +405,9 @@ def list( ``api="query"`` is passed), the results are sorted in ascending, case-insensitive order by a single name-like property chosen in a fixed priority order (``name``, ``full_name``, ``short_name``, ``family_name``, ``abbreviation``, - ``lookup_label``; ``synonyms`` is never used). Results from the core API are in an + ``lookup_label``; ``synonyms`` is never used). A few classes override this order via + their ``SORT_PRIORITY`` class attribute (e.g. ``ParcellationEntity`` sorts by + ``lookup_label`` so atlas terms stay grouped). Results from the core API are in an unspecified order. Raises: @@ -1191,7 +1198,8 @@ def generate_query( # second pass, we add filters query.properties.extend(cls.generate_query_filter_properties(normalized_filters)) # third pass, we add sorting, which can only happen at the top level - sort_property = choose_sort_property(query.properties) + sort_priority = getattr(cls, "SORT_PRIORITY", None) or SORT_PRIORITY + sort_property = choose_sort_property(query.properties, sort_priority) if sort_property is not None: sort_property.sorted = True # implementation note: the three-pass approach generates queries that are sometimes more verbose diff --git a/fairgraph/openminds/v4/chemicals/amount_of_chemical.py b/fairgraph/openminds/v4/chemicals/amount_of_chemical.py index 238aa244..e65da6d1 100644 --- a/fairgraph/openminds/v4/chemicals/amount_of_chemical.py +++ b/fairgraph/openminds/v4/chemicals/amount_of_chemical.py @@ -15,6 +15,7 @@ class AmountOfChemical(KGEmbedded, OMAmountOfChemical): """ type_ = "https://openminds.om-i.org/types/AmountOfChemical" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("chemical_product", "amount") diff --git a/fairgraph/openminds/v4/chemicals/chemical_mixture.py b/fairgraph/openminds/v4/chemicals/chemical_mixture.py index 76921869..711efd9b 100644 --- a/fairgraph/openminds/v4/chemicals/chemical_mixture.py +++ b/fairgraph/openminds/v4/chemicals/chemical_mixture.py @@ -16,6 +16,7 @@ class ChemicalMixture(KGObject, OMChemicalMixture): type_ = "https://openminds.om-i.org/types/ChemicalMixture" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/chemicals/chemical_substance.py b/fairgraph/openminds/v4/chemicals/chemical_substance.py index 63556a9e..3618c551 100644 --- a/fairgraph/openminds/v4/chemicals/chemical_substance.py +++ b/fairgraph/openminds/v4/chemicals/chemical_substance.py @@ -16,6 +16,7 @@ class ChemicalSubstance(KGObject, OMChemicalSubstance): type_ = "https://openminds.om-i.org/types/ChemicalSubstance" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/chemicals/product_source.py b/fairgraph/openminds/v4/chemicals/product_source.py index 4d1e5003..59f7bb21 100644 --- a/fairgraph/openminds/v4/chemicals/product_source.py +++ b/fairgraph/openminds/v4/chemicals/product_source.py @@ -16,6 +16,7 @@ class ProductSource(KGObject, OMProductSource): type_ = "https://openminds.om-i.org/types/ProductSource" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/data_analysis.py b/fairgraph/openminds/v4/computation/data_analysis.py index ae0f659c..7fef0e29 100644 --- a/fairgraph/openminds/v4/computation/data_analysis.py +++ b/fairgraph/openminds/v4/computation/data_analysis.py @@ -19,6 +19,7 @@ class DataAnalysis(KGObject, OMDataAnalysis): type_ = "https://openminds.om-i.org/types/DataAnalysis" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/data_copy.py b/fairgraph/openminds/v4/computation/data_copy.py index c9848935..668df3ca 100644 --- a/fairgraph/openminds/v4/computation/data_copy.py +++ b/fairgraph/openminds/v4/computation/data_copy.py @@ -19,6 +19,7 @@ class DataCopy(KGObject, OMDataCopy): type_ = "https://openminds.om-i.org/types/DataCopy" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/environment.py b/fairgraph/openminds/v4/computation/environment.py index c7a279e9..558e8f6e 100644 --- a/fairgraph/openminds/v4/computation/environment.py +++ b/fairgraph/openminds/v4/computation/environment.py @@ -16,6 +16,7 @@ class Environment(KGObject, OMEnvironment): type_ = "https://openminds.om-i.org/types/Environment" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/generic_computation.py b/fairgraph/openminds/v4/computation/generic_computation.py index 6c816f28..317d9108 100644 --- a/fairgraph/openminds/v4/computation/generic_computation.py +++ b/fairgraph/openminds/v4/computation/generic_computation.py @@ -19,6 +19,7 @@ class GenericComputation(KGObject, OMGenericComputation): type_ = "https://openminds.om-i.org/types/GenericComputation" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/hardware_system.py b/fairgraph/openminds/v4/computation/hardware_system.py index 26ade465..2082d76c 100644 --- a/fairgraph/openminds/v4/computation/hardware_system.py +++ b/fairgraph/openminds/v4/computation/hardware_system.py @@ -16,6 +16,7 @@ class HardwareSystem(KGObject, OMHardwareSystem): type_ = "https://openminds.om-i.org/types/HardwareSystem" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/launch_configuration.py b/fairgraph/openminds/v4/computation/launch_configuration.py index c06d831c..22c892f0 100644 --- a/fairgraph/openminds/v4/computation/launch_configuration.py +++ b/fairgraph/openminds/v4/computation/launch_configuration.py @@ -16,6 +16,7 @@ class LaunchConfiguration(KGObject, OMLaunchConfiguration): type_ = "https://openminds.om-i.org/types/LaunchConfiguration" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/local_file.py b/fairgraph/openminds/v4/computation/local_file.py index f38aed4b..b39d7c42 100644 --- a/fairgraph/openminds/v4/computation/local_file.py +++ b/fairgraph/openminds/v4/computation/local_file.py @@ -16,6 +16,7 @@ class LocalFile(KGObject, OMLocalFile): type_ = "https://openminds.om-i.org/types/LocalFile" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/model_validation.py b/fairgraph/openminds/v4/computation/model_validation.py index 9735711e..003f9f5b 100644 --- a/fairgraph/openminds/v4/computation/model_validation.py +++ b/fairgraph/openminds/v4/computation/model_validation.py @@ -20,6 +20,7 @@ class ModelValidation(KGObject, OMModelValidation): type_ = "https://openminds.om-i.org/types/ModelValidation" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/optimization.py b/fairgraph/openminds/v4/computation/optimization.py index deb15703..89b62f41 100644 --- a/fairgraph/openminds/v4/computation/optimization.py +++ b/fairgraph/openminds/v4/computation/optimization.py @@ -19,6 +19,7 @@ class Optimization(KGObject, OMOptimization): type_ = "https://openminds.om-i.org/types/Optimization" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/simulation.py b/fairgraph/openminds/v4/computation/simulation.py index 5562e89e..354cfb86 100644 --- a/fairgraph/openminds/v4/computation/simulation.py +++ b/fairgraph/openminds/v4/computation/simulation.py @@ -19,6 +19,7 @@ class Simulation(KGObject, OMSimulation): type_ = "https://openminds.om-i.org/types/Simulation" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/software_agent.py b/fairgraph/openminds/v4/computation/software_agent.py index fd8b3621..72171f75 100644 --- a/fairgraph/openminds/v4/computation/software_agent.py +++ b/fairgraph/openminds/v4/computation/software_agent.py @@ -16,6 +16,7 @@ class SoftwareAgent(KGObject, OMSoftwareAgent): type_ = "https://openminds.om-i.org/types/SoftwareAgent" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/validation_test.py b/fairgraph/openminds/v4/computation/validation_test.py index 72b6438f..69986f27 100644 --- a/fairgraph/openminds/v4/computation/validation_test.py +++ b/fairgraph/openminds/v4/computation/validation_test.py @@ -19,6 +19,7 @@ class ValidationTest(KGObject, OMValidationTest): type_ = "https://openminds.om-i.org/types/ValidationTest" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/validation_test_version.py b/fairgraph/openminds/v4/computation/validation_test_version.py index 66f112d9..3046c59e 100644 --- a/fairgraph/openminds/v4/computation/validation_test_version.py +++ b/fairgraph/openminds/v4/computation/validation_test_version.py @@ -20,6 +20,7 @@ class ValidationTestVersion(KGObject, OMValidationTestVersion): type_ = "https://openminds.om-i.org/types/ValidationTestVersion" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/visualization.py b/fairgraph/openminds/v4/computation/visualization.py index b9d1e1a0..223ba850 100644 --- a/fairgraph/openminds/v4/computation/visualization.py +++ b/fairgraph/openminds/v4/computation/visualization.py @@ -19,6 +19,7 @@ class Visualization(KGObject, OMVisualization): type_ = "https://openminds.om-i.org/types/Visualization" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/workflow_execution.py b/fairgraph/openminds/v4/computation/workflow_execution.py index 437e9376..32789e1d 100644 --- a/fairgraph/openminds/v4/computation/workflow_execution.py +++ b/fairgraph/openminds/v4/computation/workflow_execution.py @@ -16,6 +16,7 @@ class WorkflowExecution(KGObject, OMWorkflowExecution): type_ = "https://openminds.om-i.org/types/WorkflowExecution" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("stages",) diff --git a/fairgraph/openminds/v4/computation/workflow_recipe.py b/fairgraph/openminds/v4/computation/workflow_recipe.py index 21e4160d..efa2325f 100644 --- a/fairgraph/openminds/v4/computation/workflow_recipe.py +++ b/fairgraph/openminds/v4/computation/workflow_recipe.py @@ -19,6 +19,7 @@ class WorkflowRecipe(KGObject, OMWorkflowRecipe): type_ = "https://openminds.om-i.org/types/WorkflowRecipe" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/workflow_recipe_version.py b/fairgraph/openminds/v4/computation/workflow_recipe_version.py index 542e2ff3..9aa63b59 100644 --- a/fairgraph/openminds/v4/computation/workflow_recipe_version.py +++ b/fairgraph/openminds/v4/computation/workflow_recipe_version.py @@ -20,6 +20,7 @@ class WorkflowRecipeVersion(KGObject, OMWorkflowRecipeVersion): type_ = "https://openminds.om-i.org/types/WorkflowRecipeVersion" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/action_status_type.py b/fairgraph/openminds/v4/controlled_terms/action_status_type.py index b05ee0b0..33a4c62b 100644 --- a/fairgraph/openminds/v4/controlled_terms/action_status_type.py +++ b/fairgraph/openminds/v4/controlled_terms/action_status_type.py @@ -19,6 +19,7 @@ class ActionStatusType(KGObject, OMActionStatusType): type_ = "https://openminds.om-i.org/types/ActionStatusType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/age_category.py b/fairgraph/openminds/v4/controlled_terms/age_category.py index f3041a70..f444aaa6 100644 --- a/fairgraph/openminds/v4/controlled_terms/age_category.py +++ b/fairgraph/openminds/v4/controlled_terms/age_category.py @@ -19,6 +19,7 @@ class AgeCategory(KGObject, OMAgeCategory): type_ = "https://openminds.om-i.org/types/AgeCategory" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/analysis_technique.py b/fairgraph/openminds/v4/controlled_terms/analysis_technique.py index b32d95a4..a84486fe 100644 --- a/fairgraph/openminds/v4/controlled_terms/analysis_technique.py +++ b/fairgraph/openminds/v4/controlled_terms/analysis_technique.py @@ -19,6 +19,7 @@ class AnalysisTechnique(KGObject, OMAnalysisTechnique): type_ = "https://openminds.om-i.org/types/AnalysisTechnique" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/anatomical_axes_orientation.py b/fairgraph/openminds/v4/controlled_terms/anatomical_axes_orientation.py index a23acfbd..90002df6 100644 --- a/fairgraph/openminds/v4/controlled_terms/anatomical_axes_orientation.py +++ b/fairgraph/openminds/v4/controlled_terms/anatomical_axes_orientation.py @@ -19,6 +19,7 @@ class AnatomicalAxesOrientation(KGObject, OMAnatomicalAxesOrientation): type_ = "https://openminds.om-i.org/types/AnatomicalAxesOrientation" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/anatomical_identification_type.py b/fairgraph/openminds/v4/controlled_terms/anatomical_identification_type.py index 27a054f3..31864363 100644 --- a/fairgraph/openminds/v4/controlled_terms/anatomical_identification_type.py +++ b/fairgraph/openminds/v4/controlled_terms/anatomical_identification_type.py @@ -19,6 +19,7 @@ class AnatomicalIdentificationType(KGObject, OMAnatomicalIdentificationType): type_ = "https://openminds.om-i.org/types/AnatomicalIdentificationType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/anatomical_plane.py b/fairgraph/openminds/v4/controlled_terms/anatomical_plane.py index 13a02915..84425d64 100644 --- a/fairgraph/openminds/v4/controlled_terms/anatomical_plane.py +++ b/fairgraph/openminds/v4/controlled_terms/anatomical_plane.py @@ -19,6 +19,7 @@ class AnatomicalPlane(KGObject, OMAnatomicalPlane): type_ = "https://openminds.om-i.org/types/AnatomicalPlane" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/annotation_criteria_type.py b/fairgraph/openminds/v4/controlled_terms/annotation_criteria_type.py index e80a9435..03cce7c5 100644 --- a/fairgraph/openminds/v4/controlled_terms/annotation_criteria_type.py +++ b/fairgraph/openminds/v4/controlled_terms/annotation_criteria_type.py @@ -19,6 +19,7 @@ class AnnotationCriteriaType(KGObject, OMAnnotationCriteriaType): type_ = "https://openminds.om-i.org/types/AnnotationCriteriaType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/annotation_type.py b/fairgraph/openminds/v4/controlled_terms/annotation_type.py index 6fc9faa6..9d752f28 100644 --- a/fairgraph/openminds/v4/controlled_terms/annotation_type.py +++ b/fairgraph/openminds/v4/controlled_terms/annotation_type.py @@ -19,6 +19,7 @@ class AnnotationType(KGObject, OMAnnotationType): type_ = "https://openminds.om-i.org/types/AnnotationType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/atlas_type.py b/fairgraph/openminds/v4/controlled_terms/atlas_type.py index 5a85f6ea..48b8ee6e 100644 --- a/fairgraph/openminds/v4/controlled_terms/atlas_type.py +++ b/fairgraph/openminds/v4/controlled_terms/atlas_type.py @@ -19,6 +19,7 @@ class AtlasType(KGObject, OMAtlasType): type_ = "https://openminds.om-i.org/types/AtlasType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/auditory_stimulus_type.py b/fairgraph/openminds/v4/controlled_terms/auditory_stimulus_type.py index dc3cb813..b174795c 100644 --- a/fairgraph/openminds/v4/controlled_terms/auditory_stimulus_type.py +++ b/fairgraph/openminds/v4/controlled_terms/auditory_stimulus_type.py @@ -19,6 +19,7 @@ class AuditoryStimulusType(KGObject, OMAuditoryStimulusType): type_ = "https://openminds.om-i.org/types/AuditoryStimulusType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/biological_order.py b/fairgraph/openminds/v4/controlled_terms/biological_order.py index 11b60969..fbb283a0 100644 --- a/fairgraph/openminds/v4/controlled_terms/biological_order.py +++ b/fairgraph/openminds/v4/controlled_terms/biological_order.py @@ -19,6 +19,7 @@ class BiologicalOrder(KGObject, OMBiologicalOrder): type_ = "https://openminds.om-i.org/types/BiologicalOrder" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/biological_process.py b/fairgraph/openminds/v4/controlled_terms/biological_process.py index fa51d332..6aeda105 100644 --- a/fairgraph/openminds/v4/controlled_terms/biological_process.py +++ b/fairgraph/openminds/v4/controlled_terms/biological_process.py @@ -19,6 +19,7 @@ class BiologicalProcess(KGObject, OMBiologicalProcess): type_ = "https://openminds.om-i.org/types/BiologicalProcess" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/biological_sex.py b/fairgraph/openminds/v4/controlled_terms/biological_sex.py index 9f201df9..78addedb 100644 --- a/fairgraph/openminds/v4/controlled_terms/biological_sex.py +++ b/fairgraph/openminds/v4/controlled_terms/biological_sex.py @@ -19,6 +19,7 @@ class BiologicalSex(KGObject, OMBiologicalSex): type_ = "https://openminds.om-i.org/types/BiologicalSex" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/breeding_type.py b/fairgraph/openminds/v4/controlled_terms/breeding_type.py index 59619ee3..a5ccaeb4 100644 --- a/fairgraph/openminds/v4/controlled_terms/breeding_type.py +++ b/fairgraph/openminds/v4/controlled_terms/breeding_type.py @@ -19,6 +19,7 @@ class BreedingType(KGObject, OMBreedingType): type_ = "https://openminds.om-i.org/types/BreedingType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/cell_culture_type.py b/fairgraph/openminds/v4/controlled_terms/cell_culture_type.py index de8c5ce5..062618cc 100644 --- a/fairgraph/openminds/v4/controlled_terms/cell_culture_type.py +++ b/fairgraph/openminds/v4/controlled_terms/cell_culture_type.py @@ -19,6 +19,7 @@ class CellCultureType(KGObject, OMCellCultureType): type_ = "https://openminds.om-i.org/types/CellCultureType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/cell_type.py b/fairgraph/openminds/v4/controlled_terms/cell_type.py index fcfc8aa9..59dd0f95 100644 --- a/fairgraph/openminds/v4/controlled_terms/cell_type.py +++ b/fairgraph/openminds/v4/controlled_terms/cell_type.py @@ -19,6 +19,7 @@ class CellType(KGObject, OMCellType): type_ = "https://openminds.om-i.org/types/CellType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/chemical_mixture_type.py b/fairgraph/openminds/v4/controlled_terms/chemical_mixture_type.py index ae8c857d..db827df3 100644 --- a/fairgraph/openminds/v4/controlled_terms/chemical_mixture_type.py +++ b/fairgraph/openminds/v4/controlled_terms/chemical_mixture_type.py @@ -19,6 +19,7 @@ class ChemicalMixtureType(KGObject, OMChemicalMixtureType): type_ = "https://openminds.om-i.org/types/ChemicalMixtureType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/colormap.py b/fairgraph/openminds/v4/controlled_terms/colormap.py index 96eaef14..7e719659 100644 --- a/fairgraph/openminds/v4/controlled_terms/colormap.py +++ b/fairgraph/openminds/v4/controlled_terms/colormap.py @@ -19,6 +19,7 @@ class Colormap(KGObject, OMColormap): type_ = "https://openminds.om-i.org/types/Colormap" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/contribution_type.py b/fairgraph/openminds/v4/controlled_terms/contribution_type.py index 999a3d19..51cce91a 100644 --- a/fairgraph/openminds/v4/controlled_terms/contribution_type.py +++ b/fairgraph/openminds/v4/controlled_terms/contribution_type.py @@ -19,6 +19,7 @@ class ContributionType(KGObject, OMContributionType): type_ = "https://openminds.om-i.org/types/ContributionType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/cranial_window_construction_type.py b/fairgraph/openminds/v4/controlled_terms/cranial_window_construction_type.py index b3797597..de4ee8aa 100644 --- a/fairgraph/openminds/v4/controlled_terms/cranial_window_construction_type.py +++ b/fairgraph/openminds/v4/controlled_terms/cranial_window_construction_type.py @@ -19,6 +19,7 @@ class CranialWindowConstructionType(KGObject, OMCranialWindowConstructionType): type_ = "https://openminds.om-i.org/types/CranialWindowConstructionType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/cranial_window_reinforcement_type.py b/fairgraph/openminds/v4/controlled_terms/cranial_window_reinforcement_type.py index bc651abb..2a2cd342 100644 --- a/fairgraph/openminds/v4/controlled_terms/cranial_window_reinforcement_type.py +++ b/fairgraph/openminds/v4/controlled_terms/cranial_window_reinforcement_type.py @@ -19,6 +19,7 @@ class CranialWindowReinforcementType(KGObject, OMCranialWindowReinforcementType) type_ = "https://openminds.om-i.org/types/CranialWindowReinforcementType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/criteria_quality_type.py b/fairgraph/openminds/v4/controlled_terms/criteria_quality_type.py index 25d7988a..9a93d33d 100644 --- a/fairgraph/openminds/v4/controlled_terms/criteria_quality_type.py +++ b/fairgraph/openminds/v4/controlled_terms/criteria_quality_type.py @@ -19,6 +19,7 @@ class CriteriaQualityType(KGObject, OMCriteriaQualityType): type_ = "https://openminds.om-i.org/types/CriteriaQualityType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/data_type.py b/fairgraph/openminds/v4/controlled_terms/data_type.py index 7ce79715..a0117a9f 100644 --- a/fairgraph/openminds/v4/controlled_terms/data_type.py +++ b/fairgraph/openminds/v4/controlled_terms/data_type.py @@ -19,6 +19,7 @@ class DataType(KGObject, OMDataType): type_ = "https://openminds.om-i.org/types/DataType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/device_type.py b/fairgraph/openminds/v4/controlled_terms/device_type.py index b0a24d06..117b7cc1 100644 --- a/fairgraph/openminds/v4/controlled_terms/device_type.py +++ b/fairgraph/openminds/v4/controlled_terms/device_type.py @@ -19,6 +19,7 @@ class DeviceType(KGObject, OMDeviceType): type_ = "https://openminds.om-i.org/types/DeviceType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/difference_measure.py b/fairgraph/openminds/v4/controlled_terms/difference_measure.py index afcb03cd..e8ae4cdf 100644 --- a/fairgraph/openminds/v4/controlled_terms/difference_measure.py +++ b/fairgraph/openminds/v4/controlled_terms/difference_measure.py @@ -19,6 +19,7 @@ class DifferenceMeasure(KGObject, OMDifferenceMeasure): type_ = "https://openminds.om-i.org/types/DifferenceMeasure" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/disease.py b/fairgraph/openminds/v4/controlled_terms/disease.py index eeb2b105..ec54b1c1 100644 --- a/fairgraph/openminds/v4/controlled_terms/disease.py +++ b/fairgraph/openminds/v4/controlled_terms/disease.py @@ -19,6 +19,7 @@ class Disease(KGObject, OMDisease): type_ = "https://openminds.om-i.org/types/Disease" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/disease_model.py b/fairgraph/openminds/v4/controlled_terms/disease_model.py index 391753f7..3d926dc3 100644 --- a/fairgraph/openminds/v4/controlled_terms/disease_model.py +++ b/fairgraph/openminds/v4/controlled_terms/disease_model.py @@ -19,6 +19,7 @@ class DiseaseModel(KGObject, OMDiseaseModel): type_ = "https://openminds.om-i.org/types/DiseaseModel" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/educational_level.py b/fairgraph/openminds/v4/controlled_terms/educational_level.py index f9769a2d..b8afa1e8 100644 --- a/fairgraph/openminds/v4/controlled_terms/educational_level.py +++ b/fairgraph/openminds/v4/controlled_terms/educational_level.py @@ -19,6 +19,7 @@ class EducationalLevel(KGObject, OMEducationalLevel): type_ = "https://openminds.om-i.org/types/EducationalLevel" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/electrical_stimulus_type.py b/fairgraph/openminds/v4/controlled_terms/electrical_stimulus_type.py index 67a2e4bf..ea455dd6 100644 --- a/fairgraph/openminds/v4/controlled_terms/electrical_stimulus_type.py +++ b/fairgraph/openminds/v4/controlled_terms/electrical_stimulus_type.py @@ -19,6 +19,7 @@ class ElectricalStimulusType(KGObject, OMElectricalStimulusType): type_ = "https://openminds.om-i.org/types/ElectricalStimulusType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/ethics_assessment.py b/fairgraph/openminds/v4/controlled_terms/ethics_assessment.py index fe12b1f9..9e87644f 100644 --- a/fairgraph/openminds/v4/controlled_terms/ethics_assessment.py +++ b/fairgraph/openminds/v4/controlled_terms/ethics_assessment.py @@ -19,6 +19,7 @@ class EthicsAssessment(KGObject, OMEthicsAssessment): type_ = "https://openminds.om-i.org/types/EthicsAssessment" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/experimental_approach.py b/fairgraph/openminds/v4/controlled_terms/experimental_approach.py index 1c649b42..25d612cd 100644 --- a/fairgraph/openminds/v4/controlled_terms/experimental_approach.py +++ b/fairgraph/openminds/v4/controlled_terms/experimental_approach.py @@ -19,6 +19,7 @@ class ExperimentalApproach(KGObject, OMExperimentalApproach): type_ = "https://openminds.om-i.org/types/ExperimentalApproach" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/file_bundle_grouping.py b/fairgraph/openminds/v4/controlled_terms/file_bundle_grouping.py index 5a19c745..ee4f542f 100644 --- a/fairgraph/openminds/v4/controlled_terms/file_bundle_grouping.py +++ b/fairgraph/openminds/v4/controlled_terms/file_bundle_grouping.py @@ -19,6 +19,7 @@ class FileBundleGrouping(KGObject, OMFileBundleGrouping): type_ = "https://openminds.om-i.org/types/FileBundleGrouping" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/file_repository_type.py b/fairgraph/openminds/v4/controlled_terms/file_repository_type.py index f84569da..7ea9754b 100644 --- a/fairgraph/openminds/v4/controlled_terms/file_repository_type.py +++ b/fairgraph/openminds/v4/controlled_terms/file_repository_type.py @@ -19,6 +19,7 @@ class FileRepositoryType(KGObject, OMFileRepositoryType): type_ = "https://openminds.om-i.org/types/FileRepositoryType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/file_usage_role.py b/fairgraph/openminds/v4/controlled_terms/file_usage_role.py index 826cc9f6..01cf9827 100644 --- a/fairgraph/openminds/v4/controlled_terms/file_usage_role.py +++ b/fairgraph/openminds/v4/controlled_terms/file_usage_role.py @@ -19,6 +19,7 @@ class FileUsageRole(KGObject, OMFileUsageRole): type_ = "https://openminds.om-i.org/types/FileUsageRole" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/genetic_strain_type.py b/fairgraph/openminds/v4/controlled_terms/genetic_strain_type.py index 5fcd8794..8866119a 100644 --- a/fairgraph/openminds/v4/controlled_terms/genetic_strain_type.py +++ b/fairgraph/openminds/v4/controlled_terms/genetic_strain_type.py @@ -19,6 +19,7 @@ class GeneticStrainType(KGObject, OMGeneticStrainType): type_ = "https://openminds.om-i.org/types/GeneticStrainType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/gustatory_stimulus_type.py b/fairgraph/openminds/v4/controlled_terms/gustatory_stimulus_type.py index 26f784fd..471ef62d 100644 --- a/fairgraph/openminds/v4/controlled_terms/gustatory_stimulus_type.py +++ b/fairgraph/openminds/v4/controlled_terms/gustatory_stimulus_type.py @@ -19,6 +19,7 @@ class GustatoryStimulusType(KGObject, OMGustatoryStimulusType): type_ = "https://openminds.om-i.org/types/GustatoryStimulusType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/handedness.py b/fairgraph/openminds/v4/controlled_terms/handedness.py index 83398ce7..203a6052 100644 --- a/fairgraph/openminds/v4/controlled_terms/handedness.py +++ b/fairgraph/openminds/v4/controlled_terms/handedness.py @@ -19,6 +19,7 @@ class Handedness(KGObject, OMHandedness): type_ = "https://openminds.om-i.org/types/Handedness" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/language.py b/fairgraph/openminds/v4/controlled_terms/language.py index 3758eb4b..5e25cfc9 100644 --- a/fairgraph/openminds/v4/controlled_terms/language.py +++ b/fairgraph/openminds/v4/controlled_terms/language.py @@ -19,6 +19,7 @@ class Language(KGObject, OMLanguage): type_ = "https://openminds.om-i.org/types/Language" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/laterality.py b/fairgraph/openminds/v4/controlled_terms/laterality.py index 8e480cad..92042f43 100644 --- a/fairgraph/openminds/v4/controlled_terms/laterality.py +++ b/fairgraph/openminds/v4/controlled_terms/laterality.py @@ -19,6 +19,7 @@ class Laterality(KGObject, OMLaterality): type_ = "https://openminds.om-i.org/types/Laterality" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/learning_resource_type.py b/fairgraph/openminds/v4/controlled_terms/learning_resource_type.py index 0d79d343..ea8d629e 100644 --- a/fairgraph/openminds/v4/controlled_terms/learning_resource_type.py +++ b/fairgraph/openminds/v4/controlled_terms/learning_resource_type.py @@ -19,6 +19,7 @@ class LearningResourceType(KGObject, OMLearningResourceType): type_ = "https://openminds.om-i.org/types/LearningResourceType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/measured_quantity.py b/fairgraph/openminds/v4/controlled_terms/measured_quantity.py index 88aff737..e239e413 100644 --- a/fairgraph/openminds/v4/controlled_terms/measured_quantity.py +++ b/fairgraph/openminds/v4/controlled_terms/measured_quantity.py @@ -19,6 +19,7 @@ class MeasuredQuantity(KGObject, OMMeasuredQuantity): type_ = "https://openminds.om-i.org/types/MeasuredQuantity" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/measured_signal_type.py b/fairgraph/openminds/v4/controlled_terms/measured_signal_type.py index e55ac4fe..d3d3b2ec 100644 --- a/fairgraph/openminds/v4/controlled_terms/measured_signal_type.py +++ b/fairgraph/openminds/v4/controlled_terms/measured_signal_type.py @@ -19,6 +19,7 @@ class MeasuredSignalType(KGObject, OMMeasuredSignalType): type_ = "https://openminds.om-i.org/types/MeasuredSignalType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/meta_data_model_type.py b/fairgraph/openminds/v4/controlled_terms/meta_data_model_type.py index ebd74308..6a3c7748 100644 --- a/fairgraph/openminds/v4/controlled_terms/meta_data_model_type.py +++ b/fairgraph/openminds/v4/controlled_terms/meta_data_model_type.py @@ -19,6 +19,7 @@ class MetaDataModelType(KGObject, OMMetaDataModelType): type_ = "https://openminds.om-i.org/types/MetaDataModelType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/model_abstraction_level.py b/fairgraph/openminds/v4/controlled_terms/model_abstraction_level.py index d5a732e6..f37a0623 100644 --- a/fairgraph/openminds/v4/controlled_terms/model_abstraction_level.py +++ b/fairgraph/openminds/v4/controlled_terms/model_abstraction_level.py @@ -19,6 +19,7 @@ class ModelAbstractionLevel(KGObject, OMModelAbstractionLevel): type_ = "https://openminds.om-i.org/types/ModelAbstractionLevel" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/model_scope.py b/fairgraph/openminds/v4/controlled_terms/model_scope.py index fb4b21af..228972ea 100644 --- a/fairgraph/openminds/v4/controlled_terms/model_scope.py +++ b/fairgraph/openminds/v4/controlled_terms/model_scope.py @@ -19,6 +19,7 @@ class ModelScope(KGObject, OMModelScope): type_ = "https://openminds.om-i.org/types/ModelScope" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/molecular_entity.py b/fairgraph/openminds/v4/controlled_terms/molecular_entity.py index 2fe40a1b..1d9aa3cc 100644 --- a/fairgraph/openminds/v4/controlled_terms/molecular_entity.py +++ b/fairgraph/openminds/v4/controlled_terms/molecular_entity.py @@ -19,6 +19,7 @@ class MolecularEntity(KGObject, OMMolecularEntity): type_ = "https://openminds.om-i.org/types/MolecularEntity" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/mri_pulse_sequence.py b/fairgraph/openminds/v4/controlled_terms/mri_pulse_sequence.py index 971e7872..f3edb0a4 100644 --- a/fairgraph/openminds/v4/controlled_terms/mri_pulse_sequence.py +++ b/fairgraph/openminds/v4/controlled_terms/mri_pulse_sequence.py @@ -19,6 +19,7 @@ class MRIPulseSequence(KGObject, OMMRIPulseSequence): type_ = "https://openminds.om-i.org/types/MRIPulseSequence" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/mri_weighting.py b/fairgraph/openminds/v4/controlled_terms/mri_weighting.py index 5fcb8dc0..841d307f 100644 --- a/fairgraph/openminds/v4/controlled_terms/mri_weighting.py +++ b/fairgraph/openminds/v4/controlled_terms/mri_weighting.py @@ -19,6 +19,7 @@ class MRIWeighting(KGObject, OMMRIWeighting): type_ = "https://openminds.om-i.org/types/MRIWeighting" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/olfactory_stimulus_type.py b/fairgraph/openminds/v4/controlled_terms/olfactory_stimulus_type.py index 6e039052..43f5b422 100644 --- a/fairgraph/openminds/v4/controlled_terms/olfactory_stimulus_type.py +++ b/fairgraph/openminds/v4/controlled_terms/olfactory_stimulus_type.py @@ -19,6 +19,7 @@ class OlfactoryStimulusType(KGObject, OMOlfactoryStimulusType): type_ = "https://openminds.om-i.org/types/OlfactoryStimulusType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/operating_device.py b/fairgraph/openminds/v4/controlled_terms/operating_device.py index b23ab67f..0daa58e1 100644 --- a/fairgraph/openminds/v4/controlled_terms/operating_device.py +++ b/fairgraph/openminds/v4/controlled_terms/operating_device.py @@ -19,6 +19,7 @@ class OperatingDevice(KGObject, OMOperatingDevice): type_ = "https://openminds.om-i.org/types/OperatingDevice" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/operating_system.py b/fairgraph/openminds/v4/controlled_terms/operating_system.py index d6271ca0..6bfc3c83 100644 --- a/fairgraph/openminds/v4/controlled_terms/operating_system.py +++ b/fairgraph/openminds/v4/controlled_terms/operating_system.py @@ -19,6 +19,7 @@ class OperatingSystem(KGObject, OMOperatingSystem): type_ = "https://openminds.om-i.org/types/OperatingSystem" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/optical_stimulus_type.py b/fairgraph/openminds/v4/controlled_terms/optical_stimulus_type.py index 85fde1dc..0ed9427e 100644 --- a/fairgraph/openminds/v4/controlled_terms/optical_stimulus_type.py +++ b/fairgraph/openminds/v4/controlled_terms/optical_stimulus_type.py @@ -19,6 +19,7 @@ class OpticalStimulusType(KGObject, OMOpticalStimulusType): type_ = "https://openminds.om-i.org/types/OpticalStimulusType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/organ.py b/fairgraph/openminds/v4/controlled_terms/organ.py index 5af3cfc9..cc29a40b 100644 --- a/fairgraph/openminds/v4/controlled_terms/organ.py +++ b/fairgraph/openminds/v4/controlled_terms/organ.py @@ -19,6 +19,7 @@ class Organ(KGObject, OMOrgan): type_ = "https://openminds.om-i.org/types/Organ" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/organism_substance.py b/fairgraph/openminds/v4/controlled_terms/organism_substance.py index 0aeb94c2..afe6a1eb 100644 --- a/fairgraph/openminds/v4/controlled_terms/organism_substance.py +++ b/fairgraph/openminds/v4/controlled_terms/organism_substance.py @@ -19,6 +19,7 @@ class OrganismSubstance(KGObject, OMOrganismSubstance): type_ = "https://openminds.om-i.org/types/OrganismSubstance" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/organism_system.py b/fairgraph/openminds/v4/controlled_terms/organism_system.py index 5c993465..e6db4ebc 100644 --- a/fairgraph/openminds/v4/controlled_terms/organism_system.py +++ b/fairgraph/openminds/v4/controlled_terms/organism_system.py @@ -19,6 +19,7 @@ class OrganismSystem(KGObject, OMOrganismSystem): type_ = "https://openminds.om-i.org/types/OrganismSystem" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/patch_clamp_variation.py b/fairgraph/openminds/v4/controlled_terms/patch_clamp_variation.py index ec0959e7..da4104b6 100644 --- a/fairgraph/openminds/v4/controlled_terms/patch_clamp_variation.py +++ b/fairgraph/openminds/v4/controlled_terms/patch_clamp_variation.py @@ -19,6 +19,7 @@ class PatchClampVariation(KGObject, OMPatchClampVariation): type_ = "https://openminds.om-i.org/types/PatchClampVariation" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/preparation_type.py b/fairgraph/openminds/v4/controlled_terms/preparation_type.py index 7bad5a3a..a77e5d9e 100644 --- a/fairgraph/openminds/v4/controlled_terms/preparation_type.py +++ b/fairgraph/openminds/v4/controlled_terms/preparation_type.py @@ -19,6 +19,7 @@ class PreparationType(KGObject, OMPreparationType): type_ = "https://openminds.om-i.org/types/PreparationType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/product_accessibility.py b/fairgraph/openminds/v4/controlled_terms/product_accessibility.py index c4c03090..8a644ac0 100644 --- a/fairgraph/openminds/v4/controlled_terms/product_accessibility.py +++ b/fairgraph/openminds/v4/controlled_terms/product_accessibility.py @@ -19,6 +19,7 @@ class ProductAccessibility(KGObject, OMProductAccessibility): type_ = "https://openminds.om-i.org/types/ProductAccessibility" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/programming_language.py b/fairgraph/openminds/v4/controlled_terms/programming_language.py index ebc975b6..736f10d4 100644 --- a/fairgraph/openminds/v4/controlled_terms/programming_language.py +++ b/fairgraph/openminds/v4/controlled_terms/programming_language.py @@ -19,6 +19,7 @@ class ProgrammingLanguage(KGObject, OMProgrammingLanguage): type_ = "https://openminds.om-i.org/types/ProgrammingLanguage" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/qualitative_overlap.py b/fairgraph/openminds/v4/controlled_terms/qualitative_overlap.py index 5a04c0a3..272c93ce 100644 --- a/fairgraph/openminds/v4/controlled_terms/qualitative_overlap.py +++ b/fairgraph/openminds/v4/controlled_terms/qualitative_overlap.py @@ -19,6 +19,7 @@ class QualitativeOverlap(KGObject, OMQualitativeOverlap): type_ = "https://openminds.om-i.org/types/QualitativeOverlap" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/semantic_data_type.py b/fairgraph/openminds/v4/controlled_terms/semantic_data_type.py index 19648add..fe89f6ca 100644 --- a/fairgraph/openminds/v4/controlled_terms/semantic_data_type.py +++ b/fairgraph/openminds/v4/controlled_terms/semantic_data_type.py @@ -19,6 +19,7 @@ class SemanticDataType(KGObject, OMSemanticDataType): type_ = "https://openminds.om-i.org/types/SemanticDataType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/service.py b/fairgraph/openminds/v4/controlled_terms/service.py index 9180fd13..c0ab106f 100644 --- a/fairgraph/openminds/v4/controlled_terms/service.py +++ b/fairgraph/openminds/v4/controlled_terms/service.py @@ -19,6 +19,7 @@ class Service(KGObject, OMService): type_ = "https://openminds.om-i.org/types/Service" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/setup_type.py b/fairgraph/openminds/v4/controlled_terms/setup_type.py index 7a350ffb..ee4bfa26 100644 --- a/fairgraph/openminds/v4/controlled_terms/setup_type.py +++ b/fairgraph/openminds/v4/controlled_terms/setup_type.py @@ -19,6 +19,7 @@ class SetupType(KGObject, OMSetupType): type_ = "https://openminds.om-i.org/types/SetupType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/software_application_category.py b/fairgraph/openminds/v4/controlled_terms/software_application_category.py index 496320de..7c2feb84 100644 --- a/fairgraph/openminds/v4/controlled_terms/software_application_category.py +++ b/fairgraph/openminds/v4/controlled_terms/software_application_category.py @@ -19,6 +19,7 @@ class SoftwareApplicationCategory(KGObject, OMSoftwareApplicationCategory): type_ = "https://openminds.om-i.org/types/SoftwareApplicationCategory" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/software_feature.py b/fairgraph/openminds/v4/controlled_terms/software_feature.py index 78f700c7..2a63f593 100644 --- a/fairgraph/openminds/v4/controlled_terms/software_feature.py +++ b/fairgraph/openminds/v4/controlled_terms/software_feature.py @@ -19,6 +19,7 @@ class SoftwareFeature(KGObject, OMSoftwareFeature): type_ = "https://openminds.om-i.org/types/SoftwareFeature" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/species.py b/fairgraph/openminds/v4/controlled_terms/species.py index 85330c6c..dfd40377 100644 --- a/fairgraph/openminds/v4/controlled_terms/species.py +++ b/fairgraph/openminds/v4/controlled_terms/species.py @@ -19,6 +19,7 @@ class Species(KGObject, OMSpecies): type_ = "https://openminds.om-i.org/types/Species" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/stimulation_approach.py b/fairgraph/openminds/v4/controlled_terms/stimulation_approach.py index 73cedf0d..526e58e0 100644 --- a/fairgraph/openminds/v4/controlled_terms/stimulation_approach.py +++ b/fairgraph/openminds/v4/controlled_terms/stimulation_approach.py @@ -19,6 +19,7 @@ class StimulationApproach(KGObject, OMStimulationApproach): type_ = "https://openminds.om-i.org/types/StimulationApproach" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/stimulation_technique.py b/fairgraph/openminds/v4/controlled_terms/stimulation_technique.py index 78a9aabb..e5fc2cfc 100644 --- a/fairgraph/openminds/v4/controlled_terms/stimulation_technique.py +++ b/fairgraph/openminds/v4/controlled_terms/stimulation_technique.py @@ -19,6 +19,7 @@ class StimulationTechnique(KGObject, OMStimulationTechnique): type_ = "https://openminds.om-i.org/types/StimulationTechnique" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/subcellular_entity.py b/fairgraph/openminds/v4/controlled_terms/subcellular_entity.py index 3245a0fe..645009dc 100644 --- a/fairgraph/openminds/v4/controlled_terms/subcellular_entity.py +++ b/fairgraph/openminds/v4/controlled_terms/subcellular_entity.py @@ -19,6 +19,7 @@ class SubcellularEntity(KGObject, OMSubcellularEntity): type_ = "https://openminds.om-i.org/types/SubcellularEntity" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/subject_attribute.py b/fairgraph/openminds/v4/controlled_terms/subject_attribute.py index 75c1887d..762bb9cc 100644 --- a/fairgraph/openminds/v4/controlled_terms/subject_attribute.py +++ b/fairgraph/openminds/v4/controlled_terms/subject_attribute.py @@ -19,6 +19,7 @@ class SubjectAttribute(KGObject, OMSubjectAttribute): type_ = "https://openminds.om-i.org/types/SubjectAttribute" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/tactile_stimulus_type.py b/fairgraph/openminds/v4/controlled_terms/tactile_stimulus_type.py index d5173678..1af92b5a 100644 --- a/fairgraph/openminds/v4/controlled_terms/tactile_stimulus_type.py +++ b/fairgraph/openminds/v4/controlled_terms/tactile_stimulus_type.py @@ -19,6 +19,7 @@ class TactileStimulusType(KGObject, OMTactileStimulusType): type_ = "https://openminds.om-i.org/types/TactileStimulusType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/technique.py b/fairgraph/openminds/v4/controlled_terms/technique.py index 7b9a6825..78935a3f 100644 --- a/fairgraph/openminds/v4/controlled_terms/technique.py +++ b/fairgraph/openminds/v4/controlled_terms/technique.py @@ -19,6 +19,7 @@ class Technique(KGObject, OMTechnique): type_ = "https://openminds.om-i.org/types/Technique" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/term_suggestion.py b/fairgraph/openminds/v4/controlled_terms/term_suggestion.py index 53d7a532..bfcce47f 100644 --- a/fairgraph/openminds/v4/controlled_terms/term_suggestion.py +++ b/fairgraph/openminds/v4/controlled_terms/term_suggestion.py @@ -19,6 +19,7 @@ class TermSuggestion(KGObject, OMTermSuggestion): type_ = "https://openminds.om-i.org/types/TermSuggestion" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/terminology.py b/fairgraph/openminds/v4/controlled_terms/terminology.py index a274374f..e9156b01 100644 --- a/fairgraph/openminds/v4/controlled_terms/terminology.py +++ b/fairgraph/openminds/v4/controlled_terms/terminology.py @@ -19,6 +19,7 @@ class Terminology(KGObject, OMTerminology): type_ = "https://openminds.om-i.org/types/Terminology" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/tissue_sample_attribute.py b/fairgraph/openminds/v4/controlled_terms/tissue_sample_attribute.py index b671fd08..a91ece67 100644 --- a/fairgraph/openminds/v4/controlled_terms/tissue_sample_attribute.py +++ b/fairgraph/openminds/v4/controlled_terms/tissue_sample_attribute.py @@ -19,6 +19,7 @@ class TissueSampleAttribute(KGObject, OMTissueSampleAttribute): type_ = "https://openminds.om-i.org/types/TissueSampleAttribute" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/tissue_sample_type.py b/fairgraph/openminds/v4/controlled_terms/tissue_sample_type.py index 4eda40e9..e98c6512 100644 --- a/fairgraph/openminds/v4/controlled_terms/tissue_sample_type.py +++ b/fairgraph/openminds/v4/controlled_terms/tissue_sample_type.py @@ -19,6 +19,7 @@ class TissueSampleType(KGObject, OMTissueSampleType): type_ = "https://openminds.om-i.org/types/TissueSampleType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/type_of_uncertainty.py b/fairgraph/openminds/v4/controlled_terms/type_of_uncertainty.py index 8bd3658b..c6ff955e 100644 --- a/fairgraph/openminds/v4/controlled_terms/type_of_uncertainty.py +++ b/fairgraph/openminds/v4/controlled_terms/type_of_uncertainty.py @@ -19,6 +19,7 @@ class TypeOfUncertainty(KGObject, OMTypeOfUncertainty): type_ = "https://openminds.om-i.org/types/TypeOfUncertainty" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/uberon_parcellation.py b/fairgraph/openminds/v4/controlled_terms/uberon_parcellation.py index aa5a5962..a637f756 100644 --- a/fairgraph/openminds/v4/controlled_terms/uberon_parcellation.py +++ b/fairgraph/openminds/v4/controlled_terms/uberon_parcellation.py @@ -19,6 +19,7 @@ class UBERONParcellation(KGObject, OMUBERONParcellation): type_ = "https://openminds.om-i.org/types/UBERONParcellation" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/unit_of_measurement.py b/fairgraph/openminds/v4/controlled_terms/unit_of_measurement.py index a497902c..75507cf4 100644 --- a/fairgraph/openminds/v4/controlled_terms/unit_of_measurement.py +++ b/fairgraph/openminds/v4/controlled_terms/unit_of_measurement.py @@ -19,6 +19,7 @@ class UnitOfMeasurement(KGObject, OMUnitOfMeasurement): type_ = "https://openminds.om-i.org/types/UnitOfMeasurement" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/visual_stimulus_type.py b/fairgraph/openminds/v4/controlled_terms/visual_stimulus_type.py index b3c0646a..1170cb69 100644 --- a/fairgraph/openminds/v4/controlled_terms/visual_stimulus_type.py +++ b/fairgraph/openminds/v4/controlled_terms/visual_stimulus_type.py @@ -19,6 +19,7 @@ class VisualStimulusType(KGObject, OMVisualStimulusType): type_ = "https://openminds.om-i.org/types/VisualStimulusType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/actors/account_information.py b/fairgraph/openminds/v4/core/actors/account_information.py index 34ea4d7a..083d9994 100644 --- a/fairgraph/openminds/v4/core/actors/account_information.py +++ b/fairgraph/openminds/v4/core/actors/account_information.py @@ -16,6 +16,7 @@ class AccountInformation(KGObject, OMAccountInformation): type_ = "https://openminds.om-i.org/types/AccountInformation" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/actors/affiliation.py b/fairgraph/openminds/v4/core/actors/affiliation.py index 2a6539fc..4493e69a 100644 --- a/fairgraph/openminds/v4/core/actors/affiliation.py +++ b/fairgraph/openminds/v4/core/actors/affiliation.py @@ -18,6 +18,7 @@ class Affiliation(KGEmbedded, OMAffiliation): """ type_ = "https://openminds.om-i.org/types/Affiliation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("member_of",) diff --git a/fairgraph/openminds/v4/core/actors/consortium.py b/fairgraph/openminds/v4/core/actors/consortium.py index 2a6164f8..95ffa048 100644 --- a/fairgraph/openminds/v4/core/actors/consortium.py +++ b/fairgraph/openminds/v4/core/actors/consortium.py @@ -19,6 +19,7 @@ class Consortium(KGObject, OMConsortium): type_ = "https://openminds.om-i.org/types/Consortium" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/actors/contact_information.py b/fairgraph/openminds/v4/core/actors/contact_information.py index 167389e8..f9a8606e 100644 --- a/fairgraph/openminds/v4/core/actors/contact_information.py +++ b/fairgraph/openminds/v4/core/actors/contact_information.py @@ -16,6 +16,7 @@ class ContactInformation(KGObject, OMContactInformation): type_ = "https://openminds.om-i.org/types/ContactInformation" default_space = "restricted" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/actors/contribution.py b/fairgraph/openminds/v4/core/actors/contribution.py index 71d9c3d5..7fc138d4 100644 --- a/fairgraph/openminds/v4/core/actors/contribution.py +++ b/fairgraph/openminds/v4/core/actors/contribution.py @@ -15,6 +15,7 @@ class Contribution(KGEmbedded, OMContribution): """ type_ = "https://openminds.om-i.org/types/Contribution" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("contributor", "types") diff --git a/fairgraph/openminds/v4/core/actors/organization.py b/fairgraph/openminds/v4/core/actors/organization.py index 6cd6d54a..de2d2103 100644 --- a/fairgraph/openminds/v4/core/actors/organization.py +++ b/fairgraph/openminds/v4/core/actors/organization.py @@ -19,6 +19,7 @@ class Organization(KGObject, OMOrganization): type_ = "https://openminds.om-i.org/types/Organization" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/actors/person.py b/fairgraph/openminds/v4/core/actors/person.py index 2e1f0689..ad49a565 100644 --- a/fairgraph/openminds/v4/core/actors/person.py +++ b/fairgraph/openminds/v4/core/actors/person.py @@ -16,6 +16,7 @@ class Person(KGObject, OMPerson): type_ = "https://openminds.om-i.org/types/Person" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/data/content_type.py b/fairgraph/openminds/v4/core/data/content_type.py index 6d50b874..827218db 100644 --- a/fairgraph/openminds/v4/core/data/content_type.py +++ b/fairgraph/openminds/v4/core/data/content_type.py @@ -19,6 +19,7 @@ class ContentType(KGObject, OMContentType): type_ = "https://openminds.om-i.org/types/ContentType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/data/content_type_pattern.py b/fairgraph/openminds/v4/core/data/content_type_pattern.py index 0f650049..f38f253d 100644 --- a/fairgraph/openminds/v4/core/data/content_type_pattern.py +++ b/fairgraph/openminds/v4/core/data/content_type_pattern.py @@ -16,6 +16,7 @@ class ContentTypePattern(KGObject, OMContentTypePattern): type_ = "https://openminds.om-i.org/types/ContentTypePattern" default_space = "files" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/data/copyright.py b/fairgraph/openminds/v4/core/data/copyright.py index fdf8a422..f45f4036 100644 --- a/fairgraph/openminds/v4/core/data/copyright.py +++ b/fairgraph/openminds/v4/core/data/copyright.py @@ -15,6 +15,7 @@ class Copyright(KGEmbedded, OMCopyright): """ type_ = "https://openminds.om-i.org/types/Copyright" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("holders", "years") diff --git a/fairgraph/openminds/v4/core/data/file.py b/fairgraph/openminds/v4/core/data/file.py index 41f1a59a..ad6e34e6 100644 --- a/fairgraph/openminds/v4/core/data/file.py +++ b/fairgraph/openminds/v4/core/data/file.py @@ -30,6 +30,7 @@ class File(KGObject, OMFile): type_ = "https://openminds.om-i.org/types/File" default_space = "files" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/data/file_archive.py b/fairgraph/openminds/v4/core/data/file_archive.py index e3813231..e8fdb633 100644 --- a/fairgraph/openminds/v4/core/data/file_archive.py +++ b/fairgraph/openminds/v4/core/data/file_archive.py @@ -19,6 +19,7 @@ class FileArchive(KGObject, OMFileArchive): type_ = "https://openminds.om-i.org/types/FileArchive" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/data/file_bundle.py b/fairgraph/openminds/v4/core/data/file_bundle.py index 8924c7c3..0a3ae7b1 100644 --- a/fairgraph/openminds/v4/core/data/file_bundle.py +++ b/fairgraph/openminds/v4/core/data/file_bundle.py @@ -16,6 +16,7 @@ class FileBundle(KGObject, OMFileBundle): type_ = "https://openminds.om-i.org/types/FileBundle" default_space = "files" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/data/file_path_pattern.py b/fairgraph/openminds/v4/core/data/file_path_pattern.py index 3f975109..54dea488 100644 --- a/fairgraph/openminds/v4/core/data/file_path_pattern.py +++ b/fairgraph/openminds/v4/core/data/file_path_pattern.py @@ -15,6 +15,7 @@ class FilePathPattern(KGEmbedded, OMFilePathPattern): """ type_ = "https://openminds.om-i.org/types/FilePathPattern" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("grouping_types", "regex") diff --git a/fairgraph/openminds/v4/core/data/file_repository.py b/fairgraph/openminds/v4/core/data/file_repository.py index 64c6bca1..57d9610f 100644 --- a/fairgraph/openminds/v4/core/data/file_repository.py +++ b/fairgraph/openminds/v4/core/data/file_repository.py @@ -19,6 +19,7 @@ class FileRepository(KGObject, OMFileRepository): type_ = "https://openminds.om-i.org/types/FileRepository" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/data/file_repository_structure.py b/fairgraph/openminds/v4/core/data/file_repository_structure.py index 2cfa2863..4d559f5b 100644 --- a/fairgraph/openminds/v4/core/data/file_repository_structure.py +++ b/fairgraph/openminds/v4/core/data/file_repository_structure.py @@ -16,6 +16,7 @@ class FileRepositoryStructure(KGObject, OMFileRepositoryStructure): type_ = "https://openminds.om-i.org/types/FileRepositoryStructure" default_space = "files" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/data/hash.py b/fairgraph/openminds/v4/core/data/hash.py index 3c00bb69..7dfae731 100644 --- a/fairgraph/openminds/v4/core/data/hash.py +++ b/fairgraph/openminds/v4/core/data/hash.py @@ -15,6 +15,7 @@ class Hash(KGEmbedded, OMHash): """ type_ = "https://openminds.om-i.org/types/Hash" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("algorithm", "digest") diff --git a/fairgraph/openminds/v4/core/data/license.py b/fairgraph/openminds/v4/core/data/license.py index 92260414..c2286746 100644 --- a/fairgraph/openminds/v4/core/data/license.py +++ b/fairgraph/openminds/v4/core/data/license.py @@ -19,6 +19,7 @@ class License(KGObject, OMLicense): type_ = "https://openminds.om-i.org/types/License" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/data/measurement.py b/fairgraph/openminds/v4/core/data/measurement.py index dcccb8ad..0781bb5f 100644 --- a/fairgraph/openminds/v4/core/data/measurement.py +++ b/fairgraph/openminds/v4/core/data/measurement.py @@ -18,6 +18,7 @@ class Measurement(KGEmbedded, OMMeasurement): """ type_ = "https://openminds.om-i.org/types/Measurement" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("measured_quantity", "values") diff --git a/fairgraph/openminds/v4/core/data/service_link.py b/fairgraph/openminds/v4/core/data/service_link.py index 9328cc33..2a39928d 100644 --- a/fairgraph/openminds/v4/core/data/service_link.py +++ b/fairgraph/openminds/v4/core/data/service_link.py @@ -19,6 +19,7 @@ class ServiceLink(KGObject, OMServiceLink): type_ = "https://openminds.om-i.org/types/ServiceLink" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("data_location", "open_data_in", "service") diff --git a/fairgraph/openminds/v4/core/digital_identifier/doi.py b/fairgraph/openminds/v4/core/digital_identifier/doi.py index 94801165..a6136643 100644 --- a/fairgraph/openminds/v4/core/digital_identifier/doi.py +++ b/fairgraph/openminds/v4/core/digital_identifier/doi.py @@ -16,6 +16,7 @@ class DOI(KGObject, OMDOI): type_ = "https://openminds.om-i.org/types/DOI" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/digital_identifier/gridid.py b/fairgraph/openminds/v4/core/digital_identifier/gridid.py index 70e5ffc0..7c771ed2 100644 --- a/fairgraph/openminds/v4/core/digital_identifier/gridid.py +++ b/fairgraph/openminds/v4/core/digital_identifier/gridid.py @@ -16,6 +16,7 @@ class GRIDID(KGObject, OMGRIDID): type_ = "https://openminds.om-i.org/types/GRIDID" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/digital_identifier/handle.py b/fairgraph/openminds/v4/core/digital_identifier/handle.py index b0cdf9f3..54b56513 100644 --- a/fairgraph/openminds/v4/core/digital_identifier/handle.py +++ b/fairgraph/openminds/v4/core/digital_identifier/handle.py @@ -16,6 +16,7 @@ class HANDLE(KGObject, OMHANDLE): type_ = "https://openminds.om-i.org/types/HANDLE" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/digital_identifier/identifiers_dot_org_id.py b/fairgraph/openminds/v4/core/digital_identifier/identifiers_dot_org_id.py index 16e3d42e..2a8f449f 100644 --- a/fairgraph/openminds/v4/core/digital_identifier/identifiers_dot_org_id.py +++ b/fairgraph/openminds/v4/core/digital_identifier/identifiers_dot_org_id.py @@ -16,6 +16,7 @@ class IdentifiersDotOrgID(KGObject, OMIdentifiersDotOrgID): type_ = "https://openminds.om-i.org/types/IdentifiersDotOrgID" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/digital_identifier/isbn.py b/fairgraph/openminds/v4/core/digital_identifier/isbn.py index 1dfb2bfd..27f804a1 100644 --- a/fairgraph/openminds/v4/core/digital_identifier/isbn.py +++ b/fairgraph/openminds/v4/core/digital_identifier/isbn.py @@ -16,6 +16,7 @@ class ISBN(KGObject, OMISBN): type_ = "https://openminds.om-i.org/types/ISBN" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/digital_identifier/issn.py b/fairgraph/openminds/v4/core/digital_identifier/issn.py index 817e411c..921e0f28 100644 --- a/fairgraph/openminds/v4/core/digital_identifier/issn.py +++ b/fairgraph/openminds/v4/core/digital_identifier/issn.py @@ -16,6 +16,7 @@ class ISSN(KGObject, OMISSN): type_ = "https://openminds.om-i.org/types/ISSN" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/digital_identifier/orcid.py b/fairgraph/openminds/v4/core/digital_identifier/orcid.py index 7acfe098..2ba39695 100644 --- a/fairgraph/openminds/v4/core/digital_identifier/orcid.py +++ b/fairgraph/openminds/v4/core/digital_identifier/orcid.py @@ -16,6 +16,7 @@ class ORCID(KGObject, OMORCID): type_ = "https://openminds.om-i.org/types/ORCID" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/digital_identifier/rorid.py b/fairgraph/openminds/v4/core/digital_identifier/rorid.py index b299bcba..23a601e5 100644 --- a/fairgraph/openminds/v4/core/digital_identifier/rorid.py +++ b/fairgraph/openminds/v4/core/digital_identifier/rorid.py @@ -16,6 +16,7 @@ class RORID(KGObject, OMRORID): type_ = "https://openminds.om-i.org/types/RORID" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/digital_identifier/rrid.py b/fairgraph/openminds/v4/core/digital_identifier/rrid.py index 2b143627..d42af1b1 100644 --- a/fairgraph/openminds/v4/core/digital_identifier/rrid.py +++ b/fairgraph/openminds/v4/core/digital_identifier/rrid.py @@ -16,6 +16,7 @@ class RRID(KGObject, OMRRID): type_ = "https://openminds.om-i.org/types/RRID" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/digital_identifier/stock_number.py b/fairgraph/openminds/v4/core/digital_identifier/stock_number.py index f3ffeca5..9dd30042 100644 --- a/fairgraph/openminds/v4/core/digital_identifier/stock_number.py +++ b/fairgraph/openminds/v4/core/digital_identifier/stock_number.py @@ -15,6 +15,7 @@ class StockNumber(KGEmbedded, OMStockNumber): """ type_ = "https://openminds.om-i.org/types/StockNumber" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("identifier", "vendor") diff --git a/fairgraph/openminds/v4/core/digital_identifier/swhid.py b/fairgraph/openminds/v4/core/digital_identifier/swhid.py index d0a6367f..e15c7525 100644 --- a/fairgraph/openminds/v4/core/digital_identifier/swhid.py +++ b/fairgraph/openminds/v4/core/digital_identifier/swhid.py @@ -16,6 +16,7 @@ class SWHID(KGObject, OMSWHID): type_ = "https://openminds.om-i.org/types/SWHID" default_space = "software" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/miscellaneous/comment.py b/fairgraph/openminds/v4/core/miscellaneous/comment.py index b59b7d24..adbfad2b 100644 --- a/fairgraph/openminds/v4/core/miscellaneous/comment.py +++ b/fairgraph/openminds/v4/core/miscellaneous/comment.py @@ -19,6 +19,7 @@ class Comment(KGObject, OMComment): type_ = "https://openminds.om-i.org/types/Comment" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("about", "comment", "commenter", "timestamp") diff --git a/fairgraph/openminds/v4/core/miscellaneous/funding.py b/fairgraph/openminds/v4/core/miscellaneous/funding.py index 90306d4f..8e41e03a 100644 --- a/fairgraph/openminds/v4/core/miscellaneous/funding.py +++ b/fairgraph/openminds/v4/core/miscellaneous/funding.py @@ -16,6 +16,7 @@ class Funding(KGObject, OMFunding): type_ = "https://openminds.om-i.org/types/Funding" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/miscellaneous/quantitative_value.py b/fairgraph/openminds/v4/core/miscellaneous/quantitative_value.py index 68df565e..5520d7b2 100644 --- a/fairgraph/openminds/v4/core/miscellaneous/quantitative_value.py +++ b/fairgraph/openminds/v4/core/miscellaneous/quantitative_value.py @@ -18,6 +18,7 @@ class QuantitativeValue(KGEmbedded, OMQuantitativeValue): """ type_ = "https://openminds.om-i.org/types/QuantitativeValue" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("value", "unit", "uncertainties") diff --git a/fairgraph/openminds/v4/core/miscellaneous/quantitative_value_array.py b/fairgraph/openminds/v4/core/miscellaneous/quantitative_value_array.py index 1fb30269..8aa3fa8a 100644 --- a/fairgraph/openminds/v4/core/miscellaneous/quantitative_value_array.py +++ b/fairgraph/openminds/v4/core/miscellaneous/quantitative_value_array.py @@ -19,6 +19,7 @@ class QuantitativeValueArray(KGObject, OMQuantitativeValueArray): type_ = "https://openminds.om-i.org/types/QuantitativeValueArray" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("values",) diff --git a/fairgraph/openminds/v4/core/miscellaneous/quantitative_value_range.py b/fairgraph/openminds/v4/core/miscellaneous/quantitative_value_range.py index c8d8b713..c95bd914 100644 --- a/fairgraph/openminds/v4/core/miscellaneous/quantitative_value_range.py +++ b/fairgraph/openminds/v4/core/miscellaneous/quantitative_value_range.py @@ -18,6 +18,7 @@ class QuantitativeValueRange(KGEmbedded, OMQuantitativeValueRange): """ type_ = "https://openminds.om-i.org/types/QuantitativeValueRange" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("max_value", "min_value") diff --git a/fairgraph/openminds/v4/core/miscellaneous/research_product_group.py b/fairgraph/openminds/v4/core/miscellaneous/research_product_group.py index e6f66eba..9866980d 100644 --- a/fairgraph/openminds/v4/core/miscellaneous/research_product_group.py +++ b/fairgraph/openminds/v4/core/miscellaneous/research_product_group.py @@ -16,6 +16,7 @@ class ResearchProductGroup(KGObject, OMResearchProductGroup): type_ = "https://openminds.om-i.org/types/ResearchProductGroup" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("context", "has_parts") diff --git a/fairgraph/openminds/v4/core/miscellaneous/web_resource.py b/fairgraph/openminds/v4/core/miscellaneous/web_resource.py index a2c2cb36..d421036a 100644 --- a/fairgraph/openminds/v4/core/miscellaneous/web_resource.py +++ b/fairgraph/openminds/v4/core/miscellaneous/web_resource.py @@ -19,6 +19,7 @@ class WebResource(KGObject, OMWebResource): type_ = "https://openminds.om-i.org/types/WebResource" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/products/dataset.py b/fairgraph/openminds/v4/core/products/dataset.py index 6e2e9cff..12060d91 100644 --- a/fairgraph/openminds/v4/core/products/dataset.py +++ b/fairgraph/openminds/v4/core/products/dataset.py @@ -19,6 +19,7 @@ class Dataset(KGObject, OMDataset): type_ = "https://openminds.om-i.org/types/Dataset" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/products/dataset_version.py b/fairgraph/openminds/v4/core/products/dataset_version.py index ec138ba6..4ae10ada 100644 --- a/fairgraph/openminds/v4/core/products/dataset_version.py +++ b/fairgraph/openminds/v4/core/products/dataset_version.py @@ -22,6 +22,7 @@ class DatasetVersion(KGObject, OMDatasetVersion): type_ = "https://openminds.om-i.org/types/DatasetVersion" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/products/meta_data_model.py b/fairgraph/openminds/v4/core/products/meta_data_model.py index f74d4d06..bb8932c6 100644 --- a/fairgraph/openminds/v4/core/products/meta_data_model.py +++ b/fairgraph/openminds/v4/core/products/meta_data_model.py @@ -19,6 +19,7 @@ class MetaDataModel(KGObject, OMMetaDataModel): type_ = "https://openminds.om-i.org/types/MetaDataModel" default_space = "metadatamodel" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/products/meta_data_model_version.py b/fairgraph/openminds/v4/core/products/meta_data_model_version.py index 5694ad12..a443d2d7 100644 --- a/fairgraph/openminds/v4/core/products/meta_data_model_version.py +++ b/fairgraph/openminds/v4/core/products/meta_data_model_version.py @@ -20,6 +20,7 @@ class MetaDataModelVersion(KGObject, OMMetaDataModelVersion): type_ = "https://openminds.om-i.org/types/MetaDataModelVersion" default_space = "metadatamodel" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/products/model.py b/fairgraph/openminds/v4/core/products/model.py index 0de92b51..4898f934 100644 --- a/fairgraph/openminds/v4/core/products/model.py +++ b/fairgraph/openminds/v4/core/products/model.py @@ -19,6 +19,7 @@ class Model(KGObject, OMModel): type_ = "https://openminds.om-i.org/types/Model" default_space = "model" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/products/model_version.py b/fairgraph/openminds/v4/core/products/model_version.py index 15658696..74d4a377 100644 --- a/fairgraph/openminds/v4/core/products/model_version.py +++ b/fairgraph/openminds/v4/core/products/model_version.py @@ -22,6 +22,7 @@ class ModelVersion(KGObject, OMModelVersion): type_ = "https://openminds.om-i.org/types/ModelVersion" default_space = "model" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/products/project.py b/fairgraph/openminds/v4/core/products/project.py index afb7c6bf..381973d7 100644 --- a/fairgraph/openminds/v4/core/products/project.py +++ b/fairgraph/openminds/v4/core/products/project.py @@ -19,6 +19,7 @@ class Project(KGObject, OMProject): type_ = "https://openminds.om-i.org/types/Project" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] aliases = {"name": "full_name", "alias": "short_name"} diff --git a/fairgraph/openminds/v4/core/products/setup.py b/fairgraph/openminds/v4/core/products/setup.py index 818aff7b..003e4500 100644 --- a/fairgraph/openminds/v4/core/products/setup.py +++ b/fairgraph/openminds/v4/core/products/setup.py @@ -16,6 +16,7 @@ class Setup(KGObject, OMSetup): type_ = "https://openminds.om-i.org/types/Setup" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/products/software.py b/fairgraph/openminds/v4/core/products/software.py index 05d4292b..23591f4f 100644 --- a/fairgraph/openminds/v4/core/products/software.py +++ b/fairgraph/openminds/v4/core/products/software.py @@ -19,6 +19,7 @@ class Software(KGObject, OMSoftware): type_ = "https://openminds.om-i.org/types/Software" default_space = "software" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/products/software_version.py b/fairgraph/openminds/v4/core/products/software_version.py index aecf10e8..73e4f5d8 100644 --- a/fairgraph/openminds/v4/core/products/software_version.py +++ b/fairgraph/openminds/v4/core/products/software_version.py @@ -20,6 +20,7 @@ class SoftwareVersion(KGObject, OMSoftwareVersion): type_ = "https://openminds.om-i.org/types/SoftwareVersion" default_space = "software" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/products/web_service.py b/fairgraph/openminds/v4/core/products/web_service.py index 0af04b68..f7cfbba0 100644 --- a/fairgraph/openminds/v4/core/products/web_service.py +++ b/fairgraph/openminds/v4/core/products/web_service.py @@ -19,6 +19,7 @@ class WebService(KGObject, OMWebService): type_ = "https://openminds.om-i.org/types/WebService" default_space = "webservice" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/products/web_service_version.py b/fairgraph/openminds/v4/core/products/web_service_version.py index 7f720dfa..0e2d9477 100644 --- a/fairgraph/openminds/v4/core/products/web_service_version.py +++ b/fairgraph/openminds/v4/core/products/web_service_version.py @@ -20,6 +20,7 @@ class WebServiceVersion(KGObject, OMWebServiceVersion): type_ = "https://openminds.om-i.org/types/WebServiceVersion" default_space = "webservice" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/research/behavioral_protocol.py b/fairgraph/openminds/v4/core/research/behavioral_protocol.py index 4b20aad6..f4ae9c49 100644 --- a/fairgraph/openminds/v4/core/research/behavioral_protocol.py +++ b/fairgraph/openminds/v4/core/research/behavioral_protocol.py @@ -16,6 +16,7 @@ class BehavioralProtocol(KGObject, OMBehavioralProtocol): type_ = "https://openminds.om-i.org/types/BehavioralProtocol" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/research/configuration.py b/fairgraph/openminds/v4/core/research/configuration.py index b1978a72..8a29579c 100644 --- a/fairgraph/openminds/v4/core/research/configuration.py +++ b/fairgraph/openminds/v4/core/research/configuration.py @@ -16,6 +16,7 @@ class Configuration(KGObject, OMConfiguration): type_ = "https://openminds.om-i.org/types/Configuration" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/research/custom_property_set.py b/fairgraph/openminds/v4/core/research/custom_property_set.py index a9bf1bd3..a01cca90 100644 --- a/fairgraph/openminds/v4/core/research/custom_property_set.py +++ b/fairgraph/openminds/v4/core/research/custom_property_set.py @@ -15,6 +15,7 @@ class CustomPropertySet(KGEmbedded, OMCustomPropertySet): """ type_ = "https://openminds.om-i.org/types/CustomPropertySet" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("context", "data_location", "relevant_for") diff --git a/fairgraph/openminds/v4/core/research/numerical_property.py b/fairgraph/openminds/v4/core/research/numerical_property.py index 9ecb6ce3..32fea439 100644 --- a/fairgraph/openminds/v4/core/research/numerical_property.py +++ b/fairgraph/openminds/v4/core/research/numerical_property.py @@ -15,6 +15,7 @@ class NumericalProperty(KGEmbedded, OMNumericalProperty): """ type_ = "https://openminds.om-i.org/types/NumericalProperty" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("name", "values") diff --git a/fairgraph/openminds/v4/core/research/property_value_list.py b/fairgraph/openminds/v4/core/research/property_value_list.py index c2587f1a..b3b6b8dd 100644 --- a/fairgraph/openminds/v4/core/research/property_value_list.py +++ b/fairgraph/openminds/v4/core/research/property_value_list.py @@ -16,6 +16,7 @@ class PropertyValueList(KGObject, OMPropertyValueList): type_ = "https://openminds.om-i.org/types/PropertyValueList" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/research/protocol.py b/fairgraph/openminds/v4/core/research/protocol.py index d6f4f185..604914ff 100644 --- a/fairgraph/openminds/v4/core/research/protocol.py +++ b/fairgraph/openminds/v4/core/research/protocol.py @@ -16,6 +16,7 @@ class Protocol(KGObject, OMProtocol): type_ = "https://openminds.om-i.org/types/Protocol" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/research/protocol_execution.py b/fairgraph/openminds/v4/core/research/protocol_execution.py index 9b6a7112..af230986 100644 --- a/fairgraph/openminds/v4/core/research/protocol_execution.py +++ b/fairgraph/openminds/v4/core/research/protocol_execution.py @@ -19,6 +19,7 @@ class ProtocolExecution(KGObject, OMProtocolExecution): type_ = "https://openminds.om-i.org/types/ProtocolExecution" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/research/strain.py b/fairgraph/openminds/v4/core/research/strain.py index d896aa13..745ed197 100644 --- a/fairgraph/openminds/v4/core/research/strain.py +++ b/fairgraph/openminds/v4/core/research/strain.py @@ -16,6 +16,7 @@ class Strain(KGObject, OMStrain): type_ = "https://openminds.om-i.org/types/Strain" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/research/string_property.py b/fairgraph/openminds/v4/core/research/string_property.py index 5f23ad4a..d5108a0b 100644 --- a/fairgraph/openminds/v4/core/research/string_property.py +++ b/fairgraph/openminds/v4/core/research/string_property.py @@ -15,6 +15,7 @@ class StringProperty(KGEmbedded, OMStringProperty): """ type_ = "https://openminds.om-i.org/types/StringProperty" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("name", "value") diff --git a/fairgraph/openminds/v4/core/research/subject.py b/fairgraph/openminds/v4/core/research/subject.py index 54798eb7..d6fbc3b1 100644 --- a/fairgraph/openminds/v4/core/research/subject.py +++ b/fairgraph/openminds/v4/core/research/subject.py @@ -16,6 +16,7 @@ class Subject(KGObject, OMSubject): type_ = "https://openminds.om-i.org/types/Subject" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/research/subject_group.py b/fairgraph/openminds/v4/core/research/subject_group.py index 15117cd4..fae46c98 100644 --- a/fairgraph/openminds/v4/core/research/subject_group.py +++ b/fairgraph/openminds/v4/core/research/subject_group.py @@ -16,6 +16,7 @@ class SubjectGroup(KGObject, OMSubjectGroup): type_ = "https://openminds.om-i.org/types/SubjectGroup" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/research/subject_group_state.py b/fairgraph/openminds/v4/core/research/subject_group_state.py index 236ba4f5..8f857ebd 100644 --- a/fairgraph/openminds/v4/core/research/subject_group_state.py +++ b/fairgraph/openminds/v4/core/research/subject_group_state.py @@ -16,6 +16,7 @@ class SubjectGroupState(KGObject, OMSubjectGroupState): type_ = "https://openminds.om-i.org/types/SubjectGroupState" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/research/subject_state.py b/fairgraph/openminds/v4/core/research/subject_state.py index f16c63b5..1bf3d82c 100644 --- a/fairgraph/openminds/v4/core/research/subject_state.py +++ b/fairgraph/openminds/v4/core/research/subject_state.py @@ -16,6 +16,7 @@ class SubjectState(KGObject, OMSubjectState): type_ = "https://openminds.om-i.org/types/SubjectState" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/research/tissue_sample.py b/fairgraph/openminds/v4/core/research/tissue_sample.py index 65213f5a..2679feb5 100644 --- a/fairgraph/openminds/v4/core/research/tissue_sample.py +++ b/fairgraph/openminds/v4/core/research/tissue_sample.py @@ -16,6 +16,7 @@ class TissueSample(KGObject, OMTissueSample): type_ = "https://openminds.om-i.org/types/TissueSample" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/research/tissue_sample_collection.py b/fairgraph/openminds/v4/core/research/tissue_sample_collection.py index ed2fb390..ddd61d7b 100644 --- a/fairgraph/openminds/v4/core/research/tissue_sample_collection.py +++ b/fairgraph/openminds/v4/core/research/tissue_sample_collection.py @@ -16,6 +16,7 @@ class TissueSampleCollection(KGObject, OMTissueSampleCollection): type_ = "https://openminds.om-i.org/types/TissueSampleCollection" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/research/tissue_sample_collection_state.py b/fairgraph/openminds/v4/core/research/tissue_sample_collection_state.py index 86636360..9ee2c2c6 100644 --- a/fairgraph/openminds/v4/core/research/tissue_sample_collection_state.py +++ b/fairgraph/openminds/v4/core/research/tissue_sample_collection_state.py @@ -16,6 +16,7 @@ class TissueSampleCollectionState(KGObject, OMTissueSampleCollectionState): type_ = "https://openminds.om-i.org/types/TissueSampleCollectionState" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/research/tissue_sample_state.py b/fairgraph/openminds/v4/core/research/tissue_sample_state.py index a57b74af..7cddafcc 100644 --- a/fairgraph/openminds/v4/core/research/tissue_sample_state.py +++ b/fairgraph/openminds/v4/core/research/tissue_sample_state.py @@ -16,6 +16,7 @@ class TissueSampleState(KGObject, OMTissueSampleState): type_ = "https://openminds.om-i.org/types/TissueSampleState" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/ephys/activity/cell_patching.py b/fairgraph/openminds/v4/ephys/activity/cell_patching.py index 0a18fc99..aace696d 100644 --- a/fairgraph/openminds/v4/ephys/activity/cell_patching.py +++ b/fairgraph/openminds/v4/ephys/activity/cell_patching.py @@ -19,6 +19,7 @@ class CellPatching(KGObject, OMCellPatching): type_ = "https://openminds.om-i.org/types/CellPatching" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v4/ephys/activity/electrode_placement.py b/fairgraph/openminds/v4/ephys/activity/electrode_placement.py index dc42bb1b..fb0cc38f 100644 --- a/fairgraph/openminds/v4/ephys/activity/electrode_placement.py +++ b/fairgraph/openminds/v4/ephys/activity/electrode_placement.py @@ -19,6 +19,7 @@ class ElectrodePlacement(KGObject, OMElectrodePlacement): type_ = "https://openminds.om-i.org/types/ElectrodePlacement" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v4/ephys/activity/recording_activity.py b/fairgraph/openminds/v4/ephys/activity/recording_activity.py index 3450c8e8..0d48e97f 100644 --- a/fairgraph/openminds/v4/ephys/activity/recording_activity.py +++ b/fairgraph/openminds/v4/ephys/activity/recording_activity.py @@ -19,6 +19,7 @@ class RecordingActivity(KGObject, OMRecordingActivity): type_ = "https://openminds.om-i.org/types/RecordingActivity" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v4/ephys/device/electrode.py b/fairgraph/openminds/v4/ephys/device/electrode.py index c829d5f5..444e531d 100644 --- a/fairgraph/openminds/v4/ephys/device/electrode.py +++ b/fairgraph/openminds/v4/ephys/device/electrode.py @@ -16,6 +16,7 @@ class Electrode(KGObject, OMElectrode): type_ = "https://openminds.om-i.org/types/Electrode" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/ephys/device/electrode_array.py b/fairgraph/openminds/v4/ephys/device/electrode_array.py index fb4ba15b..22af9e6c 100644 --- a/fairgraph/openminds/v4/ephys/device/electrode_array.py +++ b/fairgraph/openminds/v4/ephys/device/electrode_array.py @@ -16,6 +16,7 @@ class ElectrodeArray(KGObject, OMElectrodeArray): type_ = "https://openminds.om-i.org/types/ElectrodeArray" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/ephys/device/electrode_array_usage.py b/fairgraph/openminds/v4/ephys/device/electrode_array_usage.py index 4b3fad86..36bbd986 100644 --- a/fairgraph/openminds/v4/ephys/device/electrode_array_usage.py +++ b/fairgraph/openminds/v4/ephys/device/electrode_array_usage.py @@ -16,6 +16,7 @@ class ElectrodeArrayUsage(KGObject, OMElectrodeArrayUsage): type_ = "https://openminds.om-i.org/types/ElectrodeArrayUsage" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/ephys/device/electrode_usage.py b/fairgraph/openminds/v4/ephys/device/electrode_usage.py index 155ab676..2abeb816 100644 --- a/fairgraph/openminds/v4/ephys/device/electrode_usage.py +++ b/fairgraph/openminds/v4/ephys/device/electrode_usage.py @@ -16,6 +16,7 @@ class ElectrodeUsage(KGObject, OMElectrodeUsage): type_ = "https://openminds.om-i.org/types/ElectrodeUsage" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/ephys/device/pipette.py b/fairgraph/openminds/v4/ephys/device/pipette.py index d79e9549..a7238170 100644 --- a/fairgraph/openminds/v4/ephys/device/pipette.py +++ b/fairgraph/openminds/v4/ephys/device/pipette.py @@ -16,6 +16,7 @@ class Pipette(KGObject, OMPipette): type_ = "https://openminds.om-i.org/types/Pipette" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/ephys/device/pipette_usage.py b/fairgraph/openminds/v4/ephys/device/pipette_usage.py index 3c024aea..9f3690c7 100644 --- a/fairgraph/openminds/v4/ephys/device/pipette_usage.py +++ b/fairgraph/openminds/v4/ephys/device/pipette_usage.py @@ -16,6 +16,7 @@ class PipetteUsage(KGObject, OMPipetteUsage): type_ = "https://openminds.om-i.org/types/PipetteUsage" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/ephys/entity/channel.py b/fairgraph/openminds/v4/ephys/entity/channel.py index e2ac8ee4..78ea7c55 100644 --- a/fairgraph/openminds/v4/ephys/entity/channel.py +++ b/fairgraph/openminds/v4/ephys/entity/channel.py @@ -15,6 +15,7 @@ class Channel(KGEmbedded, OMChannel): """ type_ = "https://openminds.om-i.org/types/Channel" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("internal_identifier", "unit") diff --git a/fairgraph/openminds/v4/ephys/entity/recording.py b/fairgraph/openminds/v4/ephys/entity/recording.py index 5fd1b46c..a0ee731f 100644 --- a/fairgraph/openminds/v4/ephys/entity/recording.py +++ b/fairgraph/openminds/v4/ephys/entity/recording.py @@ -16,6 +16,7 @@ class Recording(KGObject, OMRecording): type_ = "https://openminds.om-i.org/types/Recording" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/publications/book.py b/fairgraph/openminds/v4/publications/book.py index 247259c5..0af49f9f 100644 --- a/fairgraph/openminds/v4/publications/book.py +++ b/fairgraph/openminds/v4/publications/book.py @@ -20,6 +20,7 @@ class Book(KGObject, OMBook): type_ = "https://openminds.om-i.org/types/Book" default_space = "livepapers" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/publications/chapter.py b/fairgraph/openminds/v4/publications/chapter.py index 1fdfa626..86e13d20 100644 --- a/fairgraph/openminds/v4/publications/chapter.py +++ b/fairgraph/openminds/v4/publications/chapter.py @@ -20,6 +20,7 @@ class Chapter(KGObject, OMChapter): type_ = "https://openminds.om-i.org/types/Chapter" default_space = "livepapers" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/publications/learning_resource.py b/fairgraph/openminds/v4/publications/learning_resource.py index 146958fd..bbf73354 100644 --- a/fairgraph/openminds/v4/publications/learning_resource.py +++ b/fairgraph/openminds/v4/publications/learning_resource.py @@ -20,6 +20,7 @@ class LearningResource(KGObject, OMLearningResource): type_ = "https://openminds.om-i.org/types/LearningResource" default_space = "livepapers" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("about", "name", "publication_date") diff --git a/fairgraph/openminds/v4/publications/live_paper.py b/fairgraph/openminds/v4/publications/live_paper.py index f763959f..918f59ae 100644 --- a/fairgraph/openminds/v4/publications/live_paper.py +++ b/fairgraph/openminds/v4/publications/live_paper.py @@ -19,6 +19,7 @@ class LivePaper(KGObject, OMLivePaper): type_ = "https://openminds.om-i.org/types/LivePaper" default_space = "livepapers" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/publications/live_paper_resource_item.py b/fairgraph/openminds/v4/publications/live_paper_resource_item.py index 5f8e5b2e..ce79e258 100644 --- a/fairgraph/openminds/v4/publications/live_paper_resource_item.py +++ b/fairgraph/openminds/v4/publications/live_paper_resource_item.py @@ -19,6 +19,7 @@ class LivePaperResourceItem(KGObject, OMLivePaperResourceItem): type_ = "https://openminds.om-i.org/types/LivePaperResourceItem" default_space = "livepapers" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/publications/live_paper_section.py b/fairgraph/openminds/v4/publications/live_paper_section.py index 3ad2434a..56928baa 100644 --- a/fairgraph/openminds/v4/publications/live_paper_section.py +++ b/fairgraph/openminds/v4/publications/live_paper_section.py @@ -16,6 +16,7 @@ class LivePaperSection(KGObject, OMLivePaperSection): type_ = "https://openminds.om-i.org/types/LivePaperSection" default_space = "livepapers" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/publications/live_paper_version.py b/fairgraph/openminds/v4/publications/live_paper_version.py index 1ed786a6..2f8274fc 100644 --- a/fairgraph/openminds/v4/publications/live_paper_version.py +++ b/fairgraph/openminds/v4/publications/live_paper_version.py @@ -21,6 +21,7 @@ class LivePaperVersion(KGObject, OMLivePaperVersion): type_ = "https://openminds.om-i.org/types/LivePaperVersion" default_space = "livepapers" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/publications/periodical.py b/fairgraph/openminds/v4/publications/periodical.py index 5e8d3b43..5c86d21a 100644 --- a/fairgraph/openminds/v4/publications/periodical.py +++ b/fairgraph/openminds/v4/publications/periodical.py @@ -16,6 +16,7 @@ class Periodical(KGObject, OMPeriodical): type_ = "https://openminds.om-i.org/types/Periodical" default_space = "livepapers" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/publications/publication_issue.py b/fairgraph/openminds/v4/publications/publication_issue.py index 8e5c3784..e70da972 100644 --- a/fairgraph/openminds/v4/publications/publication_issue.py +++ b/fairgraph/openminds/v4/publications/publication_issue.py @@ -16,6 +16,7 @@ class PublicationIssue(KGObject, OMPublicationIssue): type_ = "https://openminds.om-i.org/types/PublicationIssue" default_space = "livepapers" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/publications/publication_volume.py b/fairgraph/openminds/v4/publications/publication_volume.py index 59940985..267b429b 100644 --- a/fairgraph/openminds/v4/publications/publication_volume.py +++ b/fairgraph/openminds/v4/publications/publication_volume.py @@ -16,6 +16,7 @@ class PublicationVolume(KGObject, OMPublicationVolume): type_ = "https://openminds.om-i.org/types/PublicationVolume" default_space = "livepapers" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/publications/scholarly_article.py b/fairgraph/openminds/v4/publications/scholarly_article.py index e34549dc..4c0edc42 100644 --- a/fairgraph/openminds/v4/publications/scholarly_article.py +++ b/fairgraph/openminds/v4/publications/scholarly_article.py @@ -22,6 +22,7 @@ class ScholarlyArticle(KGObject, OMScholarlyArticle): type_ = "https://openminds.om-i.org/types/ScholarlyArticle" default_space = "livepapers" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/sands/atlas/atlas_annotation.py b/fairgraph/openminds/v4/sands/atlas/atlas_annotation.py index a63e44d6..5cf16202 100644 --- a/fairgraph/openminds/v4/sands/atlas/atlas_annotation.py +++ b/fairgraph/openminds/v4/sands/atlas/atlas_annotation.py @@ -15,6 +15,7 @@ class AtlasAnnotation(KGEmbedded, OMAtlasAnnotation): """ type_ = "https://openminds.om-i.org/types/AtlasAnnotation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("criteria_quality_type", "criteria_type", "type") diff --git a/fairgraph/openminds/v4/sands/atlas/brain_atlas.py b/fairgraph/openminds/v4/sands/atlas/brain_atlas.py index 6d8a260b..65ee465e 100644 --- a/fairgraph/openminds/v4/sands/atlas/brain_atlas.py +++ b/fairgraph/openminds/v4/sands/atlas/brain_atlas.py @@ -19,6 +19,7 @@ class BrainAtlas(KGObject, OMBrainAtlas): type_ = "https://openminds.om-i.org/types/BrainAtlas" default_space = "atlas" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/sands/atlas/brain_atlas_version.py b/fairgraph/openminds/v4/sands/atlas/brain_atlas_version.py index c3015c8a..b885fa84 100644 --- a/fairgraph/openminds/v4/sands/atlas/brain_atlas_version.py +++ b/fairgraph/openminds/v4/sands/atlas/brain_atlas_version.py @@ -22,6 +22,7 @@ class BrainAtlasVersion(KGObject, OMBrainAtlasVersion): type_ = "https://openminds.om-i.org/types/BrainAtlasVersion" default_space = "atlas" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/sands/atlas/common_coordinate_space.py b/fairgraph/openminds/v4/sands/atlas/common_coordinate_space.py index 75a2fbac..af7b7bdc 100644 --- a/fairgraph/openminds/v4/sands/atlas/common_coordinate_space.py +++ b/fairgraph/openminds/v4/sands/atlas/common_coordinate_space.py @@ -19,6 +19,7 @@ class CommonCoordinateSpace(KGObject, OMCommonCoordinateSpace): type_ = "https://openminds.om-i.org/types/CommonCoordinateSpace" default_space = "atlas" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/sands/atlas/common_coordinate_space_version.py b/fairgraph/openminds/v4/sands/atlas/common_coordinate_space_version.py index e5f798a0..5f0b4548 100644 --- a/fairgraph/openminds/v4/sands/atlas/common_coordinate_space_version.py +++ b/fairgraph/openminds/v4/sands/atlas/common_coordinate_space_version.py @@ -22,6 +22,7 @@ class CommonCoordinateSpaceVersion(KGObject, OMCommonCoordinateSpaceVersion): type_ = "https://openminds.om-i.org/types/CommonCoordinateSpaceVersion" default_space = "atlas" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/sands/atlas/parcellation_entity.py b/fairgraph/openminds/v4/sands/atlas/parcellation_entity.py index b24c3754..853c98fc 100644 --- a/fairgraph/openminds/v4/sands/atlas/parcellation_entity.py +++ b/fairgraph/openminds/v4/sands/atlas/parcellation_entity.py @@ -16,6 +16,7 @@ class ParcellationEntity(KGObject, OMParcellationEntity): type_ = "https://openminds.om-i.org/types/ParcellationEntity" default_space = "atlas" + SORT_PRIORITY = ("lookupLabel", "name", "fullName", "shortName", "familyName", "abbreviation") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/sands/atlas/parcellation_entity_version.py b/fairgraph/openminds/v4/sands/atlas/parcellation_entity_version.py index 450e5db5..fd218573 100644 --- a/fairgraph/openminds/v4/sands/atlas/parcellation_entity_version.py +++ b/fairgraph/openminds/v4/sands/atlas/parcellation_entity_version.py @@ -16,6 +16,7 @@ class ParcellationEntityVersion(KGObject, OMParcellationEntityVersion): type_ = "https://openminds.om-i.org/types/ParcellationEntityVersion" default_space = "atlas" + SORT_PRIORITY = ("lookupLabel", "name", "fullName", "shortName", "familyName", "abbreviation") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/sands/atlas/parcellation_terminology.py b/fairgraph/openminds/v4/sands/atlas/parcellation_terminology.py index bfe9386e..cad08d50 100644 --- a/fairgraph/openminds/v4/sands/atlas/parcellation_terminology.py +++ b/fairgraph/openminds/v4/sands/atlas/parcellation_terminology.py @@ -15,6 +15,7 @@ class ParcellationTerminology(KGEmbedded, OMParcellationTerminology): """ type_ = "https://openminds.om-i.org/types/ParcellationTerminology" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("has_entities",) diff --git a/fairgraph/openminds/v4/sands/atlas/parcellation_terminology_version.py b/fairgraph/openminds/v4/sands/atlas/parcellation_terminology_version.py index 51c7e656..9f1cbf21 100644 --- a/fairgraph/openminds/v4/sands/atlas/parcellation_terminology_version.py +++ b/fairgraph/openminds/v4/sands/atlas/parcellation_terminology_version.py @@ -15,6 +15,7 @@ class ParcellationTerminologyVersion(KGEmbedded, OMParcellationTerminologyVersio """ type_ = "https://openminds.om-i.org/types/ParcellationTerminologyVersion" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("short_name", "version_identifier") diff --git a/fairgraph/openminds/v4/sands/mathematical_shapes/circle.py b/fairgraph/openminds/v4/sands/mathematical_shapes/circle.py index 73fb4369..92355a0e 100644 --- a/fairgraph/openminds/v4/sands/mathematical_shapes/circle.py +++ b/fairgraph/openminds/v4/sands/mathematical_shapes/circle.py @@ -15,6 +15,7 @@ class Circle(KGEmbedded, OMCircle): """ type_ = "https://openminds.om-i.org/types/Circle" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("radius",) diff --git a/fairgraph/openminds/v4/sands/mathematical_shapes/ellipse.py b/fairgraph/openminds/v4/sands/mathematical_shapes/ellipse.py index 82aaa3ef..0eb58e51 100644 --- a/fairgraph/openminds/v4/sands/mathematical_shapes/ellipse.py +++ b/fairgraph/openminds/v4/sands/mathematical_shapes/ellipse.py @@ -15,6 +15,7 @@ class Ellipse(KGEmbedded, OMEllipse): """ type_ = "https://openminds.om-i.org/types/Ellipse" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("semi_major_axis", "semi_minor_axis") diff --git a/fairgraph/openminds/v4/sands/mathematical_shapes/rectangle.py b/fairgraph/openminds/v4/sands/mathematical_shapes/rectangle.py index 68412375..576971e9 100644 --- a/fairgraph/openminds/v4/sands/mathematical_shapes/rectangle.py +++ b/fairgraph/openminds/v4/sands/mathematical_shapes/rectangle.py @@ -15,6 +15,7 @@ class Rectangle(KGEmbedded, OMRectangle): """ type_ = "https://openminds.om-i.org/types/Rectangle" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("length", "width") diff --git a/fairgraph/openminds/v4/sands/miscellaneous/anatomical_target_position.py b/fairgraph/openminds/v4/sands/miscellaneous/anatomical_target_position.py index ed917158..ecfc8048 100644 --- a/fairgraph/openminds/v4/sands/miscellaneous/anatomical_target_position.py +++ b/fairgraph/openminds/v4/sands/miscellaneous/anatomical_target_position.py @@ -15,6 +15,7 @@ class AnatomicalTargetPosition(KGEmbedded, OMAnatomicalTargetPosition): """ type_ = "https://openminds.om-i.org/types/AnatomicalTargetPosition" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("anatomical_targets", "target_identification_type") diff --git a/fairgraph/openminds/v4/sands/miscellaneous/coordinate_point.py b/fairgraph/openminds/v4/sands/miscellaneous/coordinate_point.py index c4afd79b..49bbf903 100644 --- a/fairgraph/openminds/v4/sands/miscellaneous/coordinate_point.py +++ b/fairgraph/openminds/v4/sands/miscellaneous/coordinate_point.py @@ -15,6 +15,7 @@ class CoordinatePoint(KGEmbedded, OMCoordinatePoint): """ type_ = "https://openminds.om-i.org/types/CoordinatePoint" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("coordinate_space", "coordinates") diff --git a/fairgraph/openminds/v4/sands/miscellaneous/qualitative_relation_assessment.py b/fairgraph/openminds/v4/sands/miscellaneous/qualitative_relation_assessment.py index 695411ca..121ebe40 100644 --- a/fairgraph/openminds/v4/sands/miscellaneous/qualitative_relation_assessment.py +++ b/fairgraph/openminds/v4/sands/miscellaneous/qualitative_relation_assessment.py @@ -15,6 +15,7 @@ class QualitativeRelationAssessment(KGEmbedded, OMQualitativeRelationAssessment) """ type_ = "https://openminds.om-i.org/types/QualitativeRelationAssessment" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("in_relation_to", "qualitative_overlap") diff --git a/fairgraph/openminds/v4/sands/miscellaneous/quantitative_relation_assessment.py b/fairgraph/openminds/v4/sands/miscellaneous/quantitative_relation_assessment.py index 820c837e..3db2bf10 100644 --- a/fairgraph/openminds/v4/sands/miscellaneous/quantitative_relation_assessment.py +++ b/fairgraph/openminds/v4/sands/miscellaneous/quantitative_relation_assessment.py @@ -15,6 +15,7 @@ class QuantitativeRelationAssessment(KGEmbedded, OMQuantitativeRelationAssessmen """ type_ = "https://openminds.om-i.org/types/QuantitativeRelationAssessment" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("in_relation_to", "quantitative_overlap") diff --git a/fairgraph/openminds/v4/sands/miscellaneous/single_color.py b/fairgraph/openminds/v4/sands/miscellaneous/single_color.py index 9bd817d1..acb1c855 100644 --- a/fairgraph/openminds/v4/sands/miscellaneous/single_color.py +++ b/fairgraph/openminds/v4/sands/miscellaneous/single_color.py @@ -16,6 +16,7 @@ class SingleColor(KGObject, OMSingleColor): type_ = "https://openminds.om-i.org/types/SingleColor" default_space = "atlas" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("value",) diff --git a/fairgraph/openminds/v4/sands/miscellaneous/viewer_specification.py b/fairgraph/openminds/v4/sands/miscellaneous/viewer_specification.py index a686c474..5047124e 100644 --- a/fairgraph/openminds/v4/sands/miscellaneous/viewer_specification.py +++ b/fairgraph/openminds/v4/sands/miscellaneous/viewer_specification.py @@ -15,6 +15,7 @@ class ViewerSpecification(KGEmbedded, OMViewerSpecification): """ type_ = "https://openminds.om-i.org/types/ViewerSpecification" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("anchor_points",) diff --git a/fairgraph/openminds/v4/sands/non_atlas/custom_anatomical_entity.py b/fairgraph/openminds/v4/sands/non_atlas/custom_anatomical_entity.py index 397b7dd0..778cde08 100644 --- a/fairgraph/openminds/v4/sands/non_atlas/custom_anatomical_entity.py +++ b/fairgraph/openminds/v4/sands/non_atlas/custom_anatomical_entity.py @@ -16,6 +16,7 @@ class CustomAnatomicalEntity(KGObject, OMCustomAnatomicalEntity): type_ = "https://openminds.om-i.org/types/CustomAnatomicalEntity" default_space = "spatial" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/sands/non_atlas/custom_annotation.py b/fairgraph/openminds/v4/sands/non_atlas/custom_annotation.py index 57295849..421674c4 100644 --- a/fairgraph/openminds/v4/sands/non_atlas/custom_annotation.py +++ b/fairgraph/openminds/v4/sands/non_atlas/custom_annotation.py @@ -15,6 +15,7 @@ class CustomAnnotation(KGEmbedded, OMCustomAnnotation): """ type_ = "https://openminds.om-i.org/types/CustomAnnotation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("coordinate_space", "criteria_quality_type", "criteria_type", "type") diff --git a/fairgraph/openminds/v4/sands/non_atlas/custom_coordinate_space.py b/fairgraph/openminds/v4/sands/non_atlas/custom_coordinate_space.py index 16a374c4..addef528 100644 --- a/fairgraph/openminds/v4/sands/non_atlas/custom_coordinate_space.py +++ b/fairgraph/openminds/v4/sands/non_atlas/custom_coordinate_space.py @@ -16,6 +16,7 @@ class CustomCoordinateSpace(KGObject, OMCustomCoordinateSpace): type_ = "https://openminds.om-i.org/types/CustomCoordinateSpace" default_space = "spatial" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/specimen_prep/activity/cranial_window_preparation.py b/fairgraph/openminds/v4/specimen_prep/activity/cranial_window_preparation.py index c584c7bb..ba5f4306 100644 --- a/fairgraph/openminds/v4/specimen_prep/activity/cranial_window_preparation.py +++ b/fairgraph/openminds/v4/specimen_prep/activity/cranial_window_preparation.py @@ -19,6 +19,7 @@ class CranialWindowPreparation(KGObject, OMCranialWindowPreparation): type_ = "https://openminds.om-i.org/types/CranialWindowPreparation" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v4/specimen_prep/activity/tissue_culture_preparation.py b/fairgraph/openminds/v4/specimen_prep/activity/tissue_culture_preparation.py index f5e53a8b..eed7cb01 100644 --- a/fairgraph/openminds/v4/specimen_prep/activity/tissue_culture_preparation.py +++ b/fairgraph/openminds/v4/specimen_prep/activity/tissue_culture_preparation.py @@ -19,6 +19,7 @@ class TissueCulturePreparation(KGObject, OMTissueCulturePreparation): type_ = "https://openminds.om-i.org/types/TissueCulturePreparation" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v4/specimen_prep/activity/tissue_sample_slicing.py b/fairgraph/openminds/v4/specimen_prep/activity/tissue_sample_slicing.py index 89af937d..d7dc5afa 100644 --- a/fairgraph/openminds/v4/specimen_prep/activity/tissue_sample_slicing.py +++ b/fairgraph/openminds/v4/specimen_prep/activity/tissue_sample_slicing.py @@ -19,6 +19,7 @@ class TissueSampleSlicing(KGObject, OMTissueSampleSlicing): type_ = "https://openminds.om-i.org/types/TissueSampleSlicing" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v4/specimen_prep/device/slicing_device.py b/fairgraph/openminds/v4/specimen_prep/device/slicing_device.py index fae6585d..7ab20961 100644 --- a/fairgraph/openminds/v4/specimen_prep/device/slicing_device.py +++ b/fairgraph/openminds/v4/specimen_prep/device/slicing_device.py @@ -16,6 +16,7 @@ class SlicingDevice(KGObject, OMSlicingDevice): type_ = "https://openminds.om-i.org/types/SlicingDevice" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/specimen_prep/device/slicing_device_usage.py b/fairgraph/openminds/v4/specimen_prep/device/slicing_device_usage.py index a3e69067..1e73cbf0 100644 --- a/fairgraph/openminds/v4/specimen_prep/device/slicing_device_usage.py +++ b/fairgraph/openminds/v4/specimen_prep/device/slicing_device_usage.py @@ -16,6 +16,7 @@ class SlicingDeviceUsage(KGObject, OMSlicingDeviceUsage): type_ = "https://openminds.om-i.org/types/SlicingDeviceUsage" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/stimulation/activity/stimulation_activity.py b/fairgraph/openminds/v4/stimulation/activity/stimulation_activity.py index 3d55cf3b..bc781634 100644 --- a/fairgraph/openminds/v4/stimulation/activity/stimulation_activity.py +++ b/fairgraph/openminds/v4/stimulation/activity/stimulation_activity.py @@ -19,6 +19,7 @@ class StimulationActivity(KGObject, OMStimulationActivity): type_ = "https://openminds.om-i.org/types/StimulationActivity" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v4/stimulation/stimulus/ephys_stimulus.py b/fairgraph/openminds/v4/stimulation/stimulus/ephys_stimulus.py index ad70d154..4022e41d 100644 --- a/fairgraph/openminds/v4/stimulation/stimulus/ephys_stimulus.py +++ b/fairgraph/openminds/v4/stimulation/stimulus/ephys_stimulus.py @@ -16,6 +16,7 @@ class EphysStimulus(KGObject, OMEphysStimulus): type_ = "https://openminds.om-i.org/types/EphysStimulus" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/chemicals/amount_of_chemical.py b/fairgraph/openminds/v5/chemicals/amount_of_chemical.py index ef962ded..0e4ee25b 100644 --- a/fairgraph/openminds/v5/chemicals/amount_of_chemical.py +++ b/fairgraph/openminds/v5/chemicals/amount_of_chemical.py @@ -15,6 +15,7 @@ class AmountOfChemical(KGEmbedded, OMAmountOfChemical): """ type_ = "https://openminds.om-i.org/types/AmountOfChemical" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("chemical_product", "amount") diff --git a/fairgraph/openminds/v5/chemicals/chemical_mixture.py b/fairgraph/openminds/v5/chemicals/chemical_mixture.py index 11da07c4..ee5162d9 100644 --- a/fairgraph/openminds/v5/chemicals/chemical_mixture.py +++ b/fairgraph/openminds/v5/chemicals/chemical_mixture.py @@ -16,6 +16,7 @@ class ChemicalMixture(KGObject, OMChemicalMixture): type_ = "https://openminds.om-i.org/types/ChemicalMixture" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/chemicals/chemical_substance.py b/fairgraph/openminds/v5/chemicals/chemical_substance.py index bd40ae9b..ae6d4cf7 100644 --- a/fairgraph/openminds/v5/chemicals/chemical_substance.py +++ b/fairgraph/openminds/v5/chemicals/chemical_substance.py @@ -16,6 +16,7 @@ class ChemicalSubstance(KGObject, OMChemicalSubstance): type_ = "https://openminds.om-i.org/types/ChemicalSubstance" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/chemicals/product_source.py b/fairgraph/openminds/v5/chemicals/product_source.py index 3f48cc3e..779b687e 100644 --- a/fairgraph/openminds/v5/chemicals/product_source.py +++ b/fairgraph/openminds/v5/chemicals/product_source.py @@ -16,6 +16,7 @@ class ProductSource(KGObject, OMProductSource): type_ = "https://openminds.om-i.org/types/ProductSource" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/computation/data_analysis.py b/fairgraph/openminds/v5/computation/data_analysis.py index a144b355..e0a99eb7 100644 --- a/fairgraph/openminds/v5/computation/data_analysis.py +++ b/fairgraph/openminds/v5/computation/data_analysis.py @@ -19,6 +19,7 @@ class DataAnalysis(KGObject, OMDataAnalysis): type_ = "https://openminds.om-i.org/types/DataAnalysis" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/computation/data_copy.py b/fairgraph/openminds/v5/computation/data_copy.py index cce549e1..2135b21f 100644 --- a/fairgraph/openminds/v5/computation/data_copy.py +++ b/fairgraph/openminds/v5/computation/data_copy.py @@ -19,6 +19,7 @@ class DataCopy(KGObject, OMDataCopy): type_ = "https://openminds.om-i.org/types/DataCopy" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/computation/deployed_interface.py b/fairgraph/openminds/v5/computation/deployed_interface.py index c02a4be0..0db6bb99 100644 --- a/fairgraph/openminds/v5/computation/deployed_interface.py +++ b/fairgraph/openminds/v5/computation/deployed_interface.py @@ -15,6 +15,7 @@ class DeployedInterface(KGEmbedded, OMDeployedInterface): """ type_ = "https://openminds.om-i.org/types/DeployedInterface" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("accessibility", "entry_point", "interface") diff --git a/fairgraph/openminds/v5/computation/environment.py b/fairgraph/openminds/v5/computation/environment.py index 8a548b00..950a0c5b 100644 --- a/fairgraph/openminds/v5/computation/environment.py +++ b/fairgraph/openminds/v5/computation/environment.py @@ -16,6 +16,7 @@ class Environment(KGObject, OMEnvironment): type_ = "https://openminds.om-i.org/types/Environment" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/computation/generic_computation.py b/fairgraph/openminds/v5/computation/generic_computation.py index 03492fd3..e7ccce53 100644 --- a/fairgraph/openminds/v5/computation/generic_computation.py +++ b/fairgraph/openminds/v5/computation/generic_computation.py @@ -19,6 +19,7 @@ class GenericComputation(KGObject, OMGenericComputation): type_ = "https://openminds.om-i.org/types/GenericComputation" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/computation/hardware_system.py b/fairgraph/openminds/v5/computation/hardware_system.py index edf4cedb..7ffe55a8 100644 --- a/fairgraph/openminds/v5/computation/hardware_system.py +++ b/fairgraph/openminds/v5/computation/hardware_system.py @@ -16,6 +16,7 @@ class HardwareSystem(KGObject, OMHardwareSystem): type_ = "https://openminds.om-i.org/types/HardwareSystem" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/computation/launch_configuration.py b/fairgraph/openminds/v5/computation/launch_configuration.py index 69b61fcf..078fa248 100644 --- a/fairgraph/openminds/v5/computation/launch_configuration.py +++ b/fairgraph/openminds/v5/computation/launch_configuration.py @@ -16,6 +16,7 @@ class LaunchConfiguration(KGObject, OMLaunchConfiguration): type_ = "https://openminds.om-i.org/types/LaunchConfiguration" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/computation/model_validation.py b/fairgraph/openminds/v5/computation/model_validation.py index e760fed0..ba96d9b3 100644 --- a/fairgraph/openminds/v5/computation/model_validation.py +++ b/fairgraph/openminds/v5/computation/model_validation.py @@ -20,6 +20,7 @@ class ModelValidation(KGObject, OMModelValidation): type_ = "https://openminds.om-i.org/types/ModelValidation" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/computation/optimization.py b/fairgraph/openminds/v5/computation/optimization.py index e676687f..6e7afd55 100644 --- a/fairgraph/openminds/v5/computation/optimization.py +++ b/fairgraph/openminds/v5/computation/optimization.py @@ -19,6 +19,7 @@ class Optimization(KGObject, OMOptimization): type_ = "https://openminds.om-i.org/types/Optimization" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/computation/service_deployment.py b/fairgraph/openminds/v5/computation/service_deployment.py index 41616b27..d222d5a5 100644 --- a/fairgraph/openminds/v5/computation/service_deployment.py +++ b/fairgraph/openminds/v5/computation/service_deployment.py @@ -19,6 +19,7 @@ class ServiceDeployment(KGObject, OMServiceDeployment): type_ = "https://openminds.om-i.org/types/ServiceDeployment" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("name", "provides", "service", "start_time") diff --git a/fairgraph/openminds/v5/computation/simulation.py b/fairgraph/openminds/v5/computation/simulation.py index d33c71f5..40b36086 100644 --- a/fairgraph/openminds/v5/computation/simulation.py +++ b/fairgraph/openminds/v5/computation/simulation.py @@ -19,6 +19,7 @@ class Simulation(KGObject, OMSimulation): type_ = "https://openminds.om-i.org/types/Simulation" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/computation/software_agent.py b/fairgraph/openminds/v5/computation/software_agent.py index 37e22dbc..be203082 100644 --- a/fairgraph/openminds/v5/computation/software_agent.py +++ b/fairgraph/openminds/v5/computation/software_agent.py @@ -16,6 +16,7 @@ class SoftwareAgent(KGObject, OMSoftwareAgent): type_ = "https://openminds.om-i.org/types/SoftwareAgent" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/computation/validation_test.py b/fairgraph/openminds/v5/computation/validation_test.py index ea96fb68..f3669f72 100644 --- a/fairgraph/openminds/v5/computation/validation_test.py +++ b/fairgraph/openminds/v5/computation/validation_test.py @@ -19,6 +19,7 @@ class ValidationTest(KGObject, OMValidationTest): type_ = "https://openminds.om-i.org/types/ValidationTest" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/computation/validation_test_version.py b/fairgraph/openminds/v5/computation/validation_test_version.py index 1121d8d8..d08b521e 100644 --- a/fairgraph/openminds/v5/computation/validation_test_version.py +++ b/fairgraph/openminds/v5/computation/validation_test_version.py @@ -20,6 +20,7 @@ class ValidationTestVersion(KGObject, OMValidationTestVersion): type_ = "https://openminds.om-i.org/types/ValidationTestVersion" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/computation/visualization.py b/fairgraph/openminds/v5/computation/visualization.py index 66a07bfa..1fed027c 100644 --- a/fairgraph/openminds/v5/computation/visualization.py +++ b/fairgraph/openminds/v5/computation/visualization.py @@ -19,6 +19,7 @@ class Visualization(KGObject, OMVisualization): type_ = "https://openminds.om-i.org/types/Visualization" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/computation/workflow_execution.py b/fairgraph/openminds/v5/computation/workflow_execution.py index 96af24c9..a574cc25 100644 --- a/fairgraph/openminds/v5/computation/workflow_execution.py +++ b/fairgraph/openminds/v5/computation/workflow_execution.py @@ -16,6 +16,7 @@ class WorkflowExecution(KGObject, OMWorkflowExecution): type_ = "https://openminds.om-i.org/types/WorkflowExecution" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("stages",) diff --git a/fairgraph/openminds/v5/computation/workflow_recipe.py b/fairgraph/openminds/v5/computation/workflow_recipe.py index d7a8fd79..a1308f42 100644 --- a/fairgraph/openminds/v5/computation/workflow_recipe.py +++ b/fairgraph/openminds/v5/computation/workflow_recipe.py @@ -19,6 +19,7 @@ class WorkflowRecipe(KGObject, OMWorkflowRecipe): type_ = "https://openminds.om-i.org/types/WorkflowRecipe" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/computation/workflow_recipe_version.py b/fairgraph/openminds/v5/computation/workflow_recipe_version.py index bf7b0bb2..77066831 100644 --- a/fairgraph/openminds/v5/computation/workflow_recipe_version.py +++ b/fairgraph/openminds/v5/computation/workflow_recipe_version.py @@ -20,6 +20,7 @@ class WorkflowRecipeVersion(KGObject, OMWorkflowRecipeVersion): type_ = "https://openminds.om-i.org/types/WorkflowRecipeVersion" default_space = "computation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/access_channel.py b/fairgraph/openminds/v5/controlled_terms/access_channel.py index 761b0ddd..ff444932 100644 --- a/fairgraph/openminds/v5/controlled_terms/access_channel.py +++ b/fairgraph/openminds/v5/controlled_terms/access_channel.py @@ -19,6 +19,7 @@ class AccessChannel(KGObject, OMAccessChannel): type_ = "https://openminds.om-i.org/types/AccessChannel" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/access_eligibility_type.py b/fairgraph/openminds/v5/controlled_terms/access_eligibility_type.py index 78e1e7fb..8fc05ff1 100644 --- a/fairgraph/openminds/v5/controlled_terms/access_eligibility_type.py +++ b/fairgraph/openminds/v5/controlled_terms/access_eligibility_type.py @@ -19,6 +19,7 @@ class AccessEligibilityType(KGObject, OMAccessEligibilityType): type_ = "https://openminds.om-i.org/types/AccessEligibilityType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/access_form.py b/fairgraph/openminds/v5/controlled_terms/access_form.py index f1c2d91f..4237a2f5 100644 --- a/fairgraph/openminds/v5/controlled_terms/access_form.py +++ b/fairgraph/openminds/v5/controlled_terms/access_form.py @@ -19,6 +19,7 @@ class AccessForm(KGObject, OMAccessForm): type_ = "https://openminds.om-i.org/types/AccessForm" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/access_process_type.py b/fairgraph/openminds/v5/controlled_terms/access_process_type.py index 830428e1..d90cdfe0 100644 --- a/fairgraph/openminds/v5/controlled_terms/access_process_type.py +++ b/fairgraph/openminds/v5/controlled_terms/access_process_type.py @@ -19,6 +19,7 @@ class AccessProcessType(KGObject, OMAccessProcessType): type_ = "https://openminds.om-i.org/types/AccessProcessType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/action_status_type.py b/fairgraph/openminds/v5/controlled_terms/action_status_type.py index 8eb74ed2..9f3ca47e 100644 --- a/fairgraph/openminds/v5/controlled_terms/action_status_type.py +++ b/fairgraph/openminds/v5/controlled_terms/action_status_type.py @@ -19,6 +19,7 @@ class ActionStatusType(KGObject, OMActionStatusType): type_ = "https://openminds.om-i.org/types/ActionStatusType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/age_category.py b/fairgraph/openminds/v5/controlled_terms/age_category.py index 7b8993da..1448f8e5 100644 --- a/fairgraph/openminds/v5/controlled_terms/age_category.py +++ b/fairgraph/openminds/v5/controlled_terms/age_category.py @@ -19,6 +19,7 @@ class AgeCategory(KGObject, OMAgeCategory): type_ = "https://openminds.om-i.org/types/AgeCategory" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/age_reference.py b/fairgraph/openminds/v5/controlled_terms/age_reference.py index 8641e2c6..049722e1 100644 --- a/fairgraph/openminds/v5/controlled_terms/age_reference.py +++ b/fairgraph/openminds/v5/controlled_terms/age_reference.py @@ -19,6 +19,7 @@ class AgeReference(KGObject, OMAgeReference): type_ = "https://openminds.om-i.org/types/AgeReference" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/analysis_technique.py b/fairgraph/openminds/v5/controlled_terms/analysis_technique.py index 0b5c52de..5977ca89 100644 --- a/fairgraph/openminds/v5/controlled_terms/analysis_technique.py +++ b/fairgraph/openminds/v5/controlled_terms/analysis_technique.py @@ -19,6 +19,7 @@ class AnalysisTechnique(KGObject, OMAnalysisTechnique): type_ = "https://openminds.om-i.org/types/AnalysisTechnique" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/anatomical_axes_orientation.py b/fairgraph/openminds/v5/controlled_terms/anatomical_axes_orientation.py index 7816c526..558505b6 100644 --- a/fairgraph/openminds/v5/controlled_terms/anatomical_axes_orientation.py +++ b/fairgraph/openminds/v5/controlled_terms/anatomical_axes_orientation.py @@ -19,6 +19,7 @@ class AnatomicalAxesOrientation(KGObject, OMAnatomicalAxesOrientation): type_ = "https://openminds.om-i.org/types/AnatomicalAxesOrientation" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/anatomical_cavity.py b/fairgraph/openminds/v5/controlled_terms/anatomical_cavity.py index d3d206e2..dadf62bf 100644 --- a/fairgraph/openminds/v5/controlled_terms/anatomical_cavity.py +++ b/fairgraph/openminds/v5/controlled_terms/anatomical_cavity.py @@ -19,6 +19,7 @@ class AnatomicalCavity(KGObject, OMAnatomicalCavity): type_ = "https://openminds.om-i.org/types/AnatomicalCavity" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/anatomical_identification_type.py b/fairgraph/openminds/v5/controlled_terms/anatomical_identification_type.py index b90f4708..1933f1cb 100644 --- a/fairgraph/openminds/v5/controlled_terms/anatomical_identification_type.py +++ b/fairgraph/openminds/v5/controlled_terms/anatomical_identification_type.py @@ -19,6 +19,7 @@ class AnatomicalIdentificationType(KGObject, OMAnatomicalIdentificationType): type_ = "https://openminds.om-i.org/types/AnatomicalIdentificationType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/anatomical_plane.py b/fairgraph/openminds/v5/controlled_terms/anatomical_plane.py index 7ac44a17..c3b417a5 100644 --- a/fairgraph/openminds/v5/controlled_terms/anatomical_plane.py +++ b/fairgraph/openminds/v5/controlled_terms/anatomical_plane.py @@ -19,6 +19,7 @@ class AnatomicalPlane(KGObject, OMAnatomicalPlane): type_ = "https://openminds.om-i.org/types/AnatomicalPlane" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/annotation_criteria_type.py b/fairgraph/openminds/v5/controlled_terms/annotation_criteria_type.py index 6307ef80..2fcd24d0 100644 --- a/fairgraph/openminds/v5/controlled_terms/annotation_criteria_type.py +++ b/fairgraph/openminds/v5/controlled_terms/annotation_criteria_type.py @@ -19,6 +19,7 @@ class AnnotationCriteriaType(KGObject, OMAnnotationCriteriaType): type_ = "https://openminds.om-i.org/types/AnnotationCriteriaType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/annotation_type.py b/fairgraph/openminds/v5/controlled_terms/annotation_type.py index 39b97d6c..5b475223 100644 --- a/fairgraph/openminds/v5/controlled_terms/annotation_type.py +++ b/fairgraph/openminds/v5/controlled_terms/annotation_type.py @@ -19,6 +19,7 @@ class AnnotationType(KGObject, OMAnnotationType): type_ = "https://openminds.om-i.org/types/AnnotationType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/atlas_type.py b/fairgraph/openminds/v5/controlled_terms/atlas_type.py index c6d91e81..931780ff 100644 --- a/fairgraph/openminds/v5/controlled_terms/atlas_type.py +++ b/fairgraph/openminds/v5/controlled_terms/atlas_type.py @@ -19,6 +19,7 @@ class AtlasType(KGObject, OMAtlasType): type_ = "https://openminds.om-i.org/types/AtlasType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/auditory_stimulus_type.py b/fairgraph/openminds/v5/controlled_terms/auditory_stimulus_type.py index b33c7cb6..ac78c59e 100644 --- a/fairgraph/openminds/v5/controlled_terms/auditory_stimulus_type.py +++ b/fairgraph/openminds/v5/controlled_terms/auditory_stimulus_type.py @@ -19,6 +19,7 @@ class AuditoryStimulusType(KGObject, OMAuditoryStimulusType): type_ = "https://openminds.om-i.org/types/AuditoryStimulusType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/biological_order.py b/fairgraph/openminds/v5/controlled_terms/biological_order.py index bcedd249..76545c8b 100644 --- a/fairgraph/openminds/v5/controlled_terms/biological_order.py +++ b/fairgraph/openminds/v5/controlled_terms/biological_order.py @@ -19,6 +19,7 @@ class BiologicalOrder(KGObject, OMBiologicalOrder): type_ = "https://openminds.om-i.org/types/BiologicalOrder" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/biological_process.py b/fairgraph/openminds/v5/controlled_terms/biological_process.py index af1f8a18..a9a0d475 100644 --- a/fairgraph/openminds/v5/controlled_terms/biological_process.py +++ b/fairgraph/openminds/v5/controlled_terms/biological_process.py @@ -19,6 +19,7 @@ class BiologicalProcess(KGObject, OMBiologicalProcess): type_ = "https://openminds.om-i.org/types/BiologicalProcess" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/biological_sex.py b/fairgraph/openminds/v5/controlled_terms/biological_sex.py index 9a621534..a56141bb 100644 --- a/fairgraph/openminds/v5/controlled_terms/biological_sex.py +++ b/fairgraph/openminds/v5/controlled_terms/biological_sex.py @@ -19,6 +19,7 @@ class BiologicalSex(KGObject, OMBiologicalSex): type_ = "https://openminds.om-i.org/types/BiologicalSex" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/breeding_type.py b/fairgraph/openminds/v5/controlled_terms/breeding_type.py index 3740b486..f868231c 100644 --- a/fairgraph/openminds/v5/controlled_terms/breeding_type.py +++ b/fairgraph/openminds/v5/controlled_terms/breeding_type.py @@ -19,6 +19,7 @@ class BreedingType(KGObject, OMBreedingType): type_ = "https://openminds.om-i.org/types/BreedingType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/cell_culture_type.py b/fairgraph/openminds/v5/controlled_terms/cell_culture_type.py index 556041eb..41bea6dd 100644 --- a/fairgraph/openminds/v5/controlled_terms/cell_culture_type.py +++ b/fairgraph/openminds/v5/controlled_terms/cell_culture_type.py @@ -19,6 +19,7 @@ class CellCultureType(KGObject, OMCellCultureType): type_ = "https://openminds.om-i.org/types/CellCultureType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/cell_type.py b/fairgraph/openminds/v5/controlled_terms/cell_type.py index 93f67916..84c371ce 100644 --- a/fairgraph/openminds/v5/controlled_terms/cell_type.py +++ b/fairgraph/openminds/v5/controlled_terms/cell_type.py @@ -19,6 +19,7 @@ class CellType(KGObject, OMCellType): type_ = "https://openminds.om-i.org/types/CellType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/chemical_mixture_type.py b/fairgraph/openminds/v5/controlled_terms/chemical_mixture_type.py index 234ed851..c85b0b8b 100644 --- a/fairgraph/openminds/v5/controlled_terms/chemical_mixture_type.py +++ b/fairgraph/openminds/v5/controlled_terms/chemical_mixture_type.py @@ -19,6 +19,7 @@ class ChemicalMixtureType(KGObject, OMChemicalMixtureType): type_ = "https://openminds.om-i.org/types/ChemicalMixtureType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/colormap.py b/fairgraph/openminds/v5/controlled_terms/colormap.py index 9341813b..4dda3d82 100644 --- a/fairgraph/openminds/v5/controlled_terms/colormap.py +++ b/fairgraph/openminds/v5/controlled_terms/colormap.py @@ -19,6 +19,7 @@ class Colormap(KGObject, OMColormap): type_ = "https://openminds.om-i.org/types/Colormap" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/communication_interface_type.py b/fairgraph/openminds/v5/controlled_terms/communication_interface_type.py index 804e51fc..9b562777 100644 --- a/fairgraph/openminds/v5/controlled_terms/communication_interface_type.py +++ b/fairgraph/openminds/v5/controlled_terms/communication_interface_type.py @@ -19,6 +19,7 @@ class CommunicationInterfaceType(KGObject, OMCommunicationInterfaceType): type_ = "https://openminds.om-i.org/types/CommunicationInterfaceType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/communication_protocol.py b/fairgraph/openminds/v5/controlled_terms/communication_protocol.py index 64676e0d..8a2343fc 100644 --- a/fairgraph/openminds/v5/controlled_terms/communication_protocol.py +++ b/fairgraph/openminds/v5/controlled_terms/communication_protocol.py @@ -19,6 +19,7 @@ class CommunicationProtocol(KGObject, OMCommunicationProtocol): type_ = "https://openminds.om-i.org/types/CommunicationProtocol" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/contribution_type.py b/fairgraph/openminds/v5/controlled_terms/contribution_type.py index 1443516d..a16235b8 100644 --- a/fairgraph/openminds/v5/controlled_terms/contribution_type.py +++ b/fairgraph/openminds/v5/controlled_terms/contribution_type.py @@ -19,6 +19,7 @@ class ContributionType(KGObject, OMContributionType): type_ = "https://openminds.om-i.org/types/ContributionType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/cranial_window_construction_type.py b/fairgraph/openminds/v5/controlled_terms/cranial_window_construction_type.py index ca3ea29e..9368d8b8 100644 --- a/fairgraph/openminds/v5/controlled_terms/cranial_window_construction_type.py +++ b/fairgraph/openminds/v5/controlled_terms/cranial_window_construction_type.py @@ -19,6 +19,7 @@ class CranialWindowConstructionType(KGObject, OMCranialWindowConstructionType): type_ = "https://openminds.om-i.org/types/CranialWindowConstructionType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/cranial_window_reinforcement_type.py b/fairgraph/openminds/v5/controlled_terms/cranial_window_reinforcement_type.py index 5969ec64..033e591c 100644 --- a/fairgraph/openminds/v5/controlled_terms/cranial_window_reinforcement_type.py +++ b/fairgraph/openminds/v5/controlled_terms/cranial_window_reinforcement_type.py @@ -19,6 +19,7 @@ class CranialWindowReinforcementType(KGObject, OMCranialWindowReinforcementType) type_ = "https://openminds.om-i.org/types/CranialWindowReinforcementType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/criteria_quality_type.py b/fairgraph/openminds/v5/controlled_terms/criteria_quality_type.py index 9bc9accd..5451de04 100644 --- a/fairgraph/openminds/v5/controlled_terms/criteria_quality_type.py +++ b/fairgraph/openminds/v5/controlled_terms/criteria_quality_type.py @@ -19,6 +19,7 @@ class CriteriaQualityType(KGObject, OMCriteriaQualityType): type_ = "https://openminds.om-i.org/types/CriteriaQualityType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/data_type.py b/fairgraph/openminds/v5/controlled_terms/data_type.py index fa827b2d..8bbfe66f 100644 --- a/fairgraph/openminds/v5/controlled_terms/data_type.py +++ b/fairgraph/openminds/v5/controlled_terms/data_type.py @@ -19,6 +19,7 @@ class DataType(KGObject, OMDataType): type_ = "https://openminds.om-i.org/types/DataType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/dependency_impact.py b/fairgraph/openminds/v5/controlled_terms/dependency_impact.py index 549f62b3..3625a044 100644 --- a/fairgraph/openminds/v5/controlled_terms/dependency_impact.py +++ b/fairgraph/openminds/v5/controlled_terms/dependency_impact.py @@ -19,6 +19,7 @@ class DependencyImpact(KGObject, OMDependencyImpact): type_ = "https://openminds.om-i.org/types/DependencyImpact" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/deployment_environment_type.py b/fairgraph/openminds/v5/controlled_terms/deployment_environment_type.py index f8d8cb65..4eb39d14 100644 --- a/fairgraph/openminds/v5/controlled_terms/deployment_environment_type.py +++ b/fairgraph/openminds/v5/controlled_terms/deployment_environment_type.py @@ -19,6 +19,7 @@ class DeploymentEnvironmentType(KGObject, OMDeploymentEnvironmentType): type_ = "https://openminds.om-i.org/types/DeploymentEnvironmentType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/device_mounting_type.py b/fairgraph/openminds/v5/controlled_terms/device_mounting_type.py index eb8d8d68..44b8a6cf 100644 --- a/fairgraph/openminds/v5/controlled_terms/device_mounting_type.py +++ b/fairgraph/openminds/v5/controlled_terms/device_mounting_type.py @@ -19,6 +19,7 @@ class DeviceMountingType(KGObject, OMDeviceMountingType): type_ = "https://openminds.om-i.org/types/DeviceMountingType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/device_type.py b/fairgraph/openminds/v5/controlled_terms/device_type.py index 5a487ec1..aa55ffd0 100644 --- a/fairgraph/openminds/v5/controlled_terms/device_type.py +++ b/fairgraph/openminds/v5/controlled_terms/device_type.py @@ -19,6 +19,7 @@ class DeviceType(KGObject, OMDeviceType): type_ = "https://openminds.om-i.org/types/DeviceType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/difference_measure.py b/fairgraph/openminds/v5/controlled_terms/difference_measure.py index 05dbfce6..ca8f6bc3 100644 --- a/fairgraph/openminds/v5/controlled_terms/difference_measure.py +++ b/fairgraph/openminds/v5/controlled_terms/difference_measure.py @@ -19,6 +19,7 @@ class DifferenceMeasure(KGObject, OMDifferenceMeasure): type_ = "https://openminds.om-i.org/types/DifferenceMeasure" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/disease.py b/fairgraph/openminds/v5/controlled_terms/disease.py index 813f95d2..c118fb0b 100644 --- a/fairgraph/openminds/v5/controlled_terms/disease.py +++ b/fairgraph/openminds/v5/controlled_terms/disease.py @@ -19,6 +19,7 @@ class Disease(KGObject, OMDisease): type_ = "https://openminds.om-i.org/types/Disease" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/disease_model.py b/fairgraph/openminds/v5/controlled_terms/disease_model.py index 3181dfa5..f1751394 100644 --- a/fairgraph/openminds/v5/controlled_terms/disease_model.py +++ b/fairgraph/openminds/v5/controlled_terms/disease_model.py @@ -19,6 +19,7 @@ class DiseaseModel(KGObject, OMDiseaseModel): type_ = "https://openminds.om-i.org/types/DiseaseModel" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/educational_level.py b/fairgraph/openminds/v5/controlled_terms/educational_level.py index eb19f4c4..2b96330b 100644 --- a/fairgraph/openminds/v5/controlled_terms/educational_level.py +++ b/fairgraph/openminds/v5/controlled_terms/educational_level.py @@ -19,6 +19,7 @@ class EducationalLevel(KGObject, OMEducationalLevel): type_ = "https://openminds.om-i.org/types/EducationalLevel" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/electrical_stimulus_type.py b/fairgraph/openminds/v5/controlled_terms/electrical_stimulus_type.py index 52daf553..e840d46e 100644 --- a/fairgraph/openminds/v5/controlled_terms/electrical_stimulus_type.py +++ b/fairgraph/openminds/v5/controlled_terms/electrical_stimulus_type.py @@ -19,6 +19,7 @@ class ElectricalStimulusType(KGObject, OMElectricalStimulusType): type_ = "https://openminds.om-i.org/types/ElectricalStimulusType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/experimental_approach.py b/fairgraph/openminds/v5/controlled_terms/experimental_approach.py index e85a29e9..85bc08b3 100644 --- a/fairgraph/openminds/v5/controlled_terms/experimental_approach.py +++ b/fairgraph/openminds/v5/controlled_terms/experimental_approach.py @@ -19,6 +19,7 @@ class ExperimentalApproach(KGObject, OMExperimentalApproach): type_ = "https://openminds.om-i.org/types/ExperimentalApproach" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/external_body_region.py b/fairgraph/openminds/v5/controlled_terms/external_body_region.py index c4dae152..52ff0776 100644 --- a/fairgraph/openminds/v5/controlled_terms/external_body_region.py +++ b/fairgraph/openminds/v5/controlled_terms/external_body_region.py @@ -19,6 +19,7 @@ class ExternalBodyRegion(KGObject, OMExternalBodyRegion): type_ = "https://openminds.om-i.org/types/ExternalBodyRegion" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/file_bundle_grouping.py b/fairgraph/openminds/v5/controlled_terms/file_bundle_grouping.py index 4c22ff2d..04a90a90 100644 --- a/fairgraph/openminds/v5/controlled_terms/file_bundle_grouping.py +++ b/fairgraph/openminds/v5/controlled_terms/file_bundle_grouping.py @@ -19,6 +19,7 @@ class FileBundleGrouping(KGObject, OMFileBundleGrouping): type_ = "https://openminds.om-i.org/types/FileBundleGrouping" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/file_repository_type.py b/fairgraph/openminds/v5/controlled_terms/file_repository_type.py index 2371298a..f54998be 100644 --- a/fairgraph/openminds/v5/controlled_terms/file_repository_type.py +++ b/fairgraph/openminds/v5/controlled_terms/file_repository_type.py @@ -19,6 +19,7 @@ class FileRepositoryType(KGObject, OMFileRepositoryType): type_ = "https://openminds.om-i.org/types/FileRepositoryType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/file_usage_role.py b/fairgraph/openminds/v5/controlled_terms/file_usage_role.py index e87edb3b..5c3ef745 100644 --- a/fairgraph/openminds/v5/controlled_terms/file_usage_role.py +++ b/fairgraph/openminds/v5/controlled_terms/file_usage_role.py @@ -19,6 +19,7 @@ class FileUsageRole(KGObject, OMFileUsageRole): type_ = "https://openminds.om-i.org/types/FileUsageRole" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/genetic_strain_type.py b/fairgraph/openminds/v5/controlled_terms/genetic_strain_type.py index 5c3e4db4..7f4ee505 100644 --- a/fairgraph/openminds/v5/controlled_terms/genetic_strain_type.py +++ b/fairgraph/openminds/v5/controlled_terms/genetic_strain_type.py @@ -19,6 +19,7 @@ class GeneticStrainType(KGObject, OMGeneticStrainType): type_ = "https://openminds.om-i.org/types/GeneticStrainType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/gustatory_stimulus_type.py b/fairgraph/openminds/v5/controlled_terms/gustatory_stimulus_type.py index a98eb653..38063aaa 100644 --- a/fairgraph/openminds/v5/controlled_terms/gustatory_stimulus_type.py +++ b/fairgraph/openminds/v5/controlled_terms/gustatory_stimulus_type.py @@ -19,6 +19,7 @@ class GustatoryStimulusType(KGObject, OMGustatoryStimulusType): type_ = "https://openminds.om-i.org/types/GustatoryStimulusType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/handedness.py b/fairgraph/openminds/v5/controlled_terms/handedness.py index a102c65f..a4cbef89 100644 --- a/fairgraph/openminds/v5/controlled_terms/handedness.py +++ b/fairgraph/openminds/v5/controlled_terms/handedness.py @@ -19,6 +19,7 @@ class Handedness(KGObject, OMHandedness): type_ = "https://openminds.om-i.org/types/Handedness" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/language.py b/fairgraph/openminds/v5/controlled_terms/language.py index 8fc51fa5..55f75716 100644 --- a/fairgraph/openminds/v5/controlled_terms/language.py +++ b/fairgraph/openminds/v5/controlled_terms/language.py @@ -19,6 +19,7 @@ class Language(KGObject, OMLanguage): type_ = "https://openminds.om-i.org/types/Language" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/laterality.py b/fairgraph/openminds/v5/controlled_terms/laterality.py index f185960a..9bb018ef 100644 --- a/fairgraph/openminds/v5/controlled_terms/laterality.py +++ b/fairgraph/openminds/v5/controlled_terms/laterality.py @@ -19,6 +19,7 @@ class Laterality(KGObject, OMLaterality): type_ = "https://openminds.om-i.org/types/Laterality" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/learning_resource_type.py b/fairgraph/openminds/v5/controlled_terms/learning_resource_type.py index af8ac2b4..91b463b7 100644 --- a/fairgraph/openminds/v5/controlled_terms/learning_resource_type.py +++ b/fairgraph/openminds/v5/controlled_terms/learning_resource_type.py @@ -19,6 +19,7 @@ class LearningResourceType(KGObject, OMLearningResourceType): type_ = "https://openminds.om-i.org/types/LearningResourceType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/measured_quantity.py b/fairgraph/openminds/v5/controlled_terms/measured_quantity.py index 3cbbdb4d..f07bea96 100644 --- a/fairgraph/openminds/v5/controlled_terms/measured_quantity.py +++ b/fairgraph/openminds/v5/controlled_terms/measured_quantity.py @@ -19,6 +19,7 @@ class MeasuredQuantity(KGObject, OMMeasuredQuantity): type_ = "https://openminds.om-i.org/types/MeasuredQuantity" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/measured_signal_type.py b/fairgraph/openminds/v5/controlled_terms/measured_signal_type.py index 27136412..52eee79c 100644 --- a/fairgraph/openminds/v5/controlled_terms/measured_signal_type.py +++ b/fairgraph/openminds/v5/controlled_terms/measured_signal_type.py @@ -19,6 +19,7 @@ class MeasuredSignalType(KGObject, OMMeasuredSignalType): type_ = "https://openminds.om-i.org/types/MeasuredSignalType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/meta_data_model_type.py b/fairgraph/openminds/v5/controlled_terms/meta_data_model_type.py index 253c4135..6c46c6ba 100644 --- a/fairgraph/openminds/v5/controlled_terms/meta_data_model_type.py +++ b/fairgraph/openminds/v5/controlled_terms/meta_data_model_type.py @@ -19,6 +19,7 @@ class MetaDataModelType(KGObject, OMMetaDataModelType): type_ = "https://openminds.om-i.org/types/MetaDataModelType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/model_abstraction_level.py b/fairgraph/openminds/v5/controlled_terms/model_abstraction_level.py index 7d0a079b..ca362e0b 100644 --- a/fairgraph/openminds/v5/controlled_terms/model_abstraction_level.py +++ b/fairgraph/openminds/v5/controlled_terms/model_abstraction_level.py @@ -19,6 +19,7 @@ class ModelAbstractionLevel(KGObject, OMModelAbstractionLevel): type_ = "https://openminds.om-i.org/types/ModelAbstractionLevel" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/model_scope.py b/fairgraph/openminds/v5/controlled_terms/model_scope.py index e71479cf..5175052f 100644 --- a/fairgraph/openminds/v5/controlled_terms/model_scope.py +++ b/fairgraph/openminds/v5/controlled_terms/model_scope.py @@ -19,6 +19,7 @@ class ModelScope(KGObject, OMModelScope): type_ = "https://openminds.om-i.org/types/ModelScope" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/modification_consent_requirement.py b/fairgraph/openminds/v5/controlled_terms/modification_consent_requirement.py index 79929f3f..2d05355f 100644 --- a/fairgraph/openminds/v5/controlled_terms/modification_consent_requirement.py +++ b/fairgraph/openminds/v5/controlled_terms/modification_consent_requirement.py @@ -19,6 +19,7 @@ class ModificationConsentRequirement(KGObject, OMModificationConsentRequirement) type_ = "https://openminds.om-i.org/types/ModificationConsentRequirement" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/modification_constraint.py b/fairgraph/openminds/v5/controlled_terms/modification_constraint.py index 493f5580..b8e7819e 100644 --- a/fairgraph/openminds/v5/controlled_terms/modification_constraint.py +++ b/fairgraph/openminds/v5/controlled_terms/modification_constraint.py @@ -19,6 +19,7 @@ class ModificationConstraint(KGObject, OMModificationConstraint): type_ = "https://openminds.om-i.org/types/ModificationConstraint" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/modification_form.py b/fairgraph/openminds/v5/controlled_terms/modification_form.py index 1e5e085a..a824e7bc 100644 --- a/fairgraph/openminds/v5/controlled_terms/modification_form.py +++ b/fairgraph/openminds/v5/controlled_terms/modification_form.py @@ -19,6 +19,7 @@ class ModificationForm(KGObject, OMModificationForm): type_ = "https://openminds.om-i.org/types/ModificationForm" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/modification_scope.py b/fairgraph/openminds/v5/controlled_terms/modification_scope.py index 66e648d1..de28f174 100644 --- a/fairgraph/openminds/v5/controlled_terms/modification_scope.py +++ b/fairgraph/openminds/v5/controlled_terms/modification_scope.py @@ -19,6 +19,7 @@ class ModificationScope(KGObject, OMModificationScope): type_ = "https://openminds.om-i.org/types/ModificationScope" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/molecular_entity.py b/fairgraph/openminds/v5/controlled_terms/molecular_entity.py index 13dd193c..da537484 100644 --- a/fairgraph/openminds/v5/controlled_terms/molecular_entity.py +++ b/fairgraph/openminds/v5/controlled_terms/molecular_entity.py @@ -19,6 +19,7 @@ class MolecularEntity(KGObject, OMMolecularEntity): type_ = "https://openminds.om-i.org/types/MolecularEntity" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/mri_fat_suppression_technique.py b/fairgraph/openminds/v5/controlled_terms/mri_fat_suppression_technique.py index b1b30677..e5ee41c5 100644 --- a/fairgraph/openminds/v5/controlled_terms/mri_fat_suppression_technique.py +++ b/fairgraph/openminds/v5/controlled_terms/mri_fat_suppression_technique.py @@ -19,6 +19,7 @@ class MRIFatSuppressionTechnique(KGObject, OMMRIFatSuppressionTechnique): type_ = "https://openminds.om-i.org/types/MRIFatSuppressionTechnique" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/mri_parallel_acquisition_technique.py b/fairgraph/openminds/v5/controlled_terms/mri_parallel_acquisition_technique.py index 0985bec0..065050c3 100644 --- a/fairgraph/openminds/v5/controlled_terms/mri_parallel_acquisition_technique.py +++ b/fairgraph/openminds/v5/controlled_terms/mri_parallel_acquisition_technique.py @@ -19,6 +19,7 @@ class MRIParallelAcquisitionTechnique(KGObject, OMMRIParallelAcquisitionTechniqu type_ = "https://openminds.om-i.org/types/MRIParallelAcquisitionTechnique" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/mri_pulse_sequence.py b/fairgraph/openminds/v5/controlled_terms/mri_pulse_sequence.py index 3a743793..bf7a9c2d 100644 --- a/fairgraph/openminds/v5/controlled_terms/mri_pulse_sequence.py +++ b/fairgraph/openminds/v5/controlled_terms/mri_pulse_sequence.py @@ -19,6 +19,7 @@ class MRIPulseSequence(KGObject, OMMRIPulseSequence): type_ = "https://openminds.om-i.org/types/MRIPulseSequence" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/mri_spoiling_technique.py b/fairgraph/openminds/v5/controlled_terms/mri_spoiling_technique.py index 110c5584..a0db3e88 100644 --- a/fairgraph/openminds/v5/controlled_terms/mri_spoiling_technique.py +++ b/fairgraph/openminds/v5/controlled_terms/mri_spoiling_technique.py @@ -19,6 +19,7 @@ class MRISpoilingTechnique(KGObject, OMMRISpoilingTechnique): type_ = "https://openminds.om-i.org/types/MRISpoilingTechnique" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/mri_weighting.py b/fairgraph/openminds/v5/controlled_terms/mri_weighting.py index 46032e3b..96fcc89c 100644 --- a/fairgraph/openminds/v5/controlled_terms/mri_weighting.py +++ b/fairgraph/openminds/v5/controlled_terms/mri_weighting.py @@ -19,6 +19,7 @@ class MRIWeighting(KGObject, OMMRIWeighting): type_ = "https://openminds.om-i.org/types/MRIWeighting" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/muscular_structure.py b/fairgraph/openminds/v5/controlled_terms/muscular_structure.py index 60b246c7..d67f3d77 100644 --- a/fairgraph/openminds/v5/controlled_terms/muscular_structure.py +++ b/fairgraph/openminds/v5/controlled_terms/muscular_structure.py @@ -19,6 +19,7 @@ class MuscularStructure(KGObject, OMMuscularStructure): type_ = "https://openminds.om-i.org/types/MuscularStructure" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/nervous_system_structure.py b/fairgraph/openminds/v5/controlled_terms/nervous_system_structure.py index 7e9b8515..7fd75ead 100644 --- a/fairgraph/openminds/v5/controlled_terms/nervous_system_structure.py +++ b/fairgraph/openminds/v5/controlled_terms/nervous_system_structure.py @@ -19,6 +19,7 @@ class NervousSystemStructure(KGObject, OMNervousSystemStructure): type_ = "https://openminds.om-i.org/types/NervousSystemStructure" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/olfactory_stimulus_type.py b/fairgraph/openminds/v5/controlled_terms/olfactory_stimulus_type.py index 182b44e2..d0d43eec 100644 --- a/fairgraph/openminds/v5/controlled_terms/olfactory_stimulus_type.py +++ b/fairgraph/openminds/v5/controlled_terms/olfactory_stimulus_type.py @@ -19,6 +19,7 @@ class OlfactoryStimulusType(KGObject, OMOlfactoryStimulusType): type_ = "https://openminds.om-i.org/types/OlfactoryStimulusType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/operating_device.py b/fairgraph/openminds/v5/controlled_terms/operating_device.py index cd9b00f4..58f57cd7 100644 --- a/fairgraph/openminds/v5/controlled_terms/operating_device.py +++ b/fairgraph/openminds/v5/controlled_terms/operating_device.py @@ -19,6 +19,7 @@ class OperatingDevice(KGObject, OMOperatingDevice): type_ = "https://openminds.om-i.org/types/OperatingDevice" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/operating_system.py b/fairgraph/openminds/v5/controlled_terms/operating_system.py index 4d53579e..ec8e1309 100644 --- a/fairgraph/openminds/v5/controlled_terms/operating_system.py +++ b/fairgraph/openminds/v5/controlled_terms/operating_system.py @@ -19,6 +19,7 @@ class OperatingSystem(KGObject, OMOperatingSystem): type_ = "https://openminds.om-i.org/types/OperatingSystem" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/operational_approach.py b/fairgraph/openminds/v5/controlled_terms/operational_approach.py index 326113de..db88e110 100644 --- a/fairgraph/openminds/v5/controlled_terms/operational_approach.py +++ b/fairgraph/openminds/v5/controlled_terms/operational_approach.py @@ -19,6 +19,7 @@ class OperationalApproach(KGObject, OMOperationalApproach): type_ = "https://openminds.om-i.org/types/OperationalApproach" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/optical_stimulus_type.py b/fairgraph/openminds/v5/controlled_terms/optical_stimulus_type.py index 1c9907c2..8deb7c7b 100644 --- a/fairgraph/openminds/v5/controlled_terms/optical_stimulus_type.py +++ b/fairgraph/openminds/v5/controlled_terms/optical_stimulus_type.py @@ -19,6 +19,7 @@ class OpticalStimulusType(KGObject, OMOpticalStimulusType): type_ = "https://openminds.om-i.org/types/OpticalStimulusType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/organ.py b/fairgraph/openminds/v5/controlled_terms/organ.py index aa463e91..3ffb0a75 100644 --- a/fairgraph/openminds/v5/controlled_terms/organ.py +++ b/fairgraph/openminds/v5/controlled_terms/organ.py @@ -19,6 +19,7 @@ class Organ(KGObject, OMOrgan): type_ = "https://openminds.om-i.org/types/Organ" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/organ_system_structure.py b/fairgraph/openminds/v5/controlled_terms/organ_system_structure.py index 9b5e7f58..ad615df6 100644 --- a/fairgraph/openminds/v5/controlled_terms/organ_system_structure.py +++ b/fairgraph/openminds/v5/controlled_terms/organ_system_structure.py @@ -19,6 +19,7 @@ class OrganSystemStructure(KGObject, OMOrganSystemStructure): type_ = "https://openminds.om-i.org/types/OrganSystemStructure" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/organism_substance.py b/fairgraph/openminds/v5/controlled_terms/organism_substance.py index d7bacc45..f19f1f10 100644 --- a/fairgraph/openminds/v5/controlled_terms/organism_substance.py +++ b/fairgraph/openminds/v5/controlled_terms/organism_substance.py @@ -19,6 +19,7 @@ class OrganismSubstance(KGObject, OMOrganismSubstance): type_ = "https://openminds.om-i.org/types/OrganismSubstance" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/organism_system.py b/fairgraph/openminds/v5/controlled_terms/organism_system.py index 70ba40b5..6b745299 100644 --- a/fairgraph/openminds/v5/controlled_terms/organism_system.py +++ b/fairgraph/openminds/v5/controlled_terms/organism_system.py @@ -19,6 +19,7 @@ class OrganismSystem(KGObject, OMOrganismSystem): type_ = "https://openminds.om-i.org/types/OrganismSystem" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/organization_type.py b/fairgraph/openminds/v5/controlled_terms/organization_type.py index cf15948c..8cd45ff2 100644 --- a/fairgraph/openminds/v5/controlled_terms/organization_type.py +++ b/fairgraph/openminds/v5/controlled_terms/organization_type.py @@ -19,6 +19,7 @@ class OrganizationType(KGObject, OMOrganizationType): type_ = "https://openminds.om-i.org/types/OrganizationType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/patch_clamp_variation.py b/fairgraph/openminds/v5/controlled_terms/patch_clamp_variation.py index 4353e3cf..2b039320 100644 --- a/fairgraph/openminds/v5/controlled_terms/patch_clamp_variation.py +++ b/fairgraph/openminds/v5/controlled_terms/patch_clamp_variation.py @@ -19,6 +19,7 @@ class PatchClampVariation(KGObject, OMPatchClampVariation): type_ = "https://openminds.om-i.org/types/PatchClampVariation" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/payment_model_type.py b/fairgraph/openminds/v5/controlled_terms/payment_model_type.py index 3aabb06b..32c00921 100644 --- a/fairgraph/openminds/v5/controlled_terms/payment_model_type.py +++ b/fairgraph/openminds/v5/controlled_terms/payment_model_type.py @@ -19,6 +19,7 @@ class PaymentModelType(KGObject, OMPaymentModelType): type_ = "https://openminds.om-i.org/types/PaymentModelType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/preparation_type.py b/fairgraph/openminds/v5/controlled_terms/preparation_type.py index 0053a162..72f0a86e 100644 --- a/fairgraph/openminds/v5/controlled_terms/preparation_type.py +++ b/fairgraph/openminds/v5/controlled_terms/preparation_type.py @@ -19,6 +19,7 @@ class PreparationType(KGObject, OMPreparationType): type_ = "https://openminds.om-i.org/types/PreparationType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/programming_language.py b/fairgraph/openminds/v5/controlled_terms/programming_language.py index ba352c36..f976d4fc 100644 --- a/fairgraph/openminds/v5/controlled_terms/programming_language.py +++ b/fairgraph/openminds/v5/controlled_terms/programming_language.py @@ -19,6 +19,7 @@ class ProgrammingLanguage(KGObject, OMProgrammingLanguage): type_ = "https://openminds.om-i.org/types/ProgrammingLanguage" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/project_type.py b/fairgraph/openminds/v5/controlled_terms/project_type.py index 3e6f9b17..93442ff3 100644 --- a/fairgraph/openminds/v5/controlled_terms/project_type.py +++ b/fairgraph/openminds/v5/controlled_terms/project_type.py @@ -19,6 +19,7 @@ class ProjectType(KGObject, OMProjectType): type_ = "https://openminds.om-i.org/types/ProjectType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/publication_status.py b/fairgraph/openminds/v5/controlled_terms/publication_status.py index dc9a2d91..5687aa8a 100644 --- a/fairgraph/openminds/v5/controlled_terms/publication_status.py +++ b/fairgraph/openminds/v5/controlled_terms/publication_status.py @@ -19,6 +19,7 @@ class PublicationStatus(KGObject, OMPublicationStatus): type_ = "https://openminds.om-i.org/types/PublicationStatus" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/pulse_shape.py b/fairgraph/openminds/v5/controlled_terms/pulse_shape.py index bbfa0fc2..7b7cc33d 100644 --- a/fairgraph/openminds/v5/controlled_terms/pulse_shape.py +++ b/fairgraph/openminds/v5/controlled_terms/pulse_shape.py @@ -19,6 +19,7 @@ class PulseShape(KGObject, OMPulseShape): type_ = "https://openminds.om-i.org/types/PulseShape" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/qualitative_overlap.py b/fairgraph/openminds/v5/controlled_terms/qualitative_overlap.py index 3a06b997..fb80efa7 100644 --- a/fairgraph/openminds/v5/controlled_terms/qualitative_overlap.py +++ b/fairgraph/openminds/v5/controlled_terms/qualitative_overlap.py @@ -19,6 +19,7 @@ class QualitativeOverlap(KGObject, OMQualitativeOverlap): type_ = "https://openminds.om-i.org/types/QualitativeOverlap" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/semantic_data_type.py b/fairgraph/openminds/v5/controlled_terms/semantic_data_type.py index 3e4fe7c3..4c585a58 100644 --- a/fairgraph/openminds/v5/controlled_terms/semantic_data_type.py +++ b/fairgraph/openminds/v5/controlled_terms/semantic_data_type.py @@ -19,6 +19,7 @@ class SemanticDataType(KGObject, OMSemanticDataType): type_ = "https://openminds.om-i.org/types/SemanticDataType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/setup_type.py b/fairgraph/openminds/v5/controlled_terms/setup_type.py index c9193f1d..b149c221 100644 --- a/fairgraph/openminds/v5/controlled_terms/setup_type.py +++ b/fairgraph/openminds/v5/controlled_terms/setup_type.py @@ -19,6 +19,7 @@ class SetupType(KGObject, OMSetupType): type_ = "https://openminds.om-i.org/types/SetupType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/signal_directionality.py b/fairgraph/openminds/v5/controlled_terms/signal_directionality.py index 7aa247ff..bbd38fba 100644 --- a/fairgraph/openminds/v5/controlled_terms/signal_directionality.py +++ b/fairgraph/openminds/v5/controlled_terms/signal_directionality.py @@ -19,6 +19,7 @@ class SignalDirectionality(KGObject, OMSignalDirectionality): type_ = "https://openminds.om-i.org/types/SignalDirectionality" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/skeletal_structure.py b/fairgraph/openminds/v5/controlled_terms/skeletal_structure.py index d3eef24b..c32ee64e 100644 --- a/fairgraph/openminds/v5/controlled_terms/skeletal_structure.py +++ b/fairgraph/openminds/v5/controlled_terms/skeletal_structure.py @@ -19,6 +19,7 @@ class SkeletalStructure(KGObject, OMSkeletalStructure): type_ = "https://openminds.om-i.org/types/SkeletalStructure" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/software_application_category.py b/fairgraph/openminds/v5/controlled_terms/software_application_category.py index bc08e184..199f1164 100644 --- a/fairgraph/openminds/v5/controlled_terms/software_application_category.py +++ b/fairgraph/openminds/v5/controlled_terms/software_application_category.py @@ -19,6 +19,7 @@ class SoftwareApplicationCategory(KGObject, OMSoftwareApplicationCategory): type_ = "https://openminds.om-i.org/types/SoftwareApplicationCategory" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/software_feature.py b/fairgraph/openminds/v5/controlled_terms/software_feature.py index 3f675cf8..32a11d5c 100644 --- a/fairgraph/openminds/v5/controlled_terms/software_feature.py +++ b/fairgraph/openminds/v5/controlled_terms/software_feature.py @@ -19,6 +19,7 @@ class SoftwareFeature(KGObject, OMSoftwareFeature): type_ = "https://openminds.om-i.org/types/SoftwareFeature" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/sovereign_state.py b/fairgraph/openminds/v5/controlled_terms/sovereign_state.py index e2ad4edb..bd388f6f 100644 --- a/fairgraph/openminds/v5/controlled_terms/sovereign_state.py +++ b/fairgraph/openminds/v5/controlled_terms/sovereign_state.py @@ -19,6 +19,7 @@ class SovereignState(KGObject, OMSovereignState): type_ = "https://openminds.om-i.org/types/SovereignState" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/spatial_encoding.py b/fairgraph/openminds/v5/controlled_terms/spatial_encoding.py index aebfb22a..d40fe4a1 100644 --- a/fairgraph/openminds/v5/controlled_terms/spatial_encoding.py +++ b/fairgraph/openminds/v5/controlled_terms/spatial_encoding.py @@ -19,6 +19,7 @@ class SpatialEncoding(KGObject, OMSpatialEncoding): type_ = "https://openminds.om-i.org/types/SpatialEncoding" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/species.py b/fairgraph/openminds/v5/controlled_terms/species.py index 711a5765..86295de7 100644 --- a/fairgraph/openminds/v5/controlled_terms/species.py +++ b/fairgraph/openminds/v5/controlled_terms/species.py @@ -19,6 +19,7 @@ class Species(KGObject, OMSpecies): type_ = "https://openminds.om-i.org/types/Species" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/stimulation_approach.py b/fairgraph/openminds/v5/controlled_terms/stimulation_approach.py index 0f257afe..fef1e77c 100644 --- a/fairgraph/openminds/v5/controlled_terms/stimulation_approach.py +++ b/fairgraph/openminds/v5/controlled_terms/stimulation_approach.py @@ -19,6 +19,7 @@ class StimulationApproach(KGObject, OMStimulationApproach): type_ = "https://openminds.om-i.org/types/StimulationApproach" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/stimulation_technique.py b/fairgraph/openminds/v5/controlled_terms/stimulation_technique.py index ce7fd4e8..be76505b 100644 --- a/fairgraph/openminds/v5/controlled_terms/stimulation_technique.py +++ b/fairgraph/openminds/v5/controlled_terms/stimulation_technique.py @@ -19,6 +19,7 @@ class StimulationTechnique(KGObject, OMStimulationTechnique): type_ = "https://openminds.om-i.org/types/StimulationTechnique" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/subcellular_entity.py b/fairgraph/openminds/v5/controlled_terms/subcellular_entity.py index 36ff5d32..43a46a99 100644 --- a/fairgraph/openminds/v5/controlled_terms/subcellular_entity.py +++ b/fairgraph/openminds/v5/controlled_terms/subcellular_entity.py @@ -19,6 +19,7 @@ class SubcellularEntity(KGObject, OMSubcellularEntity): type_ = "https://openminds.om-i.org/types/SubcellularEntity" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/subject_attribute.py b/fairgraph/openminds/v5/controlled_terms/subject_attribute.py index 912eacc5..d9e29379 100644 --- a/fairgraph/openminds/v5/controlled_terms/subject_attribute.py +++ b/fairgraph/openminds/v5/controlled_terms/subject_attribute.py @@ -19,6 +19,7 @@ class SubjectAttribute(KGObject, OMSubjectAttribute): type_ = "https://openminds.om-i.org/types/SubjectAttribute" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/supranational_body.py b/fairgraph/openminds/v5/controlled_terms/supranational_body.py index a8e5f125..fbb40ce8 100644 --- a/fairgraph/openminds/v5/controlled_terms/supranational_body.py +++ b/fairgraph/openminds/v5/controlled_terms/supranational_body.py @@ -19,6 +19,7 @@ class SupranationalBody(KGObject, OMSupranationalBody): type_ = "https://openminds.om-i.org/types/SupranationalBody" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/tactile_stimulus_type.py b/fairgraph/openminds/v5/controlled_terms/tactile_stimulus_type.py index 2f839fbc..36ba2f3d 100644 --- a/fairgraph/openminds/v5/controlled_terms/tactile_stimulus_type.py +++ b/fairgraph/openminds/v5/controlled_terms/tactile_stimulus_type.py @@ -19,6 +19,7 @@ class TactileStimulusType(KGObject, OMTactileStimulusType): type_ = "https://openminds.om-i.org/types/TactileStimulusType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/technique.py b/fairgraph/openminds/v5/controlled_terms/technique.py index 1e82340d..754a45a9 100644 --- a/fairgraph/openminds/v5/controlled_terms/technique.py +++ b/fairgraph/openminds/v5/controlled_terms/technique.py @@ -19,6 +19,7 @@ class Technique(KGObject, OMTechnique): type_ = "https://openminds.om-i.org/types/Technique" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/term_suggestion.py b/fairgraph/openminds/v5/controlled_terms/term_suggestion.py index 3f9fe399..54953b4d 100644 --- a/fairgraph/openminds/v5/controlled_terms/term_suggestion.py +++ b/fairgraph/openminds/v5/controlled_terms/term_suggestion.py @@ -19,6 +19,7 @@ class TermSuggestion(KGObject, OMTermSuggestion): type_ = "https://openminds.om-i.org/types/TermSuggestion" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/terminology.py b/fairgraph/openminds/v5/controlled_terms/terminology.py index 87aa5205..b2481db6 100644 --- a/fairgraph/openminds/v5/controlled_terms/terminology.py +++ b/fairgraph/openminds/v5/controlled_terms/terminology.py @@ -19,6 +19,7 @@ class Terminology(KGObject, OMTerminology): type_ = "https://openminds.om-i.org/types/Terminology" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/tissue_sample_attribute.py b/fairgraph/openminds/v5/controlled_terms/tissue_sample_attribute.py index 1a4aa59d..7dbdacac 100644 --- a/fairgraph/openminds/v5/controlled_terms/tissue_sample_attribute.py +++ b/fairgraph/openminds/v5/controlled_terms/tissue_sample_attribute.py @@ -19,6 +19,7 @@ class TissueSampleAttribute(KGObject, OMTissueSampleAttribute): type_ = "https://openminds.om-i.org/types/TissueSampleAttribute" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/tissue_sample_type.py b/fairgraph/openminds/v5/controlled_terms/tissue_sample_type.py index 004cc653..fe86b630 100644 --- a/fairgraph/openminds/v5/controlled_terms/tissue_sample_type.py +++ b/fairgraph/openminds/v5/controlled_terms/tissue_sample_type.py @@ -19,6 +19,7 @@ class TissueSampleType(KGObject, OMTissueSampleType): type_ = "https://openminds.om-i.org/types/TissueSampleType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/tissue_structure.py b/fairgraph/openminds/v5/controlled_terms/tissue_structure.py index fddb3bfa..e539f808 100644 --- a/fairgraph/openminds/v5/controlled_terms/tissue_structure.py +++ b/fairgraph/openminds/v5/controlled_terms/tissue_structure.py @@ -19,6 +19,7 @@ class TissueStructure(KGObject, OMTissueStructure): type_ = "https://openminds.om-i.org/types/TissueStructure" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/type_of_uncertainty.py b/fairgraph/openminds/v5/controlled_terms/type_of_uncertainty.py index 1f6b8dee..632936d6 100644 --- a/fairgraph/openminds/v5/controlled_terms/type_of_uncertainty.py +++ b/fairgraph/openminds/v5/controlled_terms/type_of_uncertainty.py @@ -19,6 +19,7 @@ class TypeOfUncertainty(KGObject, OMTypeOfUncertainty): type_ = "https://openminds.om-i.org/types/TypeOfUncertainty" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/unit_of_measurement.py b/fairgraph/openminds/v5/controlled_terms/unit_of_measurement.py index 1f5097b8..f0d0289a 100644 --- a/fairgraph/openminds/v5/controlled_terms/unit_of_measurement.py +++ b/fairgraph/openminds/v5/controlled_terms/unit_of_measurement.py @@ -19,6 +19,7 @@ class UnitOfMeasurement(KGObject, OMUnitOfMeasurement): type_ = "https://openminds.om-i.org/types/UnitOfMeasurement" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/vascular_structure.py b/fairgraph/openminds/v5/controlled_terms/vascular_structure.py index 303d7f80..70e5efe7 100644 --- a/fairgraph/openminds/v5/controlled_terms/vascular_structure.py +++ b/fairgraph/openminds/v5/controlled_terms/vascular_structure.py @@ -19,6 +19,7 @@ class VascularStructure(KGObject, OMVascularStructure): type_ = "https://openminds.om-i.org/types/VascularStructure" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/visual_stimulus_type.py b/fairgraph/openminds/v5/controlled_terms/visual_stimulus_type.py index ecd7a7fd..6875189b 100644 --- a/fairgraph/openminds/v5/controlled_terms/visual_stimulus_type.py +++ b/fairgraph/openminds/v5/controlled_terms/visual_stimulus_type.py @@ -19,6 +19,7 @@ class VisualStimulusType(KGObject, OMVisualStimulusType): type_ = "https://openminds.om-i.org/types/VisualStimulusType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/weight_type.py b/fairgraph/openminds/v5/controlled_terms/weight_type.py index 8cb83e8e..126d6daf 100644 --- a/fairgraph/openminds/v5/controlled_terms/weight_type.py +++ b/fairgraph/openminds/v5/controlled_terms/weight_type.py @@ -19,6 +19,7 @@ class WeightType(KGObject, OMWeightType): type_ = "https://openminds.om-i.org/types/WeightType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/actors/account_information.py b/fairgraph/openminds/v5/core/actors/account_information.py index 33ccf40a..efcaa041 100644 --- a/fairgraph/openminds/v5/core/actors/account_information.py +++ b/fairgraph/openminds/v5/core/actors/account_information.py @@ -16,6 +16,7 @@ class AccountInformation(KGObject, OMAccountInformation): type_ = "https://openminds.om-i.org/types/AccountInformation" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/actors/affiliation.py b/fairgraph/openminds/v5/core/actors/affiliation.py index eb374cf3..71e78f61 100644 --- a/fairgraph/openminds/v5/core/actors/affiliation.py +++ b/fairgraph/openminds/v5/core/actors/affiliation.py @@ -15,6 +15,7 @@ class Affiliation(KGEmbedded, OMAffiliation): """ type_ = "https://openminds.om-i.org/types/Affiliation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("organizations", "person") diff --git a/fairgraph/openminds/v5/core/actors/consortium.py b/fairgraph/openminds/v5/core/actors/consortium.py index f09b3ec0..aebf5016 100644 --- a/fairgraph/openminds/v5/core/actors/consortium.py +++ b/fairgraph/openminds/v5/core/actors/consortium.py @@ -19,6 +19,7 @@ class Consortium(KGObject, OMConsortium): type_ = "https://openminds.om-i.org/types/Consortium" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/actors/contact_information.py b/fairgraph/openminds/v5/core/actors/contact_information.py index 545a95a8..4e5fb1e9 100644 --- a/fairgraph/openminds/v5/core/actors/contact_information.py +++ b/fairgraph/openminds/v5/core/actors/contact_information.py @@ -16,6 +16,7 @@ class ContactInformation(KGObject, OMContactInformation): type_ = "https://openminds.om-i.org/types/ContactInformation" default_space = "restricted" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/actors/contribution.py b/fairgraph/openminds/v5/core/actors/contribution.py index 3a57fca9..2b3c5718 100644 --- a/fairgraph/openminds/v5/core/actors/contribution.py +++ b/fairgraph/openminds/v5/core/actors/contribution.py @@ -15,6 +15,7 @@ class Contribution(KGEmbedded, OMContribution): """ type_ = "https://openminds.om-i.org/types/Contribution" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("contributors", "type") diff --git a/fairgraph/openminds/v5/core/actors/organization.py b/fairgraph/openminds/v5/core/actors/organization.py index d8056dde..8f698bd3 100644 --- a/fairgraph/openminds/v5/core/actors/organization.py +++ b/fairgraph/openminds/v5/core/actors/organization.py @@ -19,6 +19,7 @@ class Organization(KGObject, OMOrganization): type_ = "https://openminds.om-i.org/types/Organization" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/actors/person.py b/fairgraph/openminds/v5/core/actors/person.py index c5083af8..da262b22 100644 --- a/fairgraph/openminds/v5/core/actors/person.py +++ b/fairgraph/openminds/v5/core/actors/person.py @@ -16,6 +16,7 @@ class Person(KGObject, OMPerson): type_ = "https://openminds.om-i.org/types/Person" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/data/channel.py b/fairgraph/openminds/v5/core/data/channel.py index 5010f2aa..30a946c9 100644 --- a/fairgraph/openminds/v5/core/data/channel.py +++ b/fairgraph/openminds/v5/core/data/channel.py @@ -15,6 +15,7 @@ class Channel(KGEmbedded, OMChannel): """ type_ = "https://openminds.om-i.org/types/Channel" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("internal_identifier", "unit") diff --git a/fairgraph/openminds/v5/core/data/content_type.py b/fairgraph/openminds/v5/core/data/content_type.py index 418b8c14..fbe6577e 100644 --- a/fairgraph/openminds/v5/core/data/content_type.py +++ b/fairgraph/openminds/v5/core/data/content_type.py @@ -19,6 +19,7 @@ class ContentType(KGObject, OMContentType): type_ = "https://openminds.om-i.org/types/ContentType" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/data/content_type_pattern.py b/fairgraph/openminds/v5/core/data/content_type_pattern.py index 53f33132..4751aced 100644 --- a/fairgraph/openminds/v5/core/data/content_type_pattern.py +++ b/fairgraph/openminds/v5/core/data/content_type_pattern.py @@ -16,6 +16,7 @@ class ContentTypePattern(KGObject, OMContentTypePattern): type_ = "https://openminds.om-i.org/types/ContentTypePattern" default_space = "files" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/data/copyright.py b/fairgraph/openminds/v5/core/data/copyright.py index 3da3de84..d21f4d9d 100644 --- a/fairgraph/openminds/v5/core/data/copyright.py +++ b/fairgraph/openminds/v5/core/data/copyright.py @@ -15,6 +15,7 @@ class Copyright(KGEmbedded, OMCopyright): """ type_ = "https://openminds.om-i.org/types/Copyright" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("holders", "years") diff --git a/fairgraph/openminds/v5/core/data/file.py b/fairgraph/openminds/v5/core/data/file.py index 45d4fb19..821cc66c 100644 --- a/fairgraph/openminds/v5/core/data/file.py +++ b/fairgraph/openminds/v5/core/data/file.py @@ -30,6 +30,7 @@ class File(KGObject, OMFile): type_ = "https://openminds.om-i.org/types/File" default_space = "files" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/data/file_archive.py b/fairgraph/openminds/v5/core/data/file_archive.py index ee3420f6..d46e366c 100644 --- a/fairgraph/openminds/v5/core/data/file_archive.py +++ b/fairgraph/openminds/v5/core/data/file_archive.py @@ -19,6 +19,7 @@ class FileArchive(KGObject, OMFileArchive): type_ = "https://openminds.om-i.org/types/FileArchive" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/data/file_bundle.py b/fairgraph/openminds/v5/core/data/file_bundle.py index e9d79459..a36bccd0 100644 --- a/fairgraph/openminds/v5/core/data/file_bundle.py +++ b/fairgraph/openminds/v5/core/data/file_bundle.py @@ -16,6 +16,7 @@ class FileBundle(KGObject, OMFileBundle): type_ = "https://openminds.om-i.org/types/FileBundle" default_space = "files" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/data/file_path_pattern.py b/fairgraph/openminds/v5/core/data/file_path_pattern.py index 5ed6a5eb..8c73aeb8 100644 --- a/fairgraph/openminds/v5/core/data/file_path_pattern.py +++ b/fairgraph/openminds/v5/core/data/file_path_pattern.py @@ -15,6 +15,7 @@ class FilePathPattern(KGEmbedded, OMFilePathPattern): """ type_ = "https://openminds.om-i.org/types/FilePathPattern" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("grouping_types", "regex") diff --git a/fairgraph/openminds/v5/core/data/file_repository.py b/fairgraph/openminds/v5/core/data/file_repository.py index d7ba9078..ce64dad5 100644 --- a/fairgraph/openminds/v5/core/data/file_repository.py +++ b/fairgraph/openminds/v5/core/data/file_repository.py @@ -19,6 +19,7 @@ class FileRepository(KGObject, OMFileRepository): type_ = "https://openminds.om-i.org/types/FileRepository" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/data/file_repository_structure.py b/fairgraph/openminds/v5/core/data/file_repository_structure.py index 65b565f0..59c7c256 100644 --- a/fairgraph/openminds/v5/core/data/file_repository_structure.py +++ b/fairgraph/openminds/v5/core/data/file_repository_structure.py @@ -16,6 +16,7 @@ class FileRepositoryStructure(KGObject, OMFileRepositoryStructure): type_ = "https://openminds.om-i.org/types/FileRepositoryStructure" default_space = "files" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/data/grid_image.py b/fairgraph/openminds/v5/core/data/grid_image.py index 9edb1bd2..c314e65f 100644 --- a/fairgraph/openminds/v5/core/data/grid_image.py +++ b/fairgraph/openminds/v5/core/data/grid_image.py @@ -16,6 +16,7 @@ class GridImage(KGObject, OMGridImage): type_ = "https://openminds.om-i.org/types/GridImage" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("data_location", "dimensions", "pixel_sizes") diff --git a/fairgraph/openminds/v5/core/data/grid_image_sequence.py b/fairgraph/openminds/v5/core/data/grid_image_sequence.py index fc834bf7..5894ca82 100644 --- a/fairgraph/openminds/v5/core/data/grid_image_sequence.py +++ b/fairgraph/openminds/v5/core/data/grid_image_sequence.py @@ -16,6 +16,7 @@ class GridImageSequence(KGObject, OMGridImageSequence): type_ = "https://openminds.om-i.org/types/GridImageSequence" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("data_location", "dimensions", "pixel_sizes", "temporal_sampling_frequency") diff --git a/fairgraph/openminds/v5/core/data/grid_image_stack.py b/fairgraph/openminds/v5/core/data/grid_image_stack.py index 5c87522e..45d8da6c 100644 --- a/fairgraph/openminds/v5/core/data/grid_image_stack.py +++ b/fairgraph/openminds/v5/core/data/grid_image_stack.py @@ -16,6 +16,7 @@ class GridImageStack(KGObject, OMGridImageStack): type_ = "https://openminds.om-i.org/types/GridImageStack" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("data_location", "dimensions", "pixel_sizes", "z_step_size") diff --git a/fairgraph/openminds/v5/core/data/grid_volume.py b/fairgraph/openminds/v5/core/data/grid_volume.py index 6b75a54a..f1bab406 100644 --- a/fairgraph/openminds/v5/core/data/grid_volume.py +++ b/fairgraph/openminds/v5/core/data/grid_volume.py @@ -16,6 +16,7 @@ class GridVolume(KGObject, OMGridVolume): type_ = "https://openminds.om-i.org/types/GridVolume" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("data_location", "dimensions", "voxel_sizes") diff --git a/fairgraph/openminds/v5/core/data/grid_volume_sequence.py b/fairgraph/openminds/v5/core/data/grid_volume_sequence.py index dbf1d429..9b89cf0f 100644 --- a/fairgraph/openminds/v5/core/data/grid_volume_sequence.py +++ b/fairgraph/openminds/v5/core/data/grid_volume_sequence.py @@ -16,6 +16,7 @@ class GridVolumeSequence(KGObject, OMGridVolumeSequence): type_ = "https://openminds.om-i.org/types/GridVolumeSequence" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("data_location", "dimensions", "temporal_sampling_frequency", "voxel_sizes") diff --git a/fairgraph/openminds/v5/core/data/hash.py b/fairgraph/openminds/v5/core/data/hash.py index 896ed56c..426c6e75 100644 --- a/fairgraph/openminds/v5/core/data/hash.py +++ b/fairgraph/openminds/v5/core/data/hash.py @@ -15,6 +15,7 @@ class Hash(KGEmbedded, OMHash): """ type_ = "https://openminds.om-i.org/types/Hash" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("algorithm", "digest") diff --git a/fairgraph/openminds/v5/core/data/license.py b/fairgraph/openminds/v5/core/data/license.py index 2a202bbf..5efb7c89 100644 --- a/fairgraph/openminds/v5/core/data/license.py +++ b/fairgraph/openminds/v5/core/data/license.py @@ -19,6 +19,7 @@ class License(KGObject, OMLicense): type_ = "https://openminds.om-i.org/types/License" default_space = "controlled" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/data/local_file.py b/fairgraph/openminds/v5/core/data/local_file.py index 94432f49..5f85a72a 100644 --- a/fairgraph/openminds/v5/core/data/local_file.py +++ b/fairgraph/openminds/v5/core/data/local_file.py @@ -16,6 +16,7 @@ class LocalFile(KGObject, OMLocalFile): type_ = "https://openminds.om-i.org/types/LocalFile" default_space = "files" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/data/measurement.py b/fairgraph/openminds/v5/core/data/measurement.py index 8d210c52..befeceea 100644 --- a/fairgraph/openminds/v5/core/data/measurement.py +++ b/fairgraph/openminds/v5/core/data/measurement.py @@ -18,6 +18,7 @@ class Measurement(KGEmbedded, OMMeasurement): """ type_ = "https://openminds.om-i.org/types/Measurement" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("measured_quantity", "values") diff --git a/fairgraph/openminds/v5/core/data/regular_time_series.py b/fairgraph/openminds/v5/core/data/regular_time_series.py index e7fd6d72..18bfc359 100644 --- a/fairgraph/openminds/v5/core/data/regular_time_series.py +++ b/fairgraph/openminds/v5/core/data/regular_time_series.py @@ -16,6 +16,7 @@ class RegularTimeSeries(KGObject, OMRegularTimeSeries): type_ = "https://openminds.om-i.org/types/RegularTimeSeries" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/data/service_link.py b/fairgraph/openminds/v5/core/data/service_link.py index 45d1ffcf..89c7cdf6 100644 --- a/fairgraph/openminds/v5/core/data/service_link.py +++ b/fairgraph/openminds/v5/core/data/service_link.py @@ -19,6 +19,7 @@ class ServiceLink(KGObject, OMServiceLink): type_ = "https://openminds.om-i.org/types/ServiceLink" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("data_location", "open_data_in", "services") diff --git a/fairgraph/openminds/v5/core/data/usage_agreement.py b/fairgraph/openminds/v5/core/data/usage_agreement.py index 393c3ec3..dd9373db 100644 --- a/fairgraph/openminds/v5/core/data/usage_agreement.py +++ b/fairgraph/openminds/v5/core/data/usage_agreement.py @@ -16,6 +16,7 @@ class UsageAgreement(KGObject, OMUsageAgreement): type_ = "https://openminds.om-i.org/types/UsageAgreement" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/digital_identifier/doi.py b/fairgraph/openminds/v5/core/digital_identifier/doi.py index 702d4a68..04ea099a 100644 --- a/fairgraph/openminds/v5/core/digital_identifier/doi.py +++ b/fairgraph/openminds/v5/core/digital_identifier/doi.py @@ -16,6 +16,7 @@ class DOI(KGObject, OMDOI): type_ = "https://openminds.om-i.org/types/DOI" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/digital_identifier/generic_identifier.py b/fairgraph/openminds/v5/core/digital_identifier/generic_identifier.py index 0e20c41e..f20cfbc8 100644 --- a/fairgraph/openminds/v5/core/digital_identifier/generic_identifier.py +++ b/fairgraph/openminds/v5/core/digital_identifier/generic_identifier.py @@ -16,6 +16,7 @@ class GenericIdentifier(KGObject, OMGenericIdentifier): type_ = "https://openminds.om-i.org/types/GenericIdentifier" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/digital_identifier/handle.py b/fairgraph/openminds/v5/core/digital_identifier/handle.py index 744994f5..77102460 100644 --- a/fairgraph/openminds/v5/core/digital_identifier/handle.py +++ b/fairgraph/openminds/v5/core/digital_identifier/handle.py @@ -16,6 +16,7 @@ class HANDLE(KGObject, OMHANDLE): type_ = "https://openminds.om-i.org/types/HANDLE" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/digital_identifier/identifiers_dot_org_id.py b/fairgraph/openminds/v5/core/digital_identifier/identifiers_dot_org_id.py index 499bd510..c6feab83 100644 --- a/fairgraph/openminds/v5/core/digital_identifier/identifiers_dot_org_id.py +++ b/fairgraph/openminds/v5/core/digital_identifier/identifiers_dot_org_id.py @@ -16,6 +16,7 @@ class IdentifiersDotOrgID(KGObject, OMIdentifiersDotOrgID): type_ = "https://openminds.om-i.org/types/IdentifiersDotOrgID" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/digital_identifier/isbn.py b/fairgraph/openminds/v5/core/digital_identifier/isbn.py index 58730277..299b1c43 100644 --- a/fairgraph/openminds/v5/core/digital_identifier/isbn.py +++ b/fairgraph/openminds/v5/core/digital_identifier/isbn.py @@ -16,6 +16,7 @@ class ISBN(KGObject, OMISBN): type_ = "https://openminds.om-i.org/types/ISBN" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/digital_identifier/isni.py b/fairgraph/openminds/v5/core/digital_identifier/isni.py index 57f73ba0..df4c1a8e 100644 --- a/fairgraph/openminds/v5/core/digital_identifier/isni.py +++ b/fairgraph/openminds/v5/core/digital_identifier/isni.py @@ -16,6 +16,7 @@ class ISNI(KGObject, OMISNI): type_ = "https://openminds.om-i.org/types/ISNI" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/digital_identifier/issn.py b/fairgraph/openminds/v5/core/digital_identifier/issn.py index 5545cffd..65033c74 100644 --- a/fairgraph/openminds/v5/core/digital_identifier/issn.py +++ b/fairgraph/openminds/v5/core/digital_identifier/issn.py @@ -16,6 +16,7 @@ class ISSN(KGObject, OMISSN): type_ = "https://openminds.om-i.org/types/ISSN" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/digital_identifier/lei.py b/fairgraph/openminds/v5/core/digital_identifier/lei.py index e00e2c4a..44c6e2b4 100644 --- a/fairgraph/openminds/v5/core/digital_identifier/lei.py +++ b/fairgraph/openminds/v5/core/digital_identifier/lei.py @@ -16,6 +16,7 @@ class LEI(KGObject, OMLEI): type_ = "https://openminds.om-i.org/types/LEI" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/digital_identifier/orcid.py b/fairgraph/openminds/v5/core/digital_identifier/orcid.py index 7a84c0fd..6b1ae534 100644 --- a/fairgraph/openminds/v5/core/digital_identifier/orcid.py +++ b/fairgraph/openminds/v5/core/digital_identifier/orcid.py @@ -16,6 +16,7 @@ class ORCID(KGObject, OMORCID): type_ = "https://openminds.om-i.org/types/ORCID" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/digital_identifier/rorid.py b/fairgraph/openminds/v5/core/digital_identifier/rorid.py index 79890af4..8104f7ac 100644 --- a/fairgraph/openminds/v5/core/digital_identifier/rorid.py +++ b/fairgraph/openminds/v5/core/digital_identifier/rorid.py @@ -16,6 +16,7 @@ class RORID(KGObject, OMRORID): type_ = "https://openminds.om-i.org/types/RORID" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/digital_identifier/rrid.py b/fairgraph/openminds/v5/core/digital_identifier/rrid.py index d61a86ed..cc06d8f6 100644 --- a/fairgraph/openminds/v5/core/digital_identifier/rrid.py +++ b/fairgraph/openminds/v5/core/digital_identifier/rrid.py @@ -16,6 +16,7 @@ class RRID(KGObject, OMRRID): type_ = "https://openminds.om-i.org/types/RRID" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/digital_identifier/stock_number.py b/fairgraph/openminds/v5/core/digital_identifier/stock_number.py index a75f2c7b..ca742cc6 100644 --- a/fairgraph/openminds/v5/core/digital_identifier/stock_number.py +++ b/fairgraph/openminds/v5/core/digital_identifier/stock_number.py @@ -15,6 +15,7 @@ class StockNumber(KGEmbedded, OMStockNumber): """ type_ = "https://openminds.om-i.org/types/StockNumber" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("identifier", "vendor") diff --git a/fairgraph/openminds/v5/core/digital_identifier/swhid.py b/fairgraph/openminds/v5/core/digital_identifier/swhid.py index e84d39aa..cbf8f9ea 100644 --- a/fairgraph/openminds/v5/core/digital_identifier/swhid.py +++ b/fairgraph/openminds/v5/core/digital_identifier/swhid.py @@ -16,6 +16,7 @@ class SWHID(KGObject, OMSWHID): type_ = "https://openminds.om-i.org/types/SWHID" default_space = "software" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/miscellaneous/accessibility.py b/fairgraph/openminds/v5/core/miscellaneous/accessibility.py index b4d41b42..72c30003 100644 --- a/fairgraph/openminds/v5/core/miscellaneous/accessibility.py +++ b/fairgraph/openminds/v5/core/miscellaneous/accessibility.py @@ -16,6 +16,7 @@ class Accessibility(KGObject, OMAccessibility): type_ = "https://openminds.om-i.org/types/Accessibility" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/miscellaneous/comment.py b/fairgraph/openminds/v5/core/miscellaneous/comment.py index 62a2f148..b6b2aa73 100644 --- a/fairgraph/openminds/v5/core/miscellaneous/comment.py +++ b/fairgraph/openminds/v5/core/miscellaneous/comment.py @@ -19,6 +19,7 @@ class Comment(KGObject, OMComment): type_ = "https://openminds.om-i.org/types/Comment" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("about", "comment", "commenter", "timestamp") diff --git a/fairgraph/openminds/v5/core/miscellaneous/dependency.py b/fairgraph/openminds/v5/core/miscellaneous/dependency.py index c528155c..1e365ed1 100644 --- a/fairgraph/openminds/v5/core/miscellaneous/dependency.py +++ b/fairgraph/openminds/v5/core/miscellaneous/dependency.py @@ -15,6 +15,7 @@ class Dependency(KGEmbedded, OMDependency): """ type_ = "https://openminds.om-i.org/types/Dependency" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("fulfilled_by",) diff --git a/fairgraph/openminds/v5/core/miscellaneous/funding.py b/fairgraph/openminds/v5/core/miscellaneous/funding.py index 3c2ddd69..2b737279 100644 --- a/fairgraph/openminds/v5/core/miscellaneous/funding.py +++ b/fairgraph/openminds/v5/core/miscellaneous/funding.py @@ -16,6 +16,7 @@ class Funding(KGObject, OMFunding): type_ = "https://openminds.om-i.org/types/Funding" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/miscellaneous/geo_coordinates.py b/fairgraph/openminds/v5/core/miscellaneous/geo_coordinates.py index 3fdc0688..80b92d53 100644 --- a/fairgraph/openminds/v5/core/miscellaneous/geo_coordinates.py +++ b/fairgraph/openminds/v5/core/miscellaneous/geo_coordinates.py @@ -18,6 +18,7 @@ class GeoCoordinates(KGEmbedded, OMGeoCoordinates): """ type_ = "https://openminds.om-i.org/types/GeoCoordinates" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("latitude", "longitude") diff --git a/fairgraph/openminds/v5/core/miscellaneous/location.py b/fairgraph/openminds/v5/core/miscellaneous/location.py index 15649e22..fbefc4a2 100644 --- a/fairgraph/openminds/v5/core/miscellaneous/location.py +++ b/fairgraph/openminds/v5/core/miscellaneous/location.py @@ -15,6 +15,7 @@ class Location(KGEmbedded, OMLocation): """ type_ = "https://openminds.om-i.org/types/Location" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("country",) diff --git a/fairgraph/openminds/v5/core/miscellaneous/membership.py b/fairgraph/openminds/v5/core/miscellaneous/membership.py index 9cf2a973..69a94c7a 100644 --- a/fairgraph/openminds/v5/core/miscellaneous/membership.py +++ b/fairgraph/openminds/v5/core/miscellaneous/membership.py @@ -18,6 +18,7 @@ class Membership(KGEmbedded, OMMembership): """ type_ = "https://openminds.om-i.org/types/Membership" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("member",) diff --git a/fairgraph/openminds/v5/core/miscellaneous/quantitative_value.py b/fairgraph/openminds/v5/core/miscellaneous/quantitative_value.py index 010ff5b7..a85f8050 100644 --- a/fairgraph/openminds/v5/core/miscellaneous/quantitative_value.py +++ b/fairgraph/openminds/v5/core/miscellaneous/quantitative_value.py @@ -18,6 +18,7 @@ class QuantitativeValue(KGEmbedded, OMQuantitativeValue): """ type_ = "https://openminds.om-i.org/types/QuantitativeValue" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("value", "unit", "uncertainties") diff --git a/fairgraph/openminds/v5/core/miscellaneous/quantitative_value_array.py b/fairgraph/openminds/v5/core/miscellaneous/quantitative_value_array.py index 0f08152c..3f304268 100644 --- a/fairgraph/openminds/v5/core/miscellaneous/quantitative_value_array.py +++ b/fairgraph/openminds/v5/core/miscellaneous/quantitative_value_array.py @@ -18,6 +18,7 @@ class QuantitativeValueArray(KGEmbedded, OMQuantitativeValueArray): """ type_ = "https://openminds.om-i.org/types/QuantitativeValueArray" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("values",) diff --git a/fairgraph/openminds/v5/core/miscellaneous/quantitative_value_range.py b/fairgraph/openminds/v5/core/miscellaneous/quantitative_value_range.py index c6f50eb5..4c3c9a6a 100644 --- a/fairgraph/openminds/v5/core/miscellaneous/quantitative_value_range.py +++ b/fairgraph/openminds/v5/core/miscellaneous/quantitative_value_range.py @@ -18,6 +18,7 @@ class QuantitativeValueRange(KGEmbedded, OMQuantitativeValueRange): """ type_ = "https://openminds.om-i.org/types/QuantitativeValueRange" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("max_value", "min_value") diff --git a/fairgraph/openminds/v5/core/miscellaneous/research_product_group.py b/fairgraph/openminds/v5/core/miscellaneous/research_product_group.py index 25a7209b..7336135b 100644 --- a/fairgraph/openminds/v5/core/miscellaneous/research_product_group.py +++ b/fairgraph/openminds/v5/core/miscellaneous/research_product_group.py @@ -16,6 +16,7 @@ class ResearchProductGroup(KGObject, OMResearchProductGroup): type_ = "https://openminds.om-i.org/types/ResearchProductGroup" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("context", "has_parts") diff --git a/fairgraph/openminds/v5/core/miscellaneous/web_resource.py b/fairgraph/openminds/v5/core/miscellaneous/web_resource.py index 262bc165..9a992e84 100644 --- a/fairgraph/openminds/v5/core/miscellaneous/web_resource.py +++ b/fairgraph/openminds/v5/core/miscellaneous/web_resource.py @@ -19,6 +19,7 @@ class WebResource(KGObject, OMWebResource): type_ = "https://openminds.om-i.org/types/WebResource" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/products/dataset.py b/fairgraph/openminds/v5/core/products/dataset.py index fb49d566..5dd0ae6d 100644 --- a/fairgraph/openminds/v5/core/products/dataset.py +++ b/fairgraph/openminds/v5/core/products/dataset.py @@ -19,6 +19,7 @@ class Dataset(KGObject, OMDataset): type_ = "https://openminds.om-i.org/types/Dataset" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/products/dataset_version.py b/fairgraph/openminds/v5/core/products/dataset_version.py index 089f94fa..ff068e86 100644 --- a/fairgraph/openminds/v5/core/products/dataset_version.py +++ b/fairgraph/openminds/v5/core/products/dataset_version.py @@ -22,6 +22,7 @@ class DatasetVersion(KGObject, OMDatasetVersion): type_ = "https://openminds.om-i.org/types/DatasetVersion" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/products/hardware_product.py b/fairgraph/openminds/v5/core/products/hardware_product.py index 951a64a1..9ef48e4f 100644 --- a/fairgraph/openminds/v5/core/products/hardware_product.py +++ b/fairgraph/openminds/v5/core/products/hardware_product.py @@ -16,6 +16,7 @@ class HardwareProduct(KGObject, OMHardwareProduct): type_ = "https://openminds.om-i.org/types/HardwareProduct" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/products/interface.py b/fairgraph/openminds/v5/core/products/interface.py index 75a8017a..441bd924 100644 --- a/fairgraph/openminds/v5/core/products/interface.py +++ b/fairgraph/openminds/v5/core/products/interface.py @@ -19,6 +19,7 @@ class Interface(KGObject, OMInterface): type_ = "https://openminds.om-i.org/types/Interface" default_space = "interface" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/products/interface_version.py b/fairgraph/openminds/v5/core/products/interface_version.py index f1acfb16..1c1e5b42 100644 --- a/fairgraph/openminds/v5/core/products/interface_version.py +++ b/fairgraph/openminds/v5/core/products/interface_version.py @@ -20,6 +20,7 @@ class InterfaceVersion(KGObject, OMInterfaceVersion): type_ = "https://openminds.om-i.org/types/InterfaceVersion" default_space = "interface" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/products/meta_data_model.py b/fairgraph/openminds/v5/core/products/meta_data_model.py index 4dc419d3..075682d7 100644 --- a/fairgraph/openminds/v5/core/products/meta_data_model.py +++ b/fairgraph/openminds/v5/core/products/meta_data_model.py @@ -19,6 +19,7 @@ class MetaDataModel(KGObject, OMMetaDataModel): type_ = "https://openminds.om-i.org/types/MetaDataModel" default_space = "metadatamodel" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/products/meta_data_model_version.py b/fairgraph/openminds/v5/core/products/meta_data_model_version.py index 0293531f..828a2aa0 100644 --- a/fairgraph/openminds/v5/core/products/meta_data_model_version.py +++ b/fairgraph/openminds/v5/core/products/meta_data_model_version.py @@ -20,6 +20,7 @@ class MetaDataModelVersion(KGObject, OMMetaDataModelVersion): type_ = "https://openminds.om-i.org/types/MetaDataModelVersion" default_space = "metadatamodel" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/products/model.py b/fairgraph/openminds/v5/core/products/model.py index a9bf8294..23e9d88b 100644 --- a/fairgraph/openminds/v5/core/products/model.py +++ b/fairgraph/openminds/v5/core/products/model.py @@ -19,6 +19,7 @@ class Model(KGObject, OMModel): type_ = "https://openminds.om-i.org/types/Model" default_space = "model" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/products/model_version.py b/fairgraph/openminds/v5/core/products/model_version.py index b50421fd..98e16cf8 100644 --- a/fairgraph/openminds/v5/core/products/model_version.py +++ b/fairgraph/openminds/v5/core/products/model_version.py @@ -22,6 +22,7 @@ class ModelVersion(KGObject, OMModelVersion): type_ = "https://openminds.om-i.org/types/ModelVersion" default_space = "model" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/products/project.py b/fairgraph/openminds/v5/core/products/project.py index 50698305..7b09946a 100644 --- a/fairgraph/openminds/v5/core/products/project.py +++ b/fairgraph/openminds/v5/core/products/project.py @@ -19,6 +19,7 @@ class Project(KGObject, OMProject): type_ = "https://openminds.om-i.org/types/Project" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] aliases = {"name": "full_name", "alias": "short_name"} diff --git a/fairgraph/openminds/v5/core/products/service.py b/fairgraph/openminds/v5/core/products/service.py index 63fbc15a..7ece6b09 100644 --- a/fairgraph/openminds/v5/core/products/service.py +++ b/fairgraph/openminds/v5/core/products/service.py @@ -16,6 +16,7 @@ class Service(KGObject, OMService): type_ = "https://openminds.om-i.org/types/Service" default_space = "software" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/products/setup.py b/fairgraph/openminds/v5/core/products/setup.py index f22263aa..35cf32e5 100644 --- a/fairgraph/openminds/v5/core/products/setup.py +++ b/fairgraph/openminds/v5/core/products/setup.py @@ -16,6 +16,7 @@ class Setup(KGObject, OMSetup): type_ = "https://openminds.om-i.org/types/Setup" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/products/software.py b/fairgraph/openminds/v5/core/products/software.py index 2e4aa13a..b7a11c55 100644 --- a/fairgraph/openminds/v5/core/products/software.py +++ b/fairgraph/openminds/v5/core/products/software.py @@ -19,6 +19,7 @@ class Software(KGObject, OMSoftware): type_ = "https://openminds.om-i.org/types/Software" default_space = "software" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/products/software_version.py b/fairgraph/openminds/v5/core/products/software_version.py index 13da4f32..b2b08cf4 100644 --- a/fairgraph/openminds/v5/core/products/software_version.py +++ b/fairgraph/openminds/v5/core/products/software_version.py @@ -20,6 +20,7 @@ class SoftwareVersion(KGObject, OMSoftwareVersion): type_ = "https://openminds.om-i.org/types/SoftwareVersion" default_space = "software" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/research/behavioral_protocol.py b/fairgraph/openminds/v5/core/research/behavioral_protocol.py index f24073c3..3eeee34c 100644 --- a/fairgraph/openminds/v5/core/research/behavioral_protocol.py +++ b/fairgraph/openminds/v5/core/research/behavioral_protocol.py @@ -16,6 +16,7 @@ class BehavioralProtocol(KGObject, OMBehavioralProtocol): type_ = "https://openminds.om-i.org/types/BehavioralProtocol" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/research/configuration.py b/fairgraph/openminds/v5/core/research/configuration.py index dda18706..333a1eff 100644 --- a/fairgraph/openminds/v5/core/research/configuration.py +++ b/fairgraph/openminds/v5/core/research/configuration.py @@ -16,6 +16,7 @@ class Configuration(KGObject, OMConfiguration): type_ = "https://openminds.om-i.org/types/Configuration" default_space = "common" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/research/custom_property_set.py b/fairgraph/openminds/v5/core/research/custom_property_set.py index 1bf79866..f3afbf69 100644 --- a/fairgraph/openminds/v5/core/research/custom_property_set.py +++ b/fairgraph/openminds/v5/core/research/custom_property_set.py @@ -15,6 +15,7 @@ class CustomPropertySet(KGEmbedded, OMCustomPropertySet): """ type_ = "https://openminds.om-i.org/types/CustomPropertySet" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("context", "data_location", "relevant_for") diff --git a/fairgraph/openminds/v5/core/research/numerical_property.py b/fairgraph/openminds/v5/core/research/numerical_property.py index e05131f8..6559ff51 100644 --- a/fairgraph/openminds/v5/core/research/numerical_property.py +++ b/fairgraph/openminds/v5/core/research/numerical_property.py @@ -18,6 +18,7 @@ class NumericalProperty(KGEmbedded, OMNumericalProperty): """ type_ = "https://openminds.om-i.org/types/NumericalProperty" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("name", "values") diff --git a/fairgraph/openminds/v5/core/research/property_value_list.py b/fairgraph/openminds/v5/core/research/property_value_list.py index 5e895c55..994f1dd0 100644 --- a/fairgraph/openminds/v5/core/research/property_value_list.py +++ b/fairgraph/openminds/v5/core/research/property_value_list.py @@ -16,6 +16,7 @@ class PropertyValueList(KGObject, OMPropertyValueList): type_ = "https://openminds.om-i.org/types/PropertyValueList" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/research/protocol.py b/fairgraph/openminds/v5/core/research/protocol.py index e5a6d2d2..6bb4bb09 100644 --- a/fairgraph/openminds/v5/core/research/protocol.py +++ b/fairgraph/openminds/v5/core/research/protocol.py @@ -16,6 +16,7 @@ class Protocol(KGObject, OMProtocol): type_ = "https://openminds.om-i.org/types/Protocol" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/research/protocol_execution.py b/fairgraph/openminds/v5/core/research/protocol_execution.py index 7d0ae20c..e6630952 100644 --- a/fairgraph/openminds/v5/core/research/protocol_execution.py +++ b/fairgraph/openminds/v5/core/research/protocol_execution.py @@ -19,6 +19,7 @@ class ProtocolExecution(KGObject, OMProtocolExecution): type_ = "https://openminds.om-i.org/types/ProtocolExecution" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/research/specimen_age.py b/fairgraph/openminds/v5/core/research/specimen_age.py index 48e5af11..d444a816 100644 --- a/fairgraph/openminds/v5/core/research/specimen_age.py +++ b/fairgraph/openminds/v5/core/research/specimen_age.py @@ -15,6 +15,7 @@ class SpecimenAge(KGEmbedded, OMSpecimenAge): """ type_ = "https://openminds.om-i.org/types/SpecimenAge" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("age", "reference") diff --git a/fairgraph/openminds/v5/core/research/specimen_weight.py b/fairgraph/openminds/v5/core/research/specimen_weight.py index b0ad55d4..d8d7d988 100644 --- a/fairgraph/openminds/v5/core/research/specimen_weight.py +++ b/fairgraph/openminds/v5/core/research/specimen_weight.py @@ -15,6 +15,7 @@ class SpecimenWeight(KGEmbedded, OMSpecimenWeight): """ type_ = "https://openminds.om-i.org/types/SpecimenWeight" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("type", "weight") diff --git a/fairgraph/openminds/v5/core/research/strain.py b/fairgraph/openminds/v5/core/research/strain.py index 126d8dde..17d3eaef 100644 --- a/fairgraph/openminds/v5/core/research/strain.py +++ b/fairgraph/openminds/v5/core/research/strain.py @@ -16,6 +16,7 @@ class Strain(KGObject, OMStrain): type_ = "https://openminds.om-i.org/types/Strain" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/research/string_property.py b/fairgraph/openminds/v5/core/research/string_property.py index c2197ad7..d740fc26 100644 --- a/fairgraph/openminds/v5/core/research/string_property.py +++ b/fairgraph/openminds/v5/core/research/string_property.py @@ -18,6 +18,7 @@ class StringProperty(KGEmbedded, OMStringProperty): """ type_ = "https://openminds.om-i.org/types/StringProperty" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("name", "value") diff --git a/fairgraph/openminds/v5/core/research/subject.py b/fairgraph/openminds/v5/core/research/subject.py index df663617..7ef37ea5 100644 --- a/fairgraph/openminds/v5/core/research/subject.py +++ b/fairgraph/openminds/v5/core/research/subject.py @@ -16,6 +16,7 @@ class Subject(KGObject, OMSubject): type_ = "https://openminds.om-i.org/types/Subject" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/research/subject_group.py b/fairgraph/openminds/v5/core/research/subject_group.py index df03346b..f770069d 100644 --- a/fairgraph/openminds/v5/core/research/subject_group.py +++ b/fairgraph/openminds/v5/core/research/subject_group.py @@ -16,6 +16,7 @@ class SubjectGroup(KGObject, OMSubjectGroup): type_ = "https://openminds.om-i.org/types/SubjectGroup" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/research/subject_group_state.py b/fairgraph/openminds/v5/core/research/subject_group_state.py index 7f9e00d3..3037fa39 100644 --- a/fairgraph/openminds/v5/core/research/subject_group_state.py +++ b/fairgraph/openminds/v5/core/research/subject_group_state.py @@ -16,6 +16,7 @@ class SubjectGroupState(KGObject, OMSubjectGroupState): type_ = "https://openminds.om-i.org/types/SubjectGroupState" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/research/subject_state.py b/fairgraph/openminds/v5/core/research/subject_state.py index bedea90f..a379de05 100644 --- a/fairgraph/openminds/v5/core/research/subject_state.py +++ b/fairgraph/openminds/v5/core/research/subject_state.py @@ -16,6 +16,7 @@ class SubjectState(KGObject, OMSubjectState): type_ = "https://openminds.om-i.org/types/SubjectState" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/research/tissue_sample.py b/fairgraph/openminds/v5/core/research/tissue_sample.py index a86d3fd4..41cb94f4 100644 --- a/fairgraph/openminds/v5/core/research/tissue_sample.py +++ b/fairgraph/openminds/v5/core/research/tissue_sample.py @@ -16,6 +16,7 @@ class TissueSample(KGObject, OMTissueSample): type_ = "https://openminds.om-i.org/types/TissueSample" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/research/tissue_sample_collection.py b/fairgraph/openminds/v5/core/research/tissue_sample_collection.py index a5c4bcc6..0e415704 100644 --- a/fairgraph/openminds/v5/core/research/tissue_sample_collection.py +++ b/fairgraph/openminds/v5/core/research/tissue_sample_collection.py @@ -16,6 +16,7 @@ class TissueSampleCollection(KGObject, OMTissueSampleCollection): type_ = "https://openminds.om-i.org/types/TissueSampleCollection" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/research/tissue_sample_collection_state.py b/fairgraph/openminds/v5/core/research/tissue_sample_collection_state.py index 38b50252..75a83d4e 100644 --- a/fairgraph/openminds/v5/core/research/tissue_sample_collection_state.py +++ b/fairgraph/openminds/v5/core/research/tissue_sample_collection_state.py @@ -16,6 +16,7 @@ class TissueSampleCollectionState(KGObject, OMTissueSampleCollectionState): type_ = "https://openminds.om-i.org/types/TissueSampleCollectionState" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/research/tissue_sample_state.py b/fairgraph/openminds/v5/core/research/tissue_sample_state.py index 9cafd7fc..5eec8041 100644 --- a/fairgraph/openminds/v5/core/research/tissue_sample_state.py +++ b/fairgraph/openminds/v5/core/research/tissue_sample_state.py @@ -16,6 +16,7 @@ class TissueSampleState(KGObject, OMTissueSampleState): type_ = "https://openminds.om-i.org/types/TissueSampleState" default_space = "dataset" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/ephys/activity/cell_patching.py b/fairgraph/openminds/v5/ephys/activity/cell_patching.py index f623f13a..637a10dc 100644 --- a/fairgraph/openminds/v5/ephys/activity/cell_patching.py +++ b/fairgraph/openminds/v5/ephys/activity/cell_patching.py @@ -19,6 +19,7 @@ class CellPatching(KGObject, OMCellPatching): type_ = "https://openminds.om-i.org/types/CellPatching" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v5/ephys/activity/electrode_placement.py b/fairgraph/openminds/v5/ephys/activity/electrode_placement.py index 7908c82b..e2bd1fcc 100644 --- a/fairgraph/openminds/v5/ephys/activity/electrode_placement.py +++ b/fairgraph/openminds/v5/ephys/activity/electrode_placement.py @@ -19,6 +19,7 @@ class ElectrodePlacement(KGObject, OMElectrodePlacement): type_ = "https://openminds.om-i.org/types/ElectrodePlacement" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v5/ephys/activity/recording_activity.py b/fairgraph/openminds/v5/ephys/activity/recording_activity.py index 18c84f6e..103e79ef 100644 --- a/fairgraph/openminds/v5/ephys/activity/recording_activity.py +++ b/fairgraph/openminds/v5/ephys/activity/recording_activity.py @@ -19,6 +19,7 @@ class RecordingActivity(KGObject, OMRecordingActivity): type_ = "https://openminds.om-i.org/types/RecordingActivity" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v5/ephys/device/electrode.py b/fairgraph/openminds/v5/ephys/device/electrode.py index 196e9d2e..c529c1a6 100644 --- a/fairgraph/openminds/v5/ephys/device/electrode.py +++ b/fairgraph/openminds/v5/ephys/device/electrode.py @@ -16,6 +16,7 @@ class Electrode(KGObject, OMElectrode): type_ = "https://openminds.om-i.org/types/Electrode" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/ephys/device/electrode_array.py b/fairgraph/openminds/v5/ephys/device/electrode_array.py index a73f004a..12d0dfd0 100644 --- a/fairgraph/openminds/v5/ephys/device/electrode_array.py +++ b/fairgraph/openminds/v5/ephys/device/electrode_array.py @@ -16,6 +16,7 @@ class ElectrodeArray(KGObject, OMElectrodeArray): type_ = "https://openminds.om-i.org/types/ElectrodeArray" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/ephys/device/electrode_array_usage.py b/fairgraph/openminds/v5/ephys/device/electrode_array_usage.py index 671c54f6..20cd090b 100644 --- a/fairgraph/openminds/v5/ephys/device/electrode_array_usage.py +++ b/fairgraph/openminds/v5/ephys/device/electrode_array_usage.py @@ -16,6 +16,7 @@ class ElectrodeArrayUsage(KGObject, OMElectrodeArrayUsage): type_ = "https://openminds.om-i.org/types/ElectrodeArrayUsage" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/ephys/device/electrode_usage.py b/fairgraph/openminds/v5/ephys/device/electrode_usage.py index 50d5d779..db0bb845 100644 --- a/fairgraph/openminds/v5/ephys/device/electrode_usage.py +++ b/fairgraph/openminds/v5/ephys/device/electrode_usage.py @@ -16,6 +16,7 @@ class ElectrodeUsage(KGObject, OMElectrodeUsage): type_ = "https://openminds.om-i.org/types/ElectrodeUsage" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/ephys/device/pipette.py b/fairgraph/openminds/v5/ephys/device/pipette.py index ef5abc3a..68eb06f4 100644 --- a/fairgraph/openminds/v5/ephys/device/pipette.py +++ b/fairgraph/openminds/v5/ephys/device/pipette.py @@ -16,6 +16,7 @@ class Pipette(KGObject, OMPipette): type_ = "https://openminds.om-i.org/types/Pipette" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/ephys/device/pipette_usage.py b/fairgraph/openminds/v5/ephys/device/pipette_usage.py index facd308e..df70d9c6 100644 --- a/fairgraph/openminds/v5/ephys/device/pipette_usage.py +++ b/fairgraph/openminds/v5/ephys/device/pipette_usage.py @@ -16,6 +16,7 @@ class PipetteUsage(KGObject, OMPipetteUsage): type_ = "https://openminds.om-i.org/types/PipetteUsage" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/neuroimaging/activity/dynamic_mri_acquisition.py b/fairgraph/openminds/v5/neuroimaging/activity/dynamic_mri_acquisition.py index 3206a3ba..d38001c1 100644 --- a/fairgraph/openminds/v5/neuroimaging/activity/dynamic_mri_acquisition.py +++ b/fairgraph/openminds/v5/neuroimaging/activity/dynamic_mri_acquisition.py @@ -19,6 +19,7 @@ class DynamicMRIAcquisition(KGObject, OMDynamicMRIAcquisition): type_ = "https://openminds.om-i.org/types/DynamicMRIAcquisition" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v5/neuroimaging/activity/static_mri_acquisition.py b/fairgraph/openminds/v5/neuroimaging/activity/static_mri_acquisition.py index 7b29fa9b..3e718b01 100644 --- a/fairgraph/openminds/v5/neuroimaging/activity/static_mri_acquisition.py +++ b/fairgraph/openminds/v5/neuroimaging/activity/static_mri_acquisition.py @@ -19,6 +19,7 @@ class StaticMRIAcquisition(KGObject, OMStaticMRIAcquisition): type_ = "https://openminds.om-i.org/types/StaticMRIAcquisition" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v5/neuroimaging/device/mri_coil.py b/fairgraph/openminds/v5/neuroimaging/device/mri_coil.py index 48641b42..d54095a8 100644 --- a/fairgraph/openminds/v5/neuroimaging/device/mri_coil.py +++ b/fairgraph/openminds/v5/neuroimaging/device/mri_coil.py @@ -16,6 +16,7 @@ class MRICoil(KGObject, OMMRICoil): type_ = "https://openminds.om-i.org/types/MRICoil" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/neuroimaging/device/mri_coil_usage.py b/fairgraph/openminds/v5/neuroimaging/device/mri_coil_usage.py index 130483c8..d64c3617 100644 --- a/fairgraph/openminds/v5/neuroimaging/device/mri_coil_usage.py +++ b/fairgraph/openminds/v5/neuroimaging/device/mri_coil_usage.py @@ -16,6 +16,7 @@ class MRICoilUsage(KGObject, OMMRICoilUsage): type_ = "https://openminds.om-i.org/types/MRICoilUsage" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/neuroimaging/device/mri_scanner.py b/fairgraph/openminds/v5/neuroimaging/device/mri_scanner.py index ac8cae27..cd34d791 100644 --- a/fairgraph/openminds/v5/neuroimaging/device/mri_scanner.py +++ b/fairgraph/openminds/v5/neuroimaging/device/mri_scanner.py @@ -16,6 +16,7 @@ class MRIScanner(KGObject, OMMRIScanner): type_ = "https://openminds.om-i.org/types/MRIScanner" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/neuroimaging/device/mri_scanner_usage.py b/fairgraph/openminds/v5/neuroimaging/device/mri_scanner_usage.py index 9724c766..e8a8d067 100644 --- a/fairgraph/openminds/v5/neuroimaging/device/mri_scanner_usage.py +++ b/fairgraph/openminds/v5/neuroimaging/device/mri_scanner_usage.py @@ -19,6 +19,7 @@ class MRIScannerUsage(KGObject, OMMRIScannerUsage): type_ = "https://openminds.om-i.org/types/MRIScannerUsage" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/publications/book.py b/fairgraph/openminds/v5/publications/book.py index 6a485e91..efdd7a4d 100644 --- a/fairgraph/openminds/v5/publications/book.py +++ b/fairgraph/openminds/v5/publications/book.py @@ -20,6 +20,7 @@ class Book(KGObject, OMBook): type_ = "https://openminds.om-i.org/types/Book" default_space = "livepapers" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/publications/chapter.py b/fairgraph/openminds/v5/publications/chapter.py index 6f45be31..34106947 100644 --- a/fairgraph/openminds/v5/publications/chapter.py +++ b/fairgraph/openminds/v5/publications/chapter.py @@ -20,6 +20,7 @@ class Chapter(KGObject, OMChapter): type_ = "https://openminds.om-i.org/types/Chapter" default_space = "livepapers" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/publications/learning_resource.py b/fairgraph/openminds/v5/publications/learning_resource.py index 6945fc5b..a2f946ca 100644 --- a/fairgraph/openminds/v5/publications/learning_resource.py +++ b/fairgraph/openminds/v5/publications/learning_resource.py @@ -20,6 +20,7 @@ class LearningResource(KGObject, OMLearningResource): type_ = "https://openminds.om-i.org/types/LearningResource" default_space = "livepapers" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("about", "name", "publication_date") diff --git a/fairgraph/openminds/v5/publications/live_paper.py b/fairgraph/openminds/v5/publications/live_paper.py index 5ff27cf1..874375a1 100644 --- a/fairgraph/openminds/v5/publications/live_paper.py +++ b/fairgraph/openminds/v5/publications/live_paper.py @@ -19,6 +19,7 @@ class LivePaper(KGObject, OMLivePaper): type_ = "https://openminds.om-i.org/types/LivePaper" default_space = "livepapers" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/publications/live_paper_resource_item.py b/fairgraph/openminds/v5/publications/live_paper_resource_item.py index c8ae7657..31133124 100644 --- a/fairgraph/openminds/v5/publications/live_paper_resource_item.py +++ b/fairgraph/openminds/v5/publications/live_paper_resource_item.py @@ -19,6 +19,7 @@ class LivePaperResourceItem(KGObject, OMLivePaperResourceItem): type_ = "https://openminds.om-i.org/types/LivePaperResourceItem" default_space = "livepapers" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/publications/live_paper_section.py b/fairgraph/openminds/v5/publications/live_paper_section.py index 26068c6c..fa5a15fd 100644 --- a/fairgraph/openminds/v5/publications/live_paper_section.py +++ b/fairgraph/openminds/v5/publications/live_paper_section.py @@ -16,6 +16,7 @@ class LivePaperSection(KGObject, OMLivePaperSection): type_ = "https://openminds.om-i.org/types/LivePaperSection" default_space = "livepapers" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/publications/live_paper_version.py b/fairgraph/openminds/v5/publications/live_paper_version.py index bbc9cebc..d5e52e76 100644 --- a/fairgraph/openminds/v5/publications/live_paper_version.py +++ b/fairgraph/openminds/v5/publications/live_paper_version.py @@ -21,6 +21,7 @@ class LivePaperVersion(KGObject, OMLivePaperVersion): type_ = "https://openminds.om-i.org/types/LivePaperVersion" default_space = "livepapers" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/publications/periodical.py b/fairgraph/openminds/v5/publications/periodical.py index 6597d13c..628e1a43 100644 --- a/fairgraph/openminds/v5/publications/periodical.py +++ b/fairgraph/openminds/v5/publications/periodical.py @@ -16,6 +16,7 @@ class Periodical(KGObject, OMPeriodical): type_ = "https://openminds.om-i.org/types/Periodical" default_space = "livepapers" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/publications/publication_issue.py b/fairgraph/openminds/v5/publications/publication_issue.py index d97f9e25..c0c87324 100644 --- a/fairgraph/openminds/v5/publications/publication_issue.py +++ b/fairgraph/openminds/v5/publications/publication_issue.py @@ -16,6 +16,7 @@ class PublicationIssue(KGObject, OMPublicationIssue): type_ = "https://openminds.om-i.org/types/PublicationIssue" default_space = "livepapers" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/publications/publication_volume.py b/fairgraph/openminds/v5/publications/publication_volume.py index 290131f4..39a2f1b1 100644 --- a/fairgraph/openminds/v5/publications/publication_volume.py +++ b/fairgraph/openminds/v5/publications/publication_volume.py @@ -16,6 +16,7 @@ class PublicationVolume(KGObject, OMPublicationVolume): type_ = "https://openminds.om-i.org/types/PublicationVolume" default_space = "livepapers" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/publications/scholarly_article.py b/fairgraph/openminds/v5/publications/scholarly_article.py index b8a697f5..70c00bb4 100644 --- a/fairgraph/openminds/v5/publications/scholarly_article.py +++ b/fairgraph/openminds/v5/publications/scholarly_article.py @@ -22,6 +22,7 @@ class ScholarlyArticle(KGObject, OMScholarlyArticle): type_ = "https://openminds.om-i.org/types/ScholarlyArticle" default_space = "livepapers" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/sands/atlas/anatomical_atlas.py b/fairgraph/openminds/v5/sands/atlas/anatomical_atlas.py index 05e21dce..868e076d 100644 --- a/fairgraph/openminds/v5/sands/atlas/anatomical_atlas.py +++ b/fairgraph/openminds/v5/sands/atlas/anatomical_atlas.py @@ -19,6 +19,7 @@ class AnatomicalAtlas(KGObject, OMAnatomicalAtlas): type_ = "https://openminds.om-i.org/types/AnatomicalAtlas" default_space = "atlas" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/sands/atlas/anatomical_atlas_version.py b/fairgraph/openminds/v5/sands/atlas/anatomical_atlas_version.py index e7f58a29..bf5d7946 100644 --- a/fairgraph/openminds/v5/sands/atlas/anatomical_atlas_version.py +++ b/fairgraph/openminds/v5/sands/atlas/anatomical_atlas_version.py @@ -22,6 +22,7 @@ class AnatomicalAtlasVersion(KGObject, OMAnatomicalAtlasVersion): type_ = "https://openminds.om-i.org/types/AnatomicalAtlasVersion" default_space = "atlas" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/sands/atlas/atlas_annotation.py b/fairgraph/openminds/v5/sands/atlas/atlas_annotation.py index 73890321..aa9837f7 100644 --- a/fairgraph/openminds/v5/sands/atlas/atlas_annotation.py +++ b/fairgraph/openminds/v5/sands/atlas/atlas_annotation.py @@ -15,6 +15,7 @@ class AtlasAnnotation(KGEmbedded, OMAtlasAnnotation): """ type_ = "https://openminds.om-i.org/types/AtlasAnnotation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("criteria_quality_type", "criteria_type", "type") diff --git a/fairgraph/openminds/v5/sands/atlas/common_coordinate_framework.py b/fairgraph/openminds/v5/sands/atlas/common_coordinate_framework.py index e8582c74..cf2cf298 100644 --- a/fairgraph/openminds/v5/sands/atlas/common_coordinate_framework.py +++ b/fairgraph/openminds/v5/sands/atlas/common_coordinate_framework.py @@ -19,6 +19,7 @@ class CommonCoordinateFramework(KGObject, OMCommonCoordinateFramework): type_ = "https://openminds.om-i.org/types/CommonCoordinateFramework" default_space = "atlas" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/sands/atlas/common_coordinate_framework_version.py b/fairgraph/openminds/v5/sands/atlas/common_coordinate_framework_version.py index e48e7a7d..fbd36d18 100644 --- a/fairgraph/openminds/v5/sands/atlas/common_coordinate_framework_version.py +++ b/fairgraph/openminds/v5/sands/atlas/common_coordinate_framework_version.py @@ -22,6 +22,7 @@ class CommonCoordinateFrameworkVersion(KGObject, OMCommonCoordinateFrameworkVers type_ = "https://openminds.om-i.org/types/CommonCoordinateFrameworkVersion" default_space = "atlas" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/sands/atlas/parcellation_entity.py b/fairgraph/openminds/v5/sands/atlas/parcellation_entity.py index 3eb216e9..b859f055 100644 --- a/fairgraph/openminds/v5/sands/atlas/parcellation_entity.py +++ b/fairgraph/openminds/v5/sands/atlas/parcellation_entity.py @@ -16,6 +16,7 @@ class ParcellationEntity(KGObject, OMParcellationEntity): type_ = "https://openminds.om-i.org/types/ParcellationEntity" default_space = "atlas" + SORT_PRIORITY = ("lookupLabel", "name", "fullName", "shortName", "familyName", "abbreviation") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/sands/atlas/parcellation_entity_version.py b/fairgraph/openminds/v5/sands/atlas/parcellation_entity_version.py index 428a31f6..e4c6dd5c 100644 --- a/fairgraph/openminds/v5/sands/atlas/parcellation_entity_version.py +++ b/fairgraph/openminds/v5/sands/atlas/parcellation_entity_version.py @@ -16,6 +16,7 @@ class ParcellationEntityVersion(KGObject, OMParcellationEntityVersion): type_ = "https://openminds.om-i.org/types/ParcellationEntityVersion" default_space = "atlas" + SORT_PRIORITY = ("lookupLabel", "name", "fullName", "shortName", "familyName", "abbreviation") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/sands/atlas/parcellation_terminology.py b/fairgraph/openminds/v5/sands/atlas/parcellation_terminology.py index d1943d37..4dfae19e 100644 --- a/fairgraph/openminds/v5/sands/atlas/parcellation_terminology.py +++ b/fairgraph/openminds/v5/sands/atlas/parcellation_terminology.py @@ -15,6 +15,7 @@ class ParcellationTerminology(KGEmbedded, OMParcellationTerminology): """ type_ = "https://openminds.om-i.org/types/ParcellationTerminology" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("has_entities",) diff --git a/fairgraph/openminds/v5/sands/atlas/parcellation_terminology_version.py b/fairgraph/openminds/v5/sands/atlas/parcellation_terminology_version.py index 938b93f5..564ff360 100644 --- a/fairgraph/openminds/v5/sands/atlas/parcellation_terminology_version.py +++ b/fairgraph/openminds/v5/sands/atlas/parcellation_terminology_version.py @@ -15,6 +15,7 @@ class ParcellationTerminologyVersion(KGEmbedded, OMParcellationTerminologyVersio """ type_ = "https://openminds.om-i.org/types/ParcellationTerminologyVersion" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("short_name", "version_identifier") diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/centroidal_pyramid.py b/fairgraph/openminds/v5/sands/mathematical_shape/centroidal_pyramid.py index 5337d3d3..89292b83 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/centroidal_pyramid.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/centroidal_pyramid.py @@ -15,6 +15,7 @@ class CentroidalPyramid(KGEmbedded, OMCentroidalPyramid): """ type_ = "https://openminds.om-i.org/types/CentroidalPyramid" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("apex_base_distance", "base_shape") diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/circle.py b/fairgraph/openminds/v5/sands/mathematical_shape/circle.py index 661246c4..9d5f8a10 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/circle.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/circle.py @@ -15,6 +15,7 @@ class Circle(KGEmbedded, OMCircle): """ type_ = "https://openminds.om-i.org/types/Circle" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("radius",) diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/circular_sector.py b/fairgraph/openminds/v5/sands/mathematical_shape/circular_sector.py index 42b4abeb..907ebaaa 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/circular_sector.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/circular_sector.py @@ -15,6 +15,7 @@ class CircularSector(KGEmbedded, OMCircularSector): """ type_ = "https://openminds.om-i.org/types/CircularSector" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("central_angle", "radius") diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/cube.py b/fairgraph/openminds/v5/sands/mathematical_shape/cube.py index a851f8f0..59b3cfb6 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/cube.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/cube.py @@ -15,6 +15,7 @@ class Cube(KGEmbedded, OMCube): """ type_ = "https://openminds.om-i.org/types/Cube" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("side_length",) diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/ellipse.py b/fairgraph/openminds/v5/sands/mathematical_shape/ellipse.py index 567ac2fd..a055f95f 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/ellipse.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/ellipse.py @@ -15,6 +15,7 @@ class Ellipse(KGEmbedded, OMEllipse): """ type_ = "https://openminds.om-i.org/types/Ellipse" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("diameters",) diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/ellipsoid.py b/fairgraph/openminds/v5/sands/mathematical_shape/ellipsoid.py index aec79f5a..bf612268 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/ellipsoid.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/ellipsoid.py @@ -15,6 +15,7 @@ class Ellipsoid(KGEmbedded, OMEllipsoid): """ type_ = "https://openminds.om-i.org/types/Ellipsoid" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("intermediate_diameter", "major_diameter", "minor_diameter") diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/equilateral_triangle.py b/fairgraph/openminds/v5/sands/mathematical_shape/equilateral_triangle.py index a2c9f2d5..49c5ef73 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/equilateral_triangle.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/equilateral_triangle.py @@ -15,6 +15,7 @@ class EquilateralTriangle(KGEmbedded, OMEquilateralTriangle): """ type_ = "https://openminds.om-i.org/types/EquilateralTriangle" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("side_length",) diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/frustum.py b/fairgraph/openminds/v5/sands/mathematical_shape/frustum.py index 23c3b531..d8c7af3e 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/frustum.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/frustum.py @@ -18,6 +18,7 @@ class Frustum(KGEmbedded, OMFrustum): """ type_ = "https://openminds.om-i.org/types/Frustum" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("base_distance", "major_base_shape", "minor_base_scale") diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/isosceles_triangle.py b/fairgraph/openminds/v5/sands/mathematical_shape/isosceles_triangle.py index 78253e1c..7af0a359 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/isosceles_triangle.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/isosceles_triangle.py @@ -15,6 +15,7 @@ class IsoscelesTriangle(KGEmbedded, OMIsoscelesTriangle): """ type_ = "https://openminds.om-i.org/types/IsoscelesTriangle" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("apex_angle", "leg_length") diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/kite.py b/fairgraph/openminds/v5/sands/mathematical_shape/kite.py index b7b14708..ee83f886 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/kite.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/kite.py @@ -15,6 +15,7 @@ class Kite(KGEmbedded, OMKite): """ type_ = "https://openminds.om-i.org/types/Kite" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("leg_lengths", "symmetry_diagonal_length") diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/parallelogram.py b/fairgraph/openminds/v5/sands/mathematical_shape/parallelogram.py index 81b4ec17..7b8f26ec 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/parallelogram.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/parallelogram.py @@ -15,6 +15,7 @@ class Parallelogram(KGEmbedded, OMParallelogram): """ type_ = "https://openminds.om-i.org/types/Parallelogram" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("base_distance", "base_length", "interior_angle") diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/rectangle.py b/fairgraph/openminds/v5/sands/mathematical_shape/rectangle.py index b6a22d88..27854900 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/rectangle.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/rectangle.py @@ -15,6 +15,7 @@ class Rectangle(KGEmbedded, OMRectangle): """ type_ = "https://openminds.om-i.org/types/Rectangle" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("major_side_length", "minor_side_length") diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/regular_polygon.py b/fairgraph/openminds/v5/sands/mathematical_shape/regular_polygon.py index e25561cb..a417f425 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/regular_polygon.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/regular_polygon.py @@ -15,6 +15,7 @@ class RegularPolygon(KGEmbedded, OMRegularPolygon): """ type_ = "https://openminds.om-i.org/types/RegularPolygon" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("circumradius", "number_of_sides") diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/rhombus.py b/fairgraph/openminds/v5/sands/mathematical_shape/rhombus.py index a6d916ed..4814c7f9 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/rhombus.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/rhombus.py @@ -15,6 +15,7 @@ class Rhombus(KGEmbedded, OMRhombus): """ type_ = "https://openminds.om-i.org/types/Rhombus" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("diagonal_lengths",) diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/right_cone.py b/fairgraph/openminds/v5/sands/mathematical_shape/right_cone.py index 26623976..3c3a25cc 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/right_cone.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/right_cone.py @@ -15,6 +15,7 @@ class RightCone(KGEmbedded, OMRightCone): """ type_ = "https://openminds.om-i.org/types/RightCone" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("apex_base_distance", "base_shape") diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/right_cylinder.py b/fairgraph/openminds/v5/sands/mathematical_shape/right_cylinder.py index 9dfc8f89..4f6089d8 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/right_cylinder.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/right_cylinder.py @@ -15,6 +15,7 @@ class RightCylinder(KGEmbedded, OMRightCylinder): """ type_ = "https://openminds.om-i.org/types/RightCylinder" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("base_distance", "base_shape") diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/right_prism.py b/fairgraph/openminds/v5/sands/mathematical_shape/right_prism.py index 5cd94c55..9a594e34 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/right_prism.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/right_prism.py @@ -15,6 +15,7 @@ class RightPrism(KGEmbedded, OMRightPrism): """ type_ = "https://openminds.om-i.org/types/RightPrism" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("base_distance", "base_shape") diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/right_triangle.py b/fairgraph/openminds/v5/sands/mathematical_shape/right_triangle.py index b112e016..d9eccfe7 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/right_triangle.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/right_triangle.py @@ -15,6 +15,7 @@ class RightTriangle(KGEmbedded, OMRightTriangle): """ type_ = "https://openminds.om-i.org/types/RightTriangle" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("perpendicular_leg_lengths",) diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/sphere.py b/fairgraph/openminds/v5/sands/mathematical_shape/sphere.py index a6ce92ce..9149a29b 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/sphere.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/sphere.py @@ -15,6 +15,7 @@ class Sphere(KGEmbedded, OMSphere): """ type_ = "https://openminds.om-i.org/types/Sphere" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("radius",) diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/spheroid.py b/fairgraph/openminds/v5/sands/mathematical_shape/spheroid.py index aa07e3c7..695f698d 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/spheroid.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/spheroid.py @@ -15,6 +15,7 @@ class Spheroid(KGEmbedded, OMSpheroid): """ type_ = "https://openminds.om-i.org/types/Spheroid" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("equatorial_diameter", "polar_diameter") diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/square.py b/fairgraph/openminds/v5/sands/mathematical_shape/square.py index 03cb7d89..077e94a5 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/square.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/square.py @@ -15,6 +15,7 @@ class Square(KGEmbedded, OMSquare): """ type_ = "https://openminds.om-i.org/types/Square" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("side_length",) diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/trapezoid.py b/fairgraph/openminds/v5/sands/mathematical_shape/trapezoid.py index 581c971b..453e3f3a 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/trapezoid.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/trapezoid.py @@ -15,6 +15,7 @@ class Trapezoid(KGEmbedded, OMTrapezoid): """ type_ = "https://openminds.om-i.org/types/Trapezoid" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("base_distance", "base_lengths") diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/triangle.py b/fairgraph/openminds/v5/sands/mathematical_shape/triangle.py index ee2b142f..7f7d0b7e 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/triangle.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/triangle.py @@ -15,6 +15,7 @@ class Triangle(KGEmbedded, OMTriangle): """ type_ = "https://openminds.om-i.org/types/Triangle" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("apex_angle", "leg_lengths") diff --git a/fairgraph/openminds/v5/sands/miscellaneous/anatomical_target_position.py b/fairgraph/openminds/v5/sands/miscellaneous/anatomical_target_position.py index aacde8b7..7f29db2e 100644 --- a/fairgraph/openminds/v5/sands/miscellaneous/anatomical_target_position.py +++ b/fairgraph/openminds/v5/sands/miscellaneous/anatomical_target_position.py @@ -15,6 +15,7 @@ class AnatomicalTargetPosition(KGEmbedded, OMAnatomicalTargetPosition): """ type_ = "https://openminds.om-i.org/types/AnatomicalTargetPosition" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("anatomical_targets", "target_identification_type") diff --git a/fairgraph/openminds/v5/sands/miscellaneous/coordinate_point.py b/fairgraph/openminds/v5/sands/miscellaneous/coordinate_point.py index aecd1fcb..9bb02e07 100644 --- a/fairgraph/openminds/v5/sands/miscellaneous/coordinate_point.py +++ b/fairgraph/openminds/v5/sands/miscellaneous/coordinate_point.py @@ -15,6 +15,7 @@ class CoordinatePoint(KGEmbedded, OMCoordinatePoint): """ type_ = "https://openminds.om-i.org/types/CoordinatePoint" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("coordinate_framework", "coordinates") diff --git a/fairgraph/openminds/v5/sands/miscellaneous/qualitative_relation_assessment.py b/fairgraph/openminds/v5/sands/miscellaneous/qualitative_relation_assessment.py index 3c4cb083..26c8ef76 100644 --- a/fairgraph/openminds/v5/sands/miscellaneous/qualitative_relation_assessment.py +++ b/fairgraph/openminds/v5/sands/miscellaneous/qualitative_relation_assessment.py @@ -15,6 +15,7 @@ class QualitativeRelationAssessment(KGEmbedded, OMQualitativeRelationAssessment) """ type_ = "https://openminds.om-i.org/types/QualitativeRelationAssessment" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("in_relation_to", "qualitative_overlap") diff --git a/fairgraph/openminds/v5/sands/miscellaneous/quantitative_relation_assessment.py b/fairgraph/openminds/v5/sands/miscellaneous/quantitative_relation_assessment.py index ac384beb..baf92bc6 100644 --- a/fairgraph/openminds/v5/sands/miscellaneous/quantitative_relation_assessment.py +++ b/fairgraph/openminds/v5/sands/miscellaneous/quantitative_relation_assessment.py @@ -15,6 +15,7 @@ class QuantitativeRelationAssessment(KGEmbedded, OMQuantitativeRelationAssessmen """ type_ = "https://openminds.om-i.org/types/QuantitativeRelationAssessment" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("in_relation_to", "quantitative_overlap") diff --git a/fairgraph/openminds/v5/sands/miscellaneous/single_color.py b/fairgraph/openminds/v5/sands/miscellaneous/single_color.py index 430038b4..0574ecda 100644 --- a/fairgraph/openminds/v5/sands/miscellaneous/single_color.py +++ b/fairgraph/openminds/v5/sands/miscellaneous/single_color.py @@ -16,6 +16,7 @@ class SingleColor(KGObject, OMSingleColor): type_ = "https://openminds.om-i.org/types/SingleColor" default_space = "atlas" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("value",) diff --git a/fairgraph/openminds/v5/sands/miscellaneous/viewer_specification.py b/fairgraph/openminds/v5/sands/miscellaneous/viewer_specification.py index 567cad25..361a625d 100644 --- a/fairgraph/openminds/v5/sands/miscellaneous/viewer_specification.py +++ b/fairgraph/openminds/v5/sands/miscellaneous/viewer_specification.py @@ -15,6 +15,7 @@ class ViewerSpecification(KGEmbedded, OMViewerSpecification): """ type_ = "https://openminds.om-i.org/types/ViewerSpecification" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("anchor_points",) diff --git a/fairgraph/openminds/v5/sands/non_atlas/custom_anatomical_entity.py b/fairgraph/openminds/v5/sands/non_atlas/custom_anatomical_entity.py index 832813bc..93746ba0 100644 --- a/fairgraph/openminds/v5/sands/non_atlas/custom_anatomical_entity.py +++ b/fairgraph/openminds/v5/sands/non_atlas/custom_anatomical_entity.py @@ -16,6 +16,7 @@ class CustomAnatomicalEntity(KGObject, OMCustomAnatomicalEntity): type_ = "https://openminds.om-i.org/types/CustomAnatomicalEntity" default_space = "spatial" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/sands/non_atlas/custom_annotation.py b/fairgraph/openminds/v5/sands/non_atlas/custom_annotation.py index f0b7da3b..26961fdb 100644 --- a/fairgraph/openminds/v5/sands/non_atlas/custom_annotation.py +++ b/fairgraph/openminds/v5/sands/non_atlas/custom_annotation.py @@ -15,6 +15,7 @@ class CustomAnnotation(KGEmbedded, OMCustomAnnotation): """ type_ = "https://openminds.om-i.org/types/CustomAnnotation" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("coordinate_framework", "criteria_quality_type", "criteria_type", "type") diff --git a/fairgraph/openminds/v5/sands/non_atlas/custom_coordinate_framework.py b/fairgraph/openminds/v5/sands/non_atlas/custom_coordinate_framework.py index f79fcc62..5613556e 100644 --- a/fairgraph/openminds/v5/sands/non_atlas/custom_coordinate_framework.py +++ b/fairgraph/openminds/v5/sands/non_atlas/custom_coordinate_framework.py @@ -16,6 +16,7 @@ class CustomCoordinateFramework(KGObject, OMCustomCoordinateFramework): type_ = "https://openminds.om-i.org/types/CustomCoordinateFramework" default_space = "spatial" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/specimen_prep/activity/cranial_window_preparation.py b/fairgraph/openminds/v5/specimen_prep/activity/cranial_window_preparation.py index a67344d8..5acb58a1 100644 --- a/fairgraph/openminds/v5/specimen_prep/activity/cranial_window_preparation.py +++ b/fairgraph/openminds/v5/specimen_prep/activity/cranial_window_preparation.py @@ -19,6 +19,7 @@ class CranialWindowPreparation(KGObject, OMCranialWindowPreparation): type_ = "https://openminds.om-i.org/types/CranialWindowPreparation" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v5/specimen_prep/activity/tissue_culture_preparation.py b/fairgraph/openminds/v5/specimen_prep/activity/tissue_culture_preparation.py index a99b8718..b0fe3df4 100644 --- a/fairgraph/openminds/v5/specimen_prep/activity/tissue_culture_preparation.py +++ b/fairgraph/openminds/v5/specimen_prep/activity/tissue_culture_preparation.py @@ -19,6 +19,7 @@ class TissueCulturePreparation(KGObject, OMTissueCulturePreparation): type_ = "https://openminds.om-i.org/types/TissueCulturePreparation" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v5/specimen_prep/activity/tissue_sample_slicing.py b/fairgraph/openminds/v5/specimen_prep/activity/tissue_sample_slicing.py index 6a8984d8..f11fcaef 100644 --- a/fairgraph/openminds/v5/specimen_prep/activity/tissue_sample_slicing.py +++ b/fairgraph/openminds/v5/specimen_prep/activity/tissue_sample_slicing.py @@ -19,6 +19,7 @@ class TissueSampleSlicing(KGObject, OMTissueSampleSlicing): type_ = "https://openminds.om-i.org/types/TissueSampleSlicing" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v5/specimen_prep/device/slicing_device.py b/fairgraph/openminds/v5/specimen_prep/device/slicing_device.py index 0d015d4c..c18f2e83 100644 --- a/fairgraph/openminds/v5/specimen_prep/device/slicing_device.py +++ b/fairgraph/openminds/v5/specimen_prep/device/slicing_device.py @@ -16,6 +16,7 @@ class SlicingDevice(KGObject, OMSlicingDevice): type_ = "https://openminds.om-i.org/types/SlicingDevice" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/specimen_prep/device/slicing_device_usage.py b/fairgraph/openminds/v5/specimen_prep/device/slicing_device_usage.py index d643347c..ee436a7b 100644 --- a/fairgraph/openminds/v5/specimen_prep/device/slicing_device_usage.py +++ b/fairgraph/openminds/v5/specimen_prep/device/slicing_device_usage.py @@ -16,6 +16,7 @@ class SlicingDeviceUsage(KGObject, OMSlicingDeviceUsage): type_ = "https://openminds.om-i.org/types/SlicingDeviceUsage" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/stimulation/activity/stimulation_activity.py b/fairgraph/openminds/v5/stimulation/activity/stimulation_activity.py index f7b5f733..779490d4 100644 --- a/fairgraph/openminds/v5/stimulation/activity/stimulation_activity.py +++ b/fairgraph/openminds/v5/stimulation/activity/stimulation_activity.py @@ -19,6 +19,7 @@ class StimulationActivity(KGObject, OMStimulationActivity): type_ = "https://openminds.om-i.org/types/StimulationActivity" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v5/stimulation/stimulus/ephys_stimulus.py b/fairgraph/openminds/v5/stimulation/stimulus/ephys_stimulus.py index 2ff1fe06..98665b09 100644 --- a/fairgraph/openminds/v5/stimulation/stimulus/ephys_stimulus.py +++ b/fairgraph/openminds/v5/stimulation/stimulus/ephys_stimulus.py @@ -16,6 +16,7 @@ class EphysStimulus(KGObject, OMEphysStimulus): type_ = "https://openminds.om-i.org/types/EphysStimulus" default_space = "in-depth" + SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/queries.py b/fairgraph/queries.py index cae46a29..6ac992fa 100644 --- a/fairgraph/queries.py +++ b/fairgraph/queries.py @@ -376,20 +376,26 @@ def serialize(self) -> Dict[str, Any]: #: groups by origin scheme first and looks cluttered. ``synonyms`` is excluded: it is #: list-valued and not a sensible sort key. #: +#: This is the default priority. Generated openMINDS classes carry their own ``SORT_PRIORITY`` +#: class attribute (see the builder's ``DEFAULT_SORT_PRIORITY`` / ``SORT_PRIORITY_EXCEPTIONS``), +#: and a few classes override it — e.g. ``ParcellationEntity`` and ``ParcellationEntityVersion`` +#: put ``lookupLabel`` first so that terms from the same atlas stay together. +#: #: The KG API allows ``"sort": true`` on only one property, and only at the root level, so #: exactly one property is chosen and it is always a top-level property. SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") -def choose_sort_property(query_properties): +def choose_sort_property(query_properties, priority=SORT_PRIORITY): """ Return the single top-level ``QueryProperty`` to sort a generated query by, or ``None``. - The first top-level property whose ``name`` appears in :data:`SORT_PRIORITY` (in priority - order) is chosen; this satisfies the KG's constraint of exactly one ``"sort": true`` at the - root level. If no sortable property is present, returns ``None`` so no sort is requested. + The first top-level property whose ``name`` appears in ``priority`` (in priority order) is + chosen; this satisfies the KG's constraint of exactly one ``"sort": true`` at the root level. + ``priority`` defaults to the module-level :data:`SORT_PRIORITY`. If no sortable property is + present, returns ``None`` so no sort is requested. """ - for sort_name in SORT_PRIORITY: + for sort_name in priority: for prop in query_properties: if prop.name == sort_name: return prop diff --git a/test/test_queries.py b/test/test_queries.py index 77988375..f12b2816 100644 --- a/test/test_queries.py +++ b/test/test_queries.py @@ -525,8 +525,11 @@ def test_generate_query_single_root_level_sort_key(mock_client): """Generated queries carry at most one 'sort': true, on a root-level property only. The KG query API allows sorting on exactly one property, at the root level. This pins - that constraint and the deliberate priority order in which the sort property is chosen - (see SORT_PRIORITY in fairgraph/queries.py). + that constraint and the deliberate priority order in which the sort property is chosen. + Most classes use the default priority (SORT_PRIORITY in fairgraph/queries.py), but a few + classes override it via a per-class SORT_PRIORITY attribute (see the builder's + SORT_PRIORITY_EXCEPTIONS); ParcellationEntity sorts by lookup_label so that terms from the + same atlas stay together. """ import fairgraph.openminds.v4.core as v4core import fairgraph.openminds.v4.sands as v4sands @@ -536,16 +539,16 @@ def test_generate_query_single_root_level_sort_key(mock_client): # (class, expected sort propertyName, or None for "no sort") cases = [ - # has both name and lookup_label -> name wins over lookup_label - (v4sands.ParcellationEntity, "name"), - (v4sands.ParcellationEntityVersion, "name"), + # per-class override: lookup_label preferred so atlas terms stay together + (v4sands.ParcellationEntity, "lookupLabel"), + (v4sands.ParcellationEntityVersion, "lookupLabel"), + (v5sands.ParcellationEntity, "lookupLabel"), + (v5sands.ParcellationEntityVersion, "lookupLabel"), + # default priority: name wins over lookup_label (v4ephys.Electrode, "name"), (v4ephys.ElectrodeArray, "name"), (v4ephys.Pipette, "name"), (v4sp.SlicingDevice, "name"), - # v5 variants behave the same - (v5sands.ParcellationEntity, "name"), - (v5sands.ParcellationEntityVersion, "name"), # no 'name', but family_name -> familyName (newly sortable) (v4core.Person, "familyName"), # no 'name', full_name present -> fullName @@ -571,22 +574,50 @@ def test_generate_query_no_sort_when_no_name_like_property(mock_client): assert "sort" not in prop, f"unexpected sort on {prop.get('propertyName')}" +def test_per_class_sort_priority_override(): + """The generated SORT_PRIORITY class attribute pins the deliberate per-class overrides. + + ParcellationEntity(-Version) prefer lookup_label so that terms from the same atlas stay + together, unlike every other class which uses the default priority. This guards against + the builder regeneration silently reverting the override (see SORT_PRIORITY_EXCEPTIONS in + builder/update_openminds.py). + """ + import fairgraph.openminds.v4.sands as v4sands + import fairgraph.openminds.v5.sands as v5sands + import fairgraph.openminds.v4.ephys as v4ephys + from fairgraph.queries import SORT_PRIORITY + + default = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + override = ("lookupLabel", "name", "fullName", "shortName", "familyName", "abbreviation") + + assert v4sands.ParcellationEntity.SORT_PRIORITY == override + assert v4sands.ParcellationEntityVersion.SORT_PRIORITY == override + assert v5sands.ParcellationEntity.SORT_PRIORITY == override + assert v5sands.ParcellationEntityVersion.SORT_PRIORITY == override + # a class without an override still uses the default + assert v4ephys.Electrode.SORT_PRIORITY == default + # and the module default matches + assert SORT_PRIORITY == default + assert SORT_PRIORITY + + @skip_if_no_connection -def test_list_results_sorted_by_name(kg_client): +def test_list_results_sorted_by_chosen_property(kg_client): """Live: results come back sorted case-insensitively by the chosen sort property. The KG sorts case-insensitively (e.g. 'AAL1_brain' sits between 'AAL1_AMYG' and - 'AAL1_CAU'), so the assertion compares lower-cased names rather than using plain + 'AAL1_CAU'), so the assertion compares lower-cased values rather than using plain ``sorted()``, which would disagree. Sorting only applies to the query API, so the - query API is forced explicitly. + query API is forced explicitly. ParcellationEntity sorts by lookup_label (its per-class + override). """ import fairgraph.openminds.v4.sands as v4sands instances = v4sands.ParcellationEntity.list(kg_client, size=30, api="query") - names = [inst.name for inst in instances if getattr(inst, "name", None)] - assert len(names) > 1 - lowered = [name.lower() for name in names] - assert lowered == sorted(lowered), "results not ordered case-insensitively by name" + values = [inst.lookup_label for inst in instances if getattr(inst, "lookup_label", None)] + assert len(values) > 1 + lowered = [value.lower() for value in values] + assert lowered == sorted(lowered), "results not ordered case-insensitively by lookup_label" def test_generate_query_type_filter_flattened(): From 0a6834373a6420932cd1565d8f8d0586628614c9 Mon Sep 17 00:00:00 2001 From: Andrew Davison Date: Sat, 17 Oct 2026 18:09:37 +0200 Subject: [PATCH 3/3] Move sort-property selection to build time (#129) Rather than choosing which property to sort on at runtime for every query, decide it once in the builder and bake the single value into each generated class as a SORT_PROPERTY attribute (a camelCase schema name, or None). - builder/update_openminds.py: add get_sort_property(), which picks the first name-like property each class actually has, in DEFAULT_SORT_PRIORITY order (or the per-class SORT_PRIORITY_EXCEPTIONS override); inject it into the template context as sort_property. - builder/fairgraph_module_template.py.txt: emit SORT_PROPERTY = "" or None instead of the full SORT_PRIORITY priority tuple. - fairgraph/kgobject.py: generate_query() reads cls.SORT_PROPERTY and applies it via find_sort_property(); KGObject.SORT_PROPERTY = None. list() docstring updated. - fairgraph/queries.py: drop the runtime SORT_PRIORITY constant and choose_sort_property(); add minimal find_sort_property(). - Regenerate v4 and v5 (513 files). ParcellationEntity(-Version) sort by lookup_label; default classes sort by name/fullName/familyName as before. - Update tests and docs for the build-time decision. The changes in this commit were produced by the prompt "rather than choose which property to sort on at run time, it would be more efficient to do this at build time, in the update_openminds.py script", in the same session --- builder/fairgraph_module_template.py.txt | 6 ++- builder/update_openminds.py | 29 +++++++++--- doc/queries.rst | 4 +- doc/release_notes.rst | 9 ++-- fairgraph/kgobject.py | 35 ++++++++------- .../v4/chemicals/amount_of_chemical.py | 2 +- .../v4/chemicals/chemical_mixture.py | 2 +- .../v4/chemicals/chemical_substance.py | 2 +- .../openminds/v4/chemicals/product_source.py | 2 +- .../openminds/v4/computation/data_analysis.py | 2 +- .../openminds/v4/computation/data_copy.py | 2 +- .../openminds/v4/computation/environment.py | 2 +- .../v4/computation/generic_computation.py | 2 +- .../v4/computation/hardware_system.py | 2 +- .../v4/computation/launch_configuration.py | 2 +- .../openminds/v4/computation/local_file.py | 2 +- .../v4/computation/model_validation.py | 2 +- .../openminds/v4/computation/optimization.py | 2 +- .../openminds/v4/computation/simulation.py | 2 +- .../v4/computation/software_agent.py | 2 +- .../v4/computation/validation_test.py | 2 +- .../v4/computation/validation_test_version.py | 2 +- .../openminds/v4/computation/visualization.py | 2 +- .../v4/computation/workflow_execution.py | 2 +- .../v4/computation/workflow_recipe.py | 2 +- .../v4/computation/workflow_recipe_version.py | 2 +- .../v4/controlled_terms/action_status_type.py | 2 +- .../v4/controlled_terms/age_category.py | 2 +- .../v4/controlled_terms/analysis_technique.py | 2 +- .../anatomical_axes_orientation.py | 2 +- .../anatomical_identification_type.py | 2 +- .../v4/controlled_terms/anatomical_plane.py | 2 +- .../annotation_criteria_type.py | 2 +- .../v4/controlled_terms/annotation_type.py | 2 +- .../v4/controlled_terms/atlas_type.py | 2 +- .../auditory_stimulus_type.py | 2 +- .../v4/controlled_terms/biological_order.py | 2 +- .../v4/controlled_terms/biological_process.py | 2 +- .../v4/controlled_terms/biological_sex.py | 2 +- .../v4/controlled_terms/breeding_type.py | 2 +- .../v4/controlled_terms/cell_culture_type.py | 2 +- .../v4/controlled_terms/cell_type.py | 2 +- .../controlled_terms/chemical_mixture_type.py | 2 +- .../openminds/v4/controlled_terms/colormap.py | 2 +- .../v4/controlled_terms/contribution_type.py | 2 +- .../cranial_window_construction_type.py | 2 +- .../cranial_window_reinforcement_type.py | 2 +- .../controlled_terms/criteria_quality_type.py | 2 +- .../v4/controlled_terms/data_type.py | 2 +- .../v4/controlled_terms/device_type.py | 2 +- .../v4/controlled_terms/difference_measure.py | 2 +- .../openminds/v4/controlled_terms/disease.py | 2 +- .../v4/controlled_terms/disease_model.py | 2 +- .../v4/controlled_terms/educational_level.py | 2 +- .../electrical_stimulus_type.py | 2 +- .../v4/controlled_terms/ethics_assessment.py | 2 +- .../controlled_terms/experimental_approach.py | 2 +- .../controlled_terms/file_bundle_grouping.py | 2 +- .../controlled_terms/file_repository_type.py | 2 +- .../v4/controlled_terms/file_usage_role.py | 2 +- .../controlled_terms/genetic_strain_type.py | 2 +- .../gustatory_stimulus_type.py | 2 +- .../v4/controlled_terms/handedness.py | 2 +- .../openminds/v4/controlled_terms/language.py | 2 +- .../v4/controlled_terms/laterality.py | 2 +- .../learning_resource_type.py | 2 +- .../v4/controlled_terms/measured_quantity.py | 2 +- .../controlled_terms/measured_signal_type.py | 2 +- .../controlled_terms/meta_data_model_type.py | 2 +- .../model_abstraction_level.py | 2 +- .../v4/controlled_terms/model_scope.py | 2 +- .../v4/controlled_terms/molecular_entity.py | 2 +- .../v4/controlled_terms/mri_pulse_sequence.py | 2 +- .../v4/controlled_terms/mri_weighting.py | 2 +- .../olfactory_stimulus_type.py | 2 +- .../v4/controlled_terms/operating_device.py | 2 +- .../v4/controlled_terms/operating_system.py | 2 +- .../controlled_terms/optical_stimulus_type.py | 2 +- .../openminds/v4/controlled_terms/organ.py | 2 +- .../v4/controlled_terms/organism_substance.py | 2 +- .../v4/controlled_terms/organism_system.py | 2 +- .../controlled_terms/patch_clamp_variation.py | 2 +- .../v4/controlled_terms/preparation_type.py | 2 +- .../controlled_terms/product_accessibility.py | 2 +- .../controlled_terms/programming_language.py | 2 +- .../controlled_terms/qualitative_overlap.py | 2 +- .../v4/controlled_terms/semantic_data_type.py | 2 +- .../openminds/v4/controlled_terms/service.py | 2 +- .../v4/controlled_terms/setup_type.py | 2 +- .../software_application_category.py | 2 +- .../v4/controlled_terms/software_feature.py | 2 +- .../openminds/v4/controlled_terms/species.py | 2 +- .../controlled_terms/stimulation_approach.py | 2 +- .../controlled_terms/stimulation_technique.py | 2 +- .../v4/controlled_terms/subcellular_entity.py | 2 +- .../v4/controlled_terms/subject_attribute.py | 2 +- .../controlled_terms/tactile_stimulus_type.py | 2 +- .../v4/controlled_terms/technique.py | 2 +- .../v4/controlled_terms/term_suggestion.py | 2 +- .../v4/controlled_terms/terminology.py | 2 +- .../tissue_sample_attribute.py | 2 +- .../v4/controlled_terms/tissue_sample_type.py | 2 +- .../controlled_terms/type_of_uncertainty.py | 2 +- .../controlled_terms/uberon_parcellation.py | 2 +- .../controlled_terms/unit_of_measurement.py | 2 +- .../controlled_terms/visual_stimulus_type.py | 2 +- .../v4/core/actors/account_information.py | 2 +- .../openminds/v4/core/actors/affiliation.py | 2 +- .../openminds/v4/core/actors/consortium.py | 2 +- .../v4/core/actors/contact_information.py | 2 +- .../openminds/v4/core/actors/contribution.py | 2 +- .../openminds/v4/core/actors/organization.py | 2 +- fairgraph/openminds/v4/core/actors/person.py | 2 +- .../openminds/v4/core/data/content_type.py | 2 +- .../v4/core/data/content_type_pattern.py | 2 +- fairgraph/openminds/v4/core/data/copyright.py | 2 +- fairgraph/openminds/v4/core/data/file.py | 2 +- .../openminds/v4/core/data/file_archive.py | 2 +- .../openminds/v4/core/data/file_bundle.py | 2 +- .../v4/core/data/file_path_pattern.py | 2 +- .../openminds/v4/core/data/file_repository.py | 2 +- .../v4/core/data/file_repository_structure.py | 2 +- fairgraph/openminds/v4/core/data/hash.py | 2 +- fairgraph/openminds/v4/core/data/license.py | 2 +- .../openminds/v4/core/data/measurement.py | 2 +- .../openminds/v4/core/data/service_link.py | 2 +- .../v4/core/digital_identifier/doi.py | 2 +- .../v4/core/digital_identifier/gridid.py | 2 +- .../v4/core/digital_identifier/handle.py | 2 +- .../identifiers_dot_org_id.py | 2 +- .../v4/core/digital_identifier/isbn.py | 2 +- .../v4/core/digital_identifier/issn.py | 2 +- .../v4/core/digital_identifier/orcid.py | 2 +- .../v4/core/digital_identifier/rorid.py | 2 +- .../v4/core/digital_identifier/rrid.py | 2 +- .../core/digital_identifier/stock_number.py | 2 +- .../v4/core/digital_identifier/swhid.py | 2 +- .../v4/core/miscellaneous/comment.py | 2 +- .../v4/core/miscellaneous/funding.py | 2 +- .../core/miscellaneous/quantitative_value.py | 2 +- .../miscellaneous/quantitative_value_array.py | 2 +- .../miscellaneous/quantitative_value_range.py | 2 +- .../miscellaneous/research_product_group.py | 2 +- .../v4/core/miscellaneous/web_resource.py | 2 +- .../openminds/v4/core/products/dataset.py | 2 +- .../v4/core/products/dataset_version.py | 2 +- .../v4/core/products/meta_data_model.py | 2 +- .../core/products/meta_data_model_version.py | 2 +- fairgraph/openminds/v4/core/products/model.py | 2 +- .../v4/core/products/model_version.py | 2 +- .../openminds/v4/core/products/project.py | 2 +- fairgraph/openminds/v4/core/products/setup.py | 2 +- .../openminds/v4/core/products/software.py | 2 +- .../v4/core/products/software_version.py | 2 +- .../openminds/v4/core/products/web_service.py | 2 +- .../v4/core/products/web_service_version.py | 2 +- .../v4/core/research/behavioral_protocol.py | 2 +- .../v4/core/research/configuration.py | 2 +- .../v4/core/research/custom_property_set.py | 2 +- .../v4/core/research/numerical_property.py | 2 +- .../v4/core/research/property_value_list.py | 2 +- .../openminds/v4/core/research/protocol.py | 2 +- .../v4/core/research/protocol_execution.py | 2 +- .../openminds/v4/core/research/strain.py | 2 +- .../v4/core/research/string_property.py | 2 +- .../openminds/v4/core/research/subject.py | 2 +- .../v4/core/research/subject_group.py | 2 +- .../v4/core/research/subject_group_state.py | 2 +- .../v4/core/research/subject_state.py | 2 +- .../v4/core/research/tissue_sample.py | 2 +- .../core/research/tissue_sample_collection.py | 2 +- .../tissue_sample_collection_state.py | 2 +- .../v4/core/research/tissue_sample_state.py | 2 +- .../v4/ephys/activity/cell_patching.py | 2 +- .../v4/ephys/activity/electrode_placement.py | 2 +- .../v4/ephys/activity/recording_activity.py | 2 +- .../openminds/v4/ephys/device/electrode.py | 2 +- .../v4/ephys/device/electrode_array.py | 2 +- .../v4/ephys/device/electrode_array_usage.py | 2 +- .../v4/ephys/device/electrode_usage.py | 2 +- .../openminds/v4/ephys/device/pipette.py | 2 +- .../v4/ephys/device/pipette_usage.py | 2 +- .../openminds/v4/ephys/entity/channel.py | 2 +- .../openminds/v4/ephys/entity/recording.py | 2 +- fairgraph/openminds/v4/publications/book.py | 2 +- .../openminds/v4/publications/chapter.py | 2 +- .../v4/publications/learning_resource.py | 2 +- .../openminds/v4/publications/live_paper.py | 2 +- .../publications/live_paper_resource_item.py | 2 +- .../v4/publications/live_paper_section.py | 2 +- .../v4/publications/live_paper_version.py | 2 +- .../openminds/v4/publications/periodical.py | 2 +- .../v4/publications/publication_issue.py | 2 +- .../v4/publications/publication_volume.py | 2 +- .../v4/publications/scholarly_article.py | 2 +- .../v4/sands/atlas/atlas_annotation.py | 2 +- .../openminds/v4/sands/atlas/brain_atlas.py | 2 +- .../v4/sands/atlas/brain_atlas_version.py | 2 +- .../v4/sands/atlas/common_coordinate_space.py | 2 +- .../atlas/common_coordinate_space_version.py | 2 +- .../v4/sands/atlas/parcellation_entity.py | 2 +- .../atlas/parcellation_entity_version.py | 2 +- .../sands/atlas/parcellation_terminology.py | 2 +- .../atlas/parcellation_terminology_version.py | 2 +- .../v4/sands/mathematical_shapes/circle.py | 2 +- .../v4/sands/mathematical_shapes/ellipse.py | 2 +- .../v4/sands/mathematical_shapes/rectangle.py | 2 +- .../anatomical_target_position.py | 2 +- .../sands/miscellaneous/coordinate_point.py | 2 +- .../qualitative_relation_assessment.py | 2 +- .../quantitative_relation_assessment.py | 2 +- .../v4/sands/miscellaneous/single_color.py | 2 +- .../miscellaneous/viewer_specification.py | 2 +- .../non_atlas/custom_anatomical_entity.py | 2 +- .../v4/sands/non_atlas/custom_annotation.py | 2 +- .../non_atlas/custom_coordinate_space.py | 2 +- .../activity/cranial_window_preparation.py | 2 +- .../activity/tissue_culture_preparation.py | 2 +- .../activity/tissue_sample_slicing.py | 2 +- .../v4/specimen_prep/device/slicing_device.py | 2 +- .../device/slicing_device_usage.py | 2 +- .../activity/stimulation_activity.py | 2 +- .../v4/stimulation/stimulus/ephys_stimulus.py | 2 +- .../v5/chemicals/amount_of_chemical.py | 2 +- .../v5/chemicals/chemical_mixture.py | 2 +- .../v5/chemicals/chemical_substance.py | 2 +- .../openminds/v5/chemicals/product_source.py | 2 +- .../openminds/v5/computation/data_analysis.py | 2 +- .../openminds/v5/computation/data_copy.py | 2 +- .../v5/computation/deployed_interface.py | 2 +- .../openminds/v5/computation/environment.py | 2 +- .../v5/computation/generic_computation.py | 2 +- .../v5/computation/hardware_system.py | 2 +- .../v5/computation/launch_configuration.py | 2 +- .../v5/computation/model_validation.py | 2 +- .../openminds/v5/computation/optimization.py | 2 +- .../v5/computation/service_deployment.py | 2 +- .../openminds/v5/computation/simulation.py | 2 +- .../v5/computation/software_agent.py | 2 +- .../v5/computation/validation_test.py | 2 +- .../v5/computation/validation_test_version.py | 2 +- .../openminds/v5/computation/visualization.py | 2 +- .../v5/computation/workflow_execution.py | 2 +- .../v5/computation/workflow_recipe.py | 2 +- .../v5/computation/workflow_recipe_version.py | 2 +- .../v5/controlled_terms/access_channel.py | 2 +- .../access_eligibility_type.py | 2 +- .../v5/controlled_terms/access_form.py | 2 +- .../controlled_terms/access_process_type.py | 2 +- .../v5/controlled_terms/action_status_type.py | 2 +- .../v5/controlled_terms/age_category.py | 2 +- .../v5/controlled_terms/age_reference.py | 2 +- .../v5/controlled_terms/analysis_technique.py | 2 +- .../anatomical_axes_orientation.py | 2 +- .../v5/controlled_terms/anatomical_cavity.py | 2 +- .../anatomical_identification_type.py | 2 +- .../v5/controlled_terms/anatomical_plane.py | 2 +- .../annotation_criteria_type.py | 2 +- .../v5/controlled_terms/annotation_type.py | 2 +- .../v5/controlled_terms/atlas_type.py | 2 +- .../auditory_stimulus_type.py | 2 +- .../v5/controlled_terms/biological_order.py | 2 +- .../v5/controlled_terms/biological_process.py | 2 +- .../v5/controlled_terms/biological_sex.py | 2 +- .../v5/controlled_terms/breeding_type.py | 2 +- .../v5/controlled_terms/cell_culture_type.py | 2 +- .../v5/controlled_terms/cell_type.py | 2 +- .../controlled_terms/chemical_mixture_type.py | 2 +- .../openminds/v5/controlled_terms/colormap.py | 2 +- .../communication_interface_type.py | 2 +- .../communication_protocol.py | 2 +- .../v5/controlled_terms/contribution_type.py | 2 +- .../cranial_window_construction_type.py | 2 +- .../cranial_window_reinforcement_type.py | 2 +- .../controlled_terms/criteria_quality_type.py | 2 +- .../v5/controlled_terms/data_type.py | 2 +- .../v5/controlled_terms/dependency_impact.py | 2 +- .../deployment_environment_type.py | 2 +- .../controlled_terms/device_mounting_type.py | 2 +- .../v5/controlled_terms/device_type.py | 2 +- .../v5/controlled_terms/difference_measure.py | 2 +- .../openminds/v5/controlled_terms/disease.py | 2 +- .../v5/controlled_terms/disease_model.py | 2 +- .../v5/controlled_terms/educational_level.py | 2 +- .../electrical_stimulus_type.py | 2 +- .../controlled_terms/experimental_approach.py | 2 +- .../controlled_terms/external_body_region.py | 2 +- .../controlled_terms/file_bundle_grouping.py | 2 +- .../controlled_terms/file_repository_type.py | 2 +- .../v5/controlled_terms/file_usage_role.py | 2 +- .../controlled_terms/genetic_strain_type.py | 2 +- .../gustatory_stimulus_type.py | 2 +- .../v5/controlled_terms/handedness.py | 2 +- .../openminds/v5/controlled_terms/language.py | 2 +- .../v5/controlled_terms/laterality.py | 2 +- .../learning_resource_type.py | 2 +- .../v5/controlled_terms/measured_quantity.py | 2 +- .../controlled_terms/measured_signal_type.py | 2 +- .../controlled_terms/meta_data_model_type.py | 2 +- .../model_abstraction_level.py | 2 +- .../v5/controlled_terms/model_scope.py | 2 +- .../modification_consent_requirement.py | 2 +- .../modification_constraint.py | 2 +- .../v5/controlled_terms/modification_form.py | 2 +- .../v5/controlled_terms/modification_scope.py | 2 +- .../v5/controlled_terms/molecular_entity.py | 2 +- .../mri_fat_suppression_technique.py | 2 +- .../mri_parallel_acquisition_technique.py | 2 +- .../v5/controlled_terms/mri_pulse_sequence.py | 2 +- .../mri_spoiling_technique.py | 2 +- .../v5/controlled_terms/mri_weighting.py | 2 +- .../v5/controlled_terms/muscular_structure.py | 2 +- .../nervous_system_structure.py | 2 +- .../olfactory_stimulus_type.py | 2 +- .../v5/controlled_terms/operating_device.py | 2 +- .../v5/controlled_terms/operating_system.py | 2 +- .../controlled_terms/operational_approach.py | 2 +- .../controlled_terms/optical_stimulus_type.py | 2 +- .../openminds/v5/controlled_terms/organ.py | 2 +- .../organ_system_structure.py | 2 +- .../v5/controlled_terms/organism_substance.py | 2 +- .../v5/controlled_terms/organism_system.py | 2 +- .../v5/controlled_terms/organization_type.py | 2 +- .../controlled_terms/patch_clamp_variation.py | 2 +- .../v5/controlled_terms/payment_model_type.py | 2 +- .../v5/controlled_terms/preparation_type.py | 2 +- .../controlled_terms/programming_language.py | 2 +- .../v5/controlled_terms/project_type.py | 2 +- .../v5/controlled_terms/publication_status.py | 2 +- .../v5/controlled_terms/pulse_shape.py | 2 +- .../controlled_terms/qualitative_overlap.py | 2 +- .../v5/controlled_terms/semantic_data_type.py | 2 +- .../v5/controlled_terms/setup_type.py | 2 +- .../controlled_terms/signal_directionality.py | 2 +- .../v5/controlled_terms/skeletal_structure.py | 2 +- .../software_application_category.py | 2 +- .../v5/controlled_terms/software_feature.py | 2 +- .../v5/controlled_terms/sovereign_state.py | 2 +- .../v5/controlled_terms/spatial_encoding.py | 2 +- .../openminds/v5/controlled_terms/species.py | 2 +- .../controlled_terms/stimulation_approach.py | 2 +- .../controlled_terms/stimulation_technique.py | 2 +- .../v5/controlled_terms/subcellular_entity.py | 2 +- .../v5/controlled_terms/subject_attribute.py | 2 +- .../v5/controlled_terms/supranational_body.py | 2 +- .../controlled_terms/tactile_stimulus_type.py | 2 +- .../v5/controlled_terms/technique.py | 2 +- .../v5/controlled_terms/term_suggestion.py | 2 +- .../v5/controlled_terms/terminology.py | 2 +- .../tissue_sample_attribute.py | 2 +- .../v5/controlled_terms/tissue_sample_type.py | 2 +- .../v5/controlled_terms/tissue_structure.py | 2 +- .../controlled_terms/type_of_uncertainty.py | 2 +- .../controlled_terms/unit_of_measurement.py | 2 +- .../v5/controlled_terms/vascular_structure.py | 2 +- .../controlled_terms/visual_stimulus_type.py | 2 +- .../v5/controlled_terms/weight_type.py | 2 +- .../v5/core/actors/account_information.py | 2 +- .../openminds/v5/core/actors/affiliation.py | 2 +- .../openminds/v5/core/actors/consortium.py | 2 +- .../v5/core/actors/contact_information.py | 2 +- .../openminds/v5/core/actors/contribution.py | 2 +- .../openminds/v5/core/actors/organization.py | 2 +- fairgraph/openminds/v5/core/actors/person.py | 2 +- fairgraph/openminds/v5/core/data/channel.py | 2 +- .../openminds/v5/core/data/content_type.py | 2 +- .../v5/core/data/content_type_pattern.py | 2 +- fairgraph/openminds/v5/core/data/copyright.py | 2 +- fairgraph/openminds/v5/core/data/file.py | 2 +- .../openminds/v5/core/data/file_archive.py | 2 +- .../openminds/v5/core/data/file_bundle.py | 2 +- .../v5/core/data/file_path_pattern.py | 2 +- .../openminds/v5/core/data/file_repository.py | 2 +- .../v5/core/data/file_repository_structure.py | 2 +- .../openminds/v5/core/data/grid_image.py | 2 +- .../v5/core/data/grid_image_sequence.py | 2 +- .../v5/core/data/grid_image_stack.py | 2 +- .../openminds/v5/core/data/grid_volume.py | 2 +- .../v5/core/data/grid_volume_sequence.py | 2 +- fairgraph/openminds/v5/core/data/hash.py | 2 +- fairgraph/openminds/v5/core/data/license.py | 2 +- .../openminds/v5/core/data/local_file.py | 2 +- .../openminds/v5/core/data/measurement.py | 2 +- .../v5/core/data/regular_time_series.py | 2 +- .../openminds/v5/core/data/service_link.py | 2 +- .../openminds/v5/core/data/usage_agreement.py | 2 +- .../v5/core/digital_identifier/doi.py | 2 +- .../digital_identifier/generic_identifier.py | 2 +- .../v5/core/digital_identifier/handle.py | 2 +- .../identifiers_dot_org_id.py | 2 +- .../v5/core/digital_identifier/isbn.py | 2 +- .../v5/core/digital_identifier/isni.py | 2 +- .../v5/core/digital_identifier/issn.py | 2 +- .../v5/core/digital_identifier/lei.py | 2 +- .../v5/core/digital_identifier/orcid.py | 2 +- .../v5/core/digital_identifier/rorid.py | 2 +- .../v5/core/digital_identifier/rrid.py | 2 +- .../core/digital_identifier/stock_number.py | 2 +- .../v5/core/digital_identifier/swhid.py | 2 +- .../v5/core/miscellaneous/accessibility.py | 2 +- .../v5/core/miscellaneous/comment.py | 2 +- .../v5/core/miscellaneous/dependency.py | 2 +- .../v5/core/miscellaneous/funding.py | 2 +- .../v5/core/miscellaneous/geo_coordinates.py | 2 +- .../v5/core/miscellaneous/location.py | 2 +- .../v5/core/miscellaneous/membership.py | 2 +- .../core/miscellaneous/quantitative_value.py | 2 +- .../miscellaneous/quantitative_value_array.py | 2 +- .../miscellaneous/quantitative_value_range.py | 2 +- .../miscellaneous/research_product_group.py | 2 +- .../v5/core/miscellaneous/web_resource.py | 2 +- .../openminds/v5/core/products/dataset.py | 2 +- .../v5/core/products/dataset_version.py | 2 +- .../v5/core/products/hardware_product.py | 2 +- .../openminds/v5/core/products/interface.py | 2 +- .../v5/core/products/interface_version.py | 2 +- .../v5/core/products/meta_data_model.py | 2 +- .../core/products/meta_data_model_version.py | 2 +- fairgraph/openminds/v5/core/products/model.py | 2 +- .../v5/core/products/model_version.py | 2 +- .../openminds/v5/core/products/project.py | 2 +- .../openminds/v5/core/products/service.py | 2 +- fairgraph/openminds/v5/core/products/setup.py | 2 +- .../openminds/v5/core/products/software.py | 2 +- .../v5/core/products/software_version.py | 2 +- .../v5/core/research/behavioral_protocol.py | 2 +- .../v5/core/research/configuration.py | 2 +- .../v5/core/research/custom_property_set.py | 2 +- .../v5/core/research/numerical_property.py | 2 +- .../v5/core/research/property_value_list.py | 2 +- .../openminds/v5/core/research/protocol.py | 2 +- .../v5/core/research/protocol_execution.py | 2 +- .../v5/core/research/specimen_age.py | 2 +- .../v5/core/research/specimen_weight.py | 2 +- .../openminds/v5/core/research/strain.py | 2 +- .../v5/core/research/string_property.py | 2 +- .../openminds/v5/core/research/subject.py | 2 +- .../v5/core/research/subject_group.py | 2 +- .../v5/core/research/subject_group_state.py | 2 +- .../v5/core/research/subject_state.py | 2 +- .../v5/core/research/tissue_sample.py | 2 +- .../core/research/tissue_sample_collection.py | 2 +- .../tissue_sample_collection_state.py | 2 +- .../v5/core/research/tissue_sample_state.py | 2 +- .../v5/ephys/activity/cell_patching.py | 2 +- .../v5/ephys/activity/electrode_placement.py | 2 +- .../v5/ephys/activity/recording_activity.py | 2 +- .../openminds/v5/ephys/device/electrode.py | 2 +- .../v5/ephys/device/electrode_array.py | 2 +- .../v5/ephys/device/electrode_array_usage.py | 2 +- .../v5/ephys/device/electrode_usage.py | 2 +- .../openminds/v5/ephys/device/pipette.py | 2 +- .../v5/ephys/device/pipette_usage.py | 2 +- .../activity/dynamic_mri_acquisition.py | 2 +- .../activity/static_mri_acquisition.py | 2 +- .../v5/neuroimaging/device/mri_coil.py | 2 +- .../v5/neuroimaging/device/mri_coil_usage.py | 2 +- .../v5/neuroimaging/device/mri_scanner.py | 2 +- .../neuroimaging/device/mri_scanner_usage.py | 2 +- fairgraph/openminds/v5/publications/book.py | 2 +- .../openminds/v5/publications/chapter.py | 2 +- .../v5/publications/learning_resource.py | 2 +- .../openminds/v5/publications/live_paper.py | 2 +- .../publications/live_paper_resource_item.py | 2 +- .../v5/publications/live_paper_section.py | 2 +- .../v5/publications/live_paper_version.py | 2 +- .../openminds/v5/publications/periodical.py | 2 +- .../v5/publications/publication_issue.py | 2 +- .../v5/publications/publication_volume.py | 2 +- .../v5/publications/scholarly_article.py | 2 +- .../v5/sands/atlas/anatomical_atlas.py | 2 +- .../sands/atlas/anatomical_atlas_version.py | 2 +- .../v5/sands/atlas/atlas_annotation.py | 2 +- .../atlas/common_coordinate_framework.py | 2 +- .../common_coordinate_framework_version.py | 2 +- .../v5/sands/atlas/parcellation_entity.py | 2 +- .../atlas/parcellation_entity_version.py | 2 +- .../sands/atlas/parcellation_terminology.py | 2 +- .../atlas/parcellation_terminology_version.py | 2 +- .../mathematical_shape/centroidal_pyramid.py | 2 +- .../v5/sands/mathematical_shape/circle.py | 2 +- .../mathematical_shape/circular_sector.py | 2 +- .../v5/sands/mathematical_shape/cube.py | 2 +- .../v5/sands/mathematical_shape/ellipse.py | 2 +- .../v5/sands/mathematical_shape/ellipsoid.py | 2 +- .../equilateral_triangle.py | 2 +- .../v5/sands/mathematical_shape/frustum.py | 2 +- .../mathematical_shape/isosceles_triangle.py | 2 +- .../v5/sands/mathematical_shape/kite.py | 2 +- .../sands/mathematical_shape/parallelogram.py | 2 +- .../v5/sands/mathematical_shape/rectangle.py | 2 +- .../mathematical_shape/regular_polygon.py | 2 +- .../v5/sands/mathematical_shape/rhombus.py | 2 +- .../v5/sands/mathematical_shape/right_cone.py | 2 +- .../mathematical_shape/right_cylinder.py | 2 +- .../sands/mathematical_shape/right_prism.py | 2 +- .../mathematical_shape/right_triangle.py | 2 +- .../v5/sands/mathematical_shape/sphere.py | 2 +- .../v5/sands/mathematical_shape/spheroid.py | 2 +- .../v5/sands/mathematical_shape/square.py | 2 +- .../v5/sands/mathematical_shape/trapezoid.py | 2 +- .../v5/sands/mathematical_shape/triangle.py | 2 +- .../anatomical_target_position.py | 2 +- .../sands/miscellaneous/coordinate_point.py | 2 +- .../qualitative_relation_assessment.py | 2 +- .../quantitative_relation_assessment.py | 2 +- .../v5/sands/miscellaneous/single_color.py | 2 +- .../miscellaneous/viewer_specification.py | 2 +- .../non_atlas/custom_anatomical_entity.py | 2 +- .../v5/sands/non_atlas/custom_annotation.py | 2 +- .../non_atlas/custom_coordinate_framework.py | 2 +- .../activity/cranial_window_preparation.py | 2 +- .../activity/tissue_culture_preparation.py | 2 +- .../activity/tissue_sample_slicing.py | 2 +- .../v5/specimen_prep/device/slicing_device.py | 2 +- .../device/slicing_device_usage.py | 2 +- .../activity/stimulation_activity.py | 2 +- .../v5/stimulation/stimulus/ephys_stimulus.py | 2 +- fairgraph/queries.py | 41 +++++------------ test/test_queries.py | 45 +++++++++---------- 520 files changed, 600 insertions(+), 595 deletions(-) diff --git a/builder/fairgraph_module_template.py.txt b/builder/fairgraph_module_template.py.txt index 2aafeb07..fe284750 100644 --- a/builder/fairgraph_module_template.py.txt +++ b/builder/fairgraph_module_template.py.txt @@ -19,7 +19,11 @@ class {{ class_name }}({{base_class}}, OM{{ class_name }}): {%- if default_space %} default_space = "{{ default_space }}" {%- endif %} - SORT_PRIORITY = {{ sort_priority }} + {%- if sort_property %} + SORT_PROPERTY = "{{ sort_property }}" + {%- else %} + SORT_PROPERTY = None + {%- endif %} # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ {% for prop in reverse_properties -%} diff --git a/builder/update_openminds.py b/builder/update_openminds.py index 85312033..f5820231 100644 --- a/builder/update_openminds.py +++ b/builder/update_openminds.py @@ -28,12 +28,13 @@ # its values are human-readable and sort meaningfully; ``lookupLabel`` is put first only for the # classes listed in SORT_PRIORITY_EXCEPTIONS, where it keeps terms from the same atlas/scheme # together. ``synonyms`` is excluded: it is list-valued and not a sensible sort key. -# The Knowledge Graph API allows ``"sort": true`` on only one property, at the root level, so -# exactly one property is chosen and it is always a top-level property. +# +# These priorities are evaluated once, at build time, to decide for each class which single +# top-level property to sort by (see get_sort_property). The Knowledge Graph API allows +# ``"sort": true`` on only one property, at the root level, so at most one property is chosen. DEFAULT_SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") -# Per-class overrides, most preferred sort property first. The rest of the priority order is -# left unchanged (the full list is emitted into the generated class). +# Per-class overrides of the sort priority, most preferred sort property first. SORT_PRIORITY_EXCEPTIONS = { "ParcellationEntity": ("lookupLabel", "name", "fullName", "shortName", "familyName", "abbreviation"), "ParcellationEntityVersion": ("lookupLabel", "name", "fullName", "shortName", "familyName", "abbreviation"), @@ -700,6 +701,24 @@ def get_default_space(schema_group, cls_name, version="v4"): } +def get_sort_property(cls_name, schema_properties): + """Return the single sort property for a class, or ``None``. + + Decided once, at build time, using the priority in DEFAULT_SORT_PRIORITY (or its per-class + override in SORT_PRIORITY_EXCEPTIONS): the first name-like property the class actually has, + in priority order, is chosen and emitted into the generated class as ``SORT_PROPERTY``. + ``schema_properties`` is the raw openMINDS schema ``properties`` dict (keyed by full property + IRI; each value's ``name`` is the camelCase schema name, which is what ``QueryProperty.name`` + uses at runtime). Returns ``None`` when the class has none of the sortable properties. + """ + priority = SORT_PRIORITY_EXCEPTIONS.get(cls_name, DEFAULT_SORT_PRIORITY) + present = {prop["name"] for prop in schema_properties.values()} + for name in priority: + if name in present: + return name + return None + + def get_existence_query(cls_name, properties): if cls_name in custom_existence_queries: return custom_existence_queries[cls_name] @@ -969,7 +988,7 @@ def get_type(prop): "standard_init_properties": standard_init_properties, "additional_methods": additional_methods, "aliases": aliases, - "sort_priority": SORT_PRIORITY_EXCEPTIONS.get(class_name, DEFAULT_SORT_PRIORITY), + "sort_property": get_sort_property(class_name, self._schema_payload["properties"]), "constructor_arguments": sorted( [p["name"] for p in chain(properties, reverse_properties)] + list(aliases.keys()), key=property_name_sort_key, diff --git a/doc/queries.rst b/doc/queries.rst index 75526190..dba47d46 100644 --- a/doc/queries.rst +++ b/doc/queries.rst @@ -141,7 +141,9 @@ chooses that property from the class's name-like properties in a fixed priority ``lookup_label``. It picks the first of these that the class actually has, so, for example, ``Dataset`` is sorted by ``full_name`` and ``Person`` by ``family_name``. ``synonyms`` is never used as a sort key (it is list-valued), and classes with none of these properties are returned in -whatever order the Knowledge Graph supplies. +whatever order the Knowledge Graph supplies. This decision is made once, at build time, and the +chosen property is baked into each generated class as its ``SORT_PROPERTY`` attribute (see the +builder's ``DEFAULT_SORT_PRIORITY`` / ``SORT_PRIORITY_EXCEPTIONS`` in ``builder/update_openminds.py``). A few classes override this default because a different property keeps related results together. In particular, ``ParcellationEntity`` and ``ParcellationEntityVersion`` are sorted by diff --git a/doc/release_notes.rst b/doc/release_notes.rst index 07953ba5..61f83a8b 100644 --- a/doc/release_notes.rst +++ b/doc/release_notes.rst @@ -60,11 +60,14 @@ Changes in behaviour - classes with none of the sortable properties (e.g. ``DOI``) are returned in whatever order the Knowledge Graph supplies. - A few classes override the default order via a per-class ``SORT_PRIORITY`` attribute so that a + A few classes override the default via a per-class override so that a different property keeps related results together: ``ParcellationEntity`` and ``ParcellationEntityVersion`` are sorted by ``lookup_label`` so that terms from the same atlas - stay grouped (instead of by ``name``). The override is defined in the builder's - ``SORT_PRIORITY_EXCEPTIONS`` and regenerated into each generated class. + stay grouped (instead of by ``name``). Which property to sort by is decided **once, at build + time** (in ``builder/update_openminds.py``, see ``DEFAULT_SORT_PRIORITY`` and + ``SORT_PRIORITY_EXCEPTIONS``) and baked into each generated class as its ``SORT_PROPERTY`` + attribute — the runtime simply applies that single value instead of evaluating a priority + order for every query. Results are sorted in ascending, case-insensitive order. This is unrelated to the internal ``ensure_order`` option on a query property, which only preserves the order of instances within diff --git a/fairgraph/kgobject.py b/fairgraph/kgobject.py index 39084644..ad97ef70 100644 --- a/fairgraph/kgobject.py +++ b/fairgraph/kgobject.py @@ -39,7 +39,7 @@ from openminds.base import LinkedNodeEmbedding from .utility import expand_uri, as_list, expand_filter, ActivityLog, normalize_data, handle_scope_keyword -from .queries import Query, QueryProperty, Regex, choose_sort_property, SORT_PRIORITY +from .queries import Query, QueryProperty, Regex, find_sort_property from .errors import AuthorizationError, ResourceExistsError, CannotBuildExistenceQuery from .caching import object_cache, save_cache, generate_cache_key from .base import ErrorHandling, Releasable, JSONdict @@ -72,11 +72,10 @@ class KGObject(KGNode, Releasable): # many cases be over-ridden. # It assumes that "name" is unique within instances of a given type, # which may often not be the case. - # - # Priority order, most preferred first, in which generate_query picks the single sort key. - # Generated openMINDS classes override this (see the builder's DEFAULT_SORT_PRIORITY / - # SORT_PRIORITY_EXCEPTIONS). If None, generate_query falls back to the default in queries.py. - SORT_PRIORITY = None + # The name-like property to sort a generated query by, or None for no sort. This is set at + # build time on the generated openMINDS classes (see the builder's DEFAULT_SORT_PRIORITY / + # SORT_PRIORITY_EXCEPTIONS) and used by generate_query. + SORT_PROPERTY = None def __init__( self, @@ -403,12 +402,12 @@ def list( Note: When the query API is used (i.e. a filter or ``follow_links`` is given, or ``api="query"`` is passed), the results are sorted in ascending, case-insensitive - order by a single name-like property chosen in a fixed priority order - (``name``, ``full_name``, ``short_name``, ``family_name``, ``abbreviation``, - ``lookup_label``; ``synonyms`` is never used). A few classes override this order via - their ``SORT_PRIORITY`` class attribute (e.g. ``ParcellationEntity`` sorts by - ``lookup_label`` so atlas terms stay grouped). Results from the core API are in an - unspecified order. + order by a single name-like property. Which property is used is decided at build time: + by default it follows the priority ``name``, ``full_name``, ``short_name``, + ``family_name``, ``abbreviation``, ``lookup_label`` (``synonyms`` is never used), but + some classes override it via their ``SORT_PROPERTY`` class attribute (e.g. + ``ParcellationEntity`` sorts by ``lookup_label`` so atlas terms stay grouped). Results + from the core API are in an unspecified order. Raises: ValueError: If invalid arguments are passed to the method. @@ -1197,11 +1196,13 @@ def generate_query( ) # second pass, we add filters query.properties.extend(cls.generate_query_filter_properties(normalized_filters)) - # third pass, we add sorting, which can only happen at the top level - sort_priority = getattr(cls, "SORT_PRIORITY", None) or SORT_PRIORITY - sort_property = choose_sort_property(query.properties, sort_priority) - if sort_property is not None: - sort_property.sorted = True + # third pass, we add sorting, which can only happen at the top level; which property to + # sort by is decided at build time and baked into SORT_PROPERTY on the generated class. + sort_property_name = getattr(cls, "SORT_PROPERTY", None) + if sort_property_name is not None: + sort_property = find_sort_property(query.properties, sort_property_name) + if sort_property is not None: + sort_property.sorted = True # implementation note: the three-pass approach generates queries that are sometimes more verbose # than necessary, but it makes the logic easier to understand. return query.serialize() diff --git a/fairgraph/openminds/v4/chemicals/amount_of_chemical.py b/fairgraph/openminds/v4/chemicals/amount_of_chemical.py index e65da6d1..91a6d81e 100644 --- a/fairgraph/openminds/v4/chemicals/amount_of_chemical.py +++ b/fairgraph/openminds/v4/chemicals/amount_of_chemical.py @@ -15,7 +15,7 @@ class AmountOfChemical(KGEmbedded, OMAmountOfChemical): """ type_ = "https://openminds.om-i.org/types/AmountOfChemical" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("chemical_product", "amount") diff --git a/fairgraph/openminds/v4/chemicals/chemical_mixture.py b/fairgraph/openminds/v4/chemicals/chemical_mixture.py index 711efd9b..ec763472 100644 --- a/fairgraph/openminds/v4/chemicals/chemical_mixture.py +++ b/fairgraph/openminds/v4/chemicals/chemical_mixture.py @@ -16,7 +16,7 @@ class ChemicalMixture(KGObject, OMChemicalMixture): type_ = "https://openminds.om-i.org/types/ChemicalMixture" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/chemicals/chemical_substance.py b/fairgraph/openminds/v4/chemicals/chemical_substance.py index 3618c551..0da9c255 100644 --- a/fairgraph/openminds/v4/chemicals/chemical_substance.py +++ b/fairgraph/openminds/v4/chemicals/chemical_substance.py @@ -16,7 +16,7 @@ class ChemicalSubstance(KGObject, OMChemicalSubstance): type_ = "https://openminds.om-i.org/types/ChemicalSubstance" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/chemicals/product_source.py b/fairgraph/openminds/v4/chemicals/product_source.py index 59f7bb21..d1dfa651 100644 --- a/fairgraph/openminds/v4/chemicals/product_source.py +++ b/fairgraph/openminds/v4/chemicals/product_source.py @@ -16,7 +16,7 @@ class ProductSource(KGObject, OMProductSource): type_ = "https://openminds.om-i.org/types/ProductSource" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/data_analysis.py b/fairgraph/openminds/v4/computation/data_analysis.py index 7fef0e29..359bbe0d 100644 --- a/fairgraph/openminds/v4/computation/data_analysis.py +++ b/fairgraph/openminds/v4/computation/data_analysis.py @@ -19,7 +19,7 @@ class DataAnalysis(KGObject, OMDataAnalysis): type_ = "https://openminds.om-i.org/types/DataAnalysis" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/data_copy.py b/fairgraph/openminds/v4/computation/data_copy.py index 668df3ca..43f69805 100644 --- a/fairgraph/openminds/v4/computation/data_copy.py +++ b/fairgraph/openminds/v4/computation/data_copy.py @@ -19,7 +19,7 @@ class DataCopy(KGObject, OMDataCopy): type_ = "https://openminds.om-i.org/types/DataCopy" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/environment.py b/fairgraph/openminds/v4/computation/environment.py index 558e8f6e..564f2a4d 100644 --- a/fairgraph/openminds/v4/computation/environment.py +++ b/fairgraph/openminds/v4/computation/environment.py @@ -16,7 +16,7 @@ class Environment(KGObject, OMEnvironment): type_ = "https://openminds.om-i.org/types/Environment" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/generic_computation.py b/fairgraph/openminds/v4/computation/generic_computation.py index 317d9108..4888b04a 100644 --- a/fairgraph/openminds/v4/computation/generic_computation.py +++ b/fairgraph/openminds/v4/computation/generic_computation.py @@ -19,7 +19,7 @@ class GenericComputation(KGObject, OMGenericComputation): type_ = "https://openminds.om-i.org/types/GenericComputation" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/hardware_system.py b/fairgraph/openminds/v4/computation/hardware_system.py index 2082d76c..3b5ce3f3 100644 --- a/fairgraph/openminds/v4/computation/hardware_system.py +++ b/fairgraph/openminds/v4/computation/hardware_system.py @@ -16,7 +16,7 @@ class HardwareSystem(KGObject, OMHardwareSystem): type_ = "https://openminds.om-i.org/types/HardwareSystem" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/launch_configuration.py b/fairgraph/openminds/v4/computation/launch_configuration.py index 22c892f0..efb04aa7 100644 --- a/fairgraph/openminds/v4/computation/launch_configuration.py +++ b/fairgraph/openminds/v4/computation/launch_configuration.py @@ -16,7 +16,7 @@ class LaunchConfiguration(KGObject, OMLaunchConfiguration): type_ = "https://openminds.om-i.org/types/LaunchConfiguration" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/local_file.py b/fairgraph/openminds/v4/computation/local_file.py index b39d7c42..0f1394e1 100644 --- a/fairgraph/openminds/v4/computation/local_file.py +++ b/fairgraph/openminds/v4/computation/local_file.py @@ -16,7 +16,7 @@ class LocalFile(KGObject, OMLocalFile): type_ = "https://openminds.om-i.org/types/LocalFile" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/model_validation.py b/fairgraph/openminds/v4/computation/model_validation.py index 003f9f5b..80053e25 100644 --- a/fairgraph/openminds/v4/computation/model_validation.py +++ b/fairgraph/openminds/v4/computation/model_validation.py @@ -20,7 +20,7 @@ class ModelValidation(KGObject, OMModelValidation): type_ = "https://openminds.om-i.org/types/ModelValidation" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/optimization.py b/fairgraph/openminds/v4/computation/optimization.py index 89b62f41..baa7f2ce 100644 --- a/fairgraph/openminds/v4/computation/optimization.py +++ b/fairgraph/openminds/v4/computation/optimization.py @@ -19,7 +19,7 @@ class Optimization(KGObject, OMOptimization): type_ = "https://openminds.om-i.org/types/Optimization" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/simulation.py b/fairgraph/openminds/v4/computation/simulation.py index 354cfb86..c1c520d3 100644 --- a/fairgraph/openminds/v4/computation/simulation.py +++ b/fairgraph/openminds/v4/computation/simulation.py @@ -19,7 +19,7 @@ class Simulation(KGObject, OMSimulation): type_ = "https://openminds.om-i.org/types/Simulation" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/software_agent.py b/fairgraph/openminds/v4/computation/software_agent.py index 72171f75..e13e7da4 100644 --- a/fairgraph/openminds/v4/computation/software_agent.py +++ b/fairgraph/openminds/v4/computation/software_agent.py @@ -16,7 +16,7 @@ class SoftwareAgent(KGObject, OMSoftwareAgent): type_ = "https://openminds.om-i.org/types/SoftwareAgent" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/validation_test.py b/fairgraph/openminds/v4/computation/validation_test.py index 69986f27..a48ad6b1 100644 --- a/fairgraph/openminds/v4/computation/validation_test.py +++ b/fairgraph/openminds/v4/computation/validation_test.py @@ -19,7 +19,7 @@ class ValidationTest(KGObject, OMValidationTest): type_ = "https://openminds.om-i.org/types/ValidationTest" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/validation_test_version.py b/fairgraph/openminds/v4/computation/validation_test_version.py index 3046c59e..4fe21c78 100644 --- a/fairgraph/openminds/v4/computation/validation_test_version.py +++ b/fairgraph/openminds/v4/computation/validation_test_version.py @@ -20,7 +20,7 @@ class ValidationTestVersion(KGObject, OMValidationTestVersion): type_ = "https://openminds.om-i.org/types/ValidationTestVersion" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/visualization.py b/fairgraph/openminds/v4/computation/visualization.py index 223ba850..fd80c748 100644 --- a/fairgraph/openminds/v4/computation/visualization.py +++ b/fairgraph/openminds/v4/computation/visualization.py @@ -19,7 +19,7 @@ class Visualization(KGObject, OMVisualization): type_ = "https://openminds.om-i.org/types/Visualization" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/workflow_execution.py b/fairgraph/openminds/v4/computation/workflow_execution.py index 32789e1d..70f37a8f 100644 --- a/fairgraph/openminds/v4/computation/workflow_execution.py +++ b/fairgraph/openminds/v4/computation/workflow_execution.py @@ -16,7 +16,7 @@ class WorkflowExecution(KGObject, OMWorkflowExecution): type_ = "https://openminds.om-i.org/types/WorkflowExecution" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("stages",) diff --git a/fairgraph/openminds/v4/computation/workflow_recipe.py b/fairgraph/openminds/v4/computation/workflow_recipe.py index efa2325f..03dc47b5 100644 --- a/fairgraph/openminds/v4/computation/workflow_recipe.py +++ b/fairgraph/openminds/v4/computation/workflow_recipe.py @@ -19,7 +19,7 @@ class WorkflowRecipe(KGObject, OMWorkflowRecipe): type_ = "https://openminds.om-i.org/types/WorkflowRecipe" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/computation/workflow_recipe_version.py b/fairgraph/openminds/v4/computation/workflow_recipe_version.py index 9aa63b59..2ded8317 100644 --- a/fairgraph/openminds/v4/computation/workflow_recipe_version.py +++ b/fairgraph/openminds/v4/computation/workflow_recipe_version.py @@ -20,7 +20,7 @@ class WorkflowRecipeVersion(KGObject, OMWorkflowRecipeVersion): type_ = "https://openminds.om-i.org/types/WorkflowRecipeVersion" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/action_status_type.py b/fairgraph/openminds/v4/controlled_terms/action_status_type.py index 33a4c62b..10ad19bb 100644 --- a/fairgraph/openminds/v4/controlled_terms/action_status_type.py +++ b/fairgraph/openminds/v4/controlled_terms/action_status_type.py @@ -19,7 +19,7 @@ class ActionStatusType(KGObject, OMActionStatusType): type_ = "https://openminds.om-i.org/types/ActionStatusType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/age_category.py b/fairgraph/openminds/v4/controlled_terms/age_category.py index f444aaa6..7598dcd8 100644 --- a/fairgraph/openminds/v4/controlled_terms/age_category.py +++ b/fairgraph/openminds/v4/controlled_terms/age_category.py @@ -19,7 +19,7 @@ class AgeCategory(KGObject, OMAgeCategory): type_ = "https://openminds.om-i.org/types/AgeCategory" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/analysis_technique.py b/fairgraph/openminds/v4/controlled_terms/analysis_technique.py index a84486fe..adab60d2 100644 --- a/fairgraph/openminds/v4/controlled_terms/analysis_technique.py +++ b/fairgraph/openminds/v4/controlled_terms/analysis_technique.py @@ -19,7 +19,7 @@ class AnalysisTechnique(KGObject, OMAnalysisTechnique): type_ = "https://openminds.om-i.org/types/AnalysisTechnique" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/anatomical_axes_orientation.py b/fairgraph/openminds/v4/controlled_terms/anatomical_axes_orientation.py index 90002df6..135e98cc 100644 --- a/fairgraph/openminds/v4/controlled_terms/anatomical_axes_orientation.py +++ b/fairgraph/openminds/v4/controlled_terms/anatomical_axes_orientation.py @@ -19,7 +19,7 @@ class AnatomicalAxesOrientation(KGObject, OMAnatomicalAxesOrientation): type_ = "https://openminds.om-i.org/types/AnatomicalAxesOrientation" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/anatomical_identification_type.py b/fairgraph/openminds/v4/controlled_terms/anatomical_identification_type.py index 31864363..95644f65 100644 --- a/fairgraph/openminds/v4/controlled_terms/anatomical_identification_type.py +++ b/fairgraph/openminds/v4/controlled_terms/anatomical_identification_type.py @@ -19,7 +19,7 @@ class AnatomicalIdentificationType(KGObject, OMAnatomicalIdentificationType): type_ = "https://openminds.om-i.org/types/AnatomicalIdentificationType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/anatomical_plane.py b/fairgraph/openminds/v4/controlled_terms/anatomical_plane.py index 84425d64..8f047880 100644 --- a/fairgraph/openminds/v4/controlled_terms/anatomical_plane.py +++ b/fairgraph/openminds/v4/controlled_terms/anatomical_plane.py @@ -19,7 +19,7 @@ class AnatomicalPlane(KGObject, OMAnatomicalPlane): type_ = "https://openminds.om-i.org/types/AnatomicalPlane" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/annotation_criteria_type.py b/fairgraph/openminds/v4/controlled_terms/annotation_criteria_type.py index 03cce7c5..a8f36537 100644 --- a/fairgraph/openminds/v4/controlled_terms/annotation_criteria_type.py +++ b/fairgraph/openminds/v4/controlled_terms/annotation_criteria_type.py @@ -19,7 +19,7 @@ class AnnotationCriteriaType(KGObject, OMAnnotationCriteriaType): type_ = "https://openminds.om-i.org/types/AnnotationCriteriaType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/annotation_type.py b/fairgraph/openminds/v4/controlled_terms/annotation_type.py index 9d752f28..7a354ba4 100644 --- a/fairgraph/openminds/v4/controlled_terms/annotation_type.py +++ b/fairgraph/openminds/v4/controlled_terms/annotation_type.py @@ -19,7 +19,7 @@ class AnnotationType(KGObject, OMAnnotationType): type_ = "https://openminds.om-i.org/types/AnnotationType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/atlas_type.py b/fairgraph/openminds/v4/controlled_terms/atlas_type.py index 48b8ee6e..f9807840 100644 --- a/fairgraph/openminds/v4/controlled_terms/atlas_type.py +++ b/fairgraph/openminds/v4/controlled_terms/atlas_type.py @@ -19,7 +19,7 @@ class AtlasType(KGObject, OMAtlasType): type_ = "https://openminds.om-i.org/types/AtlasType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/auditory_stimulus_type.py b/fairgraph/openminds/v4/controlled_terms/auditory_stimulus_type.py index b174795c..ba7443d8 100644 --- a/fairgraph/openminds/v4/controlled_terms/auditory_stimulus_type.py +++ b/fairgraph/openminds/v4/controlled_terms/auditory_stimulus_type.py @@ -19,7 +19,7 @@ class AuditoryStimulusType(KGObject, OMAuditoryStimulusType): type_ = "https://openminds.om-i.org/types/AuditoryStimulusType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/biological_order.py b/fairgraph/openminds/v4/controlled_terms/biological_order.py index fbb283a0..90c65c04 100644 --- a/fairgraph/openminds/v4/controlled_terms/biological_order.py +++ b/fairgraph/openminds/v4/controlled_terms/biological_order.py @@ -19,7 +19,7 @@ class BiologicalOrder(KGObject, OMBiologicalOrder): type_ = "https://openminds.om-i.org/types/BiologicalOrder" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/biological_process.py b/fairgraph/openminds/v4/controlled_terms/biological_process.py index 6aeda105..8ce7c79d 100644 --- a/fairgraph/openminds/v4/controlled_terms/biological_process.py +++ b/fairgraph/openminds/v4/controlled_terms/biological_process.py @@ -19,7 +19,7 @@ class BiologicalProcess(KGObject, OMBiologicalProcess): type_ = "https://openminds.om-i.org/types/BiologicalProcess" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/biological_sex.py b/fairgraph/openminds/v4/controlled_terms/biological_sex.py index 78addedb..54ea2aaa 100644 --- a/fairgraph/openminds/v4/controlled_terms/biological_sex.py +++ b/fairgraph/openminds/v4/controlled_terms/biological_sex.py @@ -19,7 +19,7 @@ class BiologicalSex(KGObject, OMBiologicalSex): type_ = "https://openminds.om-i.org/types/BiologicalSex" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/breeding_type.py b/fairgraph/openminds/v4/controlled_terms/breeding_type.py index a5ccaeb4..2f3c1723 100644 --- a/fairgraph/openminds/v4/controlled_terms/breeding_type.py +++ b/fairgraph/openminds/v4/controlled_terms/breeding_type.py @@ -19,7 +19,7 @@ class BreedingType(KGObject, OMBreedingType): type_ = "https://openminds.om-i.org/types/BreedingType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/cell_culture_type.py b/fairgraph/openminds/v4/controlled_terms/cell_culture_type.py index 062618cc..562279dd 100644 --- a/fairgraph/openminds/v4/controlled_terms/cell_culture_type.py +++ b/fairgraph/openminds/v4/controlled_terms/cell_culture_type.py @@ -19,7 +19,7 @@ class CellCultureType(KGObject, OMCellCultureType): type_ = "https://openminds.om-i.org/types/CellCultureType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/cell_type.py b/fairgraph/openminds/v4/controlled_terms/cell_type.py index 59dd0f95..7bbb9ae8 100644 --- a/fairgraph/openminds/v4/controlled_terms/cell_type.py +++ b/fairgraph/openminds/v4/controlled_terms/cell_type.py @@ -19,7 +19,7 @@ class CellType(KGObject, OMCellType): type_ = "https://openminds.om-i.org/types/CellType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/chemical_mixture_type.py b/fairgraph/openminds/v4/controlled_terms/chemical_mixture_type.py index db827df3..c663af65 100644 --- a/fairgraph/openminds/v4/controlled_terms/chemical_mixture_type.py +++ b/fairgraph/openminds/v4/controlled_terms/chemical_mixture_type.py @@ -19,7 +19,7 @@ class ChemicalMixtureType(KGObject, OMChemicalMixtureType): type_ = "https://openminds.om-i.org/types/ChemicalMixtureType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/colormap.py b/fairgraph/openminds/v4/controlled_terms/colormap.py index 7e719659..11f1e0ff 100644 --- a/fairgraph/openminds/v4/controlled_terms/colormap.py +++ b/fairgraph/openminds/v4/controlled_terms/colormap.py @@ -19,7 +19,7 @@ class Colormap(KGObject, OMColormap): type_ = "https://openminds.om-i.org/types/Colormap" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/contribution_type.py b/fairgraph/openminds/v4/controlled_terms/contribution_type.py index 51cce91a..d389940d 100644 --- a/fairgraph/openminds/v4/controlled_terms/contribution_type.py +++ b/fairgraph/openminds/v4/controlled_terms/contribution_type.py @@ -19,7 +19,7 @@ class ContributionType(KGObject, OMContributionType): type_ = "https://openminds.om-i.org/types/ContributionType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/cranial_window_construction_type.py b/fairgraph/openminds/v4/controlled_terms/cranial_window_construction_type.py index de4ee8aa..216a5467 100644 --- a/fairgraph/openminds/v4/controlled_terms/cranial_window_construction_type.py +++ b/fairgraph/openminds/v4/controlled_terms/cranial_window_construction_type.py @@ -19,7 +19,7 @@ class CranialWindowConstructionType(KGObject, OMCranialWindowConstructionType): type_ = "https://openminds.om-i.org/types/CranialWindowConstructionType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/cranial_window_reinforcement_type.py b/fairgraph/openminds/v4/controlled_terms/cranial_window_reinforcement_type.py index 2a2cd342..62777380 100644 --- a/fairgraph/openminds/v4/controlled_terms/cranial_window_reinforcement_type.py +++ b/fairgraph/openminds/v4/controlled_terms/cranial_window_reinforcement_type.py @@ -19,7 +19,7 @@ class CranialWindowReinforcementType(KGObject, OMCranialWindowReinforcementType) type_ = "https://openminds.om-i.org/types/CranialWindowReinforcementType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/criteria_quality_type.py b/fairgraph/openminds/v4/controlled_terms/criteria_quality_type.py index 9a93d33d..a7c91702 100644 --- a/fairgraph/openminds/v4/controlled_terms/criteria_quality_type.py +++ b/fairgraph/openminds/v4/controlled_terms/criteria_quality_type.py @@ -19,7 +19,7 @@ class CriteriaQualityType(KGObject, OMCriteriaQualityType): type_ = "https://openminds.om-i.org/types/CriteriaQualityType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/data_type.py b/fairgraph/openminds/v4/controlled_terms/data_type.py index a0117a9f..1c240743 100644 --- a/fairgraph/openminds/v4/controlled_terms/data_type.py +++ b/fairgraph/openminds/v4/controlled_terms/data_type.py @@ -19,7 +19,7 @@ class DataType(KGObject, OMDataType): type_ = "https://openminds.om-i.org/types/DataType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/device_type.py b/fairgraph/openminds/v4/controlled_terms/device_type.py index 117b7cc1..5113fadf 100644 --- a/fairgraph/openminds/v4/controlled_terms/device_type.py +++ b/fairgraph/openminds/v4/controlled_terms/device_type.py @@ -19,7 +19,7 @@ class DeviceType(KGObject, OMDeviceType): type_ = "https://openminds.om-i.org/types/DeviceType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/difference_measure.py b/fairgraph/openminds/v4/controlled_terms/difference_measure.py index e8ae4cdf..429bb760 100644 --- a/fairgraph/openminds/v4/controlled_terms/difference_measure.py +++ b/fairgraph/openminds/v4/controlled_terms/difference_measure.py @@ -19,7 +19,7 @@ class DifferenceMeasure(KGObject, OMDifferenceMeasure): type_ = "https://openminds.om-i.org/types/DifferenceMeasure" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/disease.py b/fairgraph/openminds/v4/controlled_terms/disease.py index ec54b1c1..637ba84a 100644 --- a/fairgraph/openminds/v4/controlled_terms/disease.py +++ b/fairgraph/openminds/v4/controlled_terms/disease.py @@ -19,7 +19,7 @@ class Disease(KGObject, OMDisease): type_ = "https://openminds.om-i.org/types/Disease" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/disease_model.py b/fairgraph/openminds/v4/controlled_terms/disease_model.py index 3d926dc3..d26f51c6 100644 --- a/fairgraph/openminds/v4/controlled_terms/disease_model.py +++ b/fairgraph/openminds/v4/controlled_terms/disease_model.py @@ -19,7 +19,7 @@ class DiseaseModel(KGObject, OMDiseaseModel): type_ = "https://openminds.om-i.org/types/DiseaseModel" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/educational_level.py b/fairgraph/openminds/v4/controlled_terms/educational_level.py index b8afa1e8..bdf1c8f9 100644 --- a/fairgraph/openminds/v4/controlled_terms/educational_level.py +++ b/fairgraph/openminds/v4/controlled_terms/educational_level.py @@ -19,7 +19,7 @@ class EducationalLevel(KGObject, OMEducationalLevel): type_ = "https://openminds.om-i.org/types/EducationalLevel" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/electrical_stimulus_type.py b/fairgraph/openminds/v4/controlled_terms/electrical_stimulus_type.py index ea455dd6..636dbc0f 100644 --- a/fairgraph/openminds/v4/controlled_terms/electrical_stimulus_type.py +++ b/fairgraph/openminds/v4/controlled_terms/electrical_stimulus_type.py @@ -19,7 +19,7 @@ class ElectricalStimulusType(KGObject, OMElectricalStimulusType): type_ = "https://openminds.om-i.org/types/ElectricalStimulusType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/ethics_assessment.py b/fairgraph/openminds/v4/controlled_terms/ethics_assessment.py index 9e87644f..9768434c 100644 --- a/fairgraph/openminds/v4/controlled_terms/ethics_assessment.py +++ b/fairgraph/openminds/v4/controlled_terms/ethics_assessment.py @@ -19,7 +19,7 @@ class EthicsAssessment(KGObject, OMEthicsAssessment): type_ = "https://openminds.om-i.org/types/EthicsAssessment" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/experimental_approach.py b/fairgraph/openminds/v4/controlled_terms/experimental_approach.py index 25d612cd..5a3ed845 100644 --- a/fairgraph/openminds/v4/controlled_terms/experimental_approach.py +++ b/fairgraph/openminds/v4/controlled_terms/experimental_approach.py @@ -19,7 +19,7 @@ class ExperimentalApproach(KGObject, OMExperimentalApproach): type_ = "https://openminds.om-i.org/types/ExperimentalApproach" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/file_bundle_grouping.py b/fairgraph/openminds/v4/controlled_terms/file_bundle_grouping.py index ee4f542f..7def64a0 100644 --- a/fairgraph/openminds/v4/controlled_terms/file_bundle_grouping.py +++ b/fairgraph/openminds/v4/controlled_terms/file_bundle_grouping.py @@ -19,7 +19,7 @@ class FileBundleGrouping(KGObject, OMFileBundleGrouping): type_ = "https://openminds.om-i.org/types/FileBundleGrouping" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/file_repository_type.py b/fairgraph/openminds/v4/controlled_terms/file_repository_type.py index 7ea9754b..473a68a2 100644 --- a/fairgraph/openminds/v4/controlled_terms/file_repository_type.py +++ b/fairgraph/openminds/v4/controlled_terms/file_repository_type.py @@ -19,7 +19,7 @@ class FileRepositoryType(KGObject, OMFileRepositoryType): type_ = "https://openminds.om-i.org/types/FileRepositoryType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/file_usage_role.py b/fairgraph/openminds/v4/controlled_terms/file_usage_role.py index 01cf9827..239fa36e 100644 --- a/fairgraph/openminds/v4/controlled_terms/file_usage_role.py +++ b/fairgraph/openminds/v4/controlled_terms/file_usage_role.py @@ -19,7 +19,7 @@ class FileUsageRole(KGObject, OMFileUsageRole): type_ = "https://openminds.om-i.org/types/FileUsageRole" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/genetic_strain_type.py b/fairgraph/openminds/v4/controlled_terms/genetic_strain_type.py index 8866119a..d89b2097 100644 --- a/fairgraph/openminds/v4/controlled_terms/genetic_strain_type.py +++ b/fairgraph/openminds/v4/controlled_terms/genetic_strain_type.py @@ -19,7 +19,7 @@ class GeneticStrainType(KGObject, OMGeneticStrainType): type_ = "https://openminds.om-i.org/types/GeneticStrainType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/gustatory_stimulus_type.py b/fairgraph/openminds/v4/controlled_terms/gustatory_stimulus_type.py index 471ef62d..8faa01c0 100644 --- a/fairgraph/openminds/v4/controlled_terms/gustatory_stimulus_type.py +++ b/fairgraph/openminds/v4/controlled_terms/gustatory_stimulus_type.py @@ -19,7 +19,7 @@ class GustatoryStimulusType(KGObject, OMGustatoryStimulusType): type_ = "https://openminds.om-i.org/types/GustatoryStimulusType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/handedness.py b/fairgraph/openminds/v4/controlled_terms/handedness.py index 203a6052..c2d73086 100644 --- a/fairgraph/openminds/v4/controlled_terms/handedness.py +++ b/fairgraph/openminds/v4/controlled_terms/handedness.py @@ -19,7 +19,7 @@ class Handedness(KGObject, OMHandedness): type_ = "https://openminds.om-i.org/types/Handedness" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/language.py b/fairgraph/openminds/v4/controlled_terms/language.py index 5e25cfc9..54a13d08 100644 --- a/fairgraph/openminds/v4/controlled_terms/language.py +++ b/fairgraph/openminds/v4/controlled_terms/language.py @@ -19,7 +19,7 @@ class Language(KGObject, OMLanguage): type_ = "https://openminds.om-i.org/types/Language" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/laterality.py b/fairgraph/openminds/v4/controlled_terms/laterality.py index 92042f43..50f47b1b 100644 --- a/fairgraph/openminds/v4/controlled_terms/laterality.py +++ b/fairgraph/openminds/v4/controlled_terms/laterality.py @@ -19,7 +19,7 @@ class Laterality(KGObject, OMLaterality): type_ = "https://openminds.om-i.org/types/Laterality" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/learning_resource_type.py b/fairgraph/openminds/v4/controlled_terms/learning_resource_type.py index ea8d629e..beb6e747 100644 --- a/fairgraph/openminds/v4/controlled_terms/learning_resource_type.py +++ b/fairgraph/openminds/v4/controlled_terms/learning_resource_type.py @@ -19,7 +19,7 @@ class LearningResourceType(KGObject, OMLearningResourceType): type_ = "https://openminds.om-i.org/types/LearningResourceType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/measured_quantity.py b/fairgraph/openminds/v4/controlled_terms/measured_quantity.py index e239e413..eb768d9f 100644 --- a/fairgraph/openminds/v4/controlled_terms/measured_quantity.py +++ b/fairgraph/openminds/v4/controlled_terms/measured_quantity.py @@ -19,7 +19,7 @@ class MeasuredQuantity(KGObject, OMMeasuredQuantity): type_ = "https://openminds.om-i.org/types/MeasuredQuantity" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/measured_signal_type.py b/fairgraph/openminds/v4/controlled_terms/measured_signal_type.py index d3d3b2ec..2415b1bf 100644 --- a/fairgraph/openminds/v4/controlled_terms/measured_signal_type.py +++ b/fairgraph/openminds/v4/controlled_terms/measured_signal_type.py @@ -19,7 +19,7 @@ class MeasuredSignalType(KGObject, OMMeasuredSignalType): type_ = "https://openminds.om-i.org/types/MeasuredSignalType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/meta_data_model_type.py b/fairgraph/openminds/v4/controlled_terms/meta_data_model_type.py index 6a3c7748..94a9e1e2 100644 --- a/fairgraph/openminds/v4/controlled_terms/meta_data_model_type.py +++ b/fairgraph/openminds/v4/controlled_terms/meta_data_model_type.py @@ -19,7 +19,7 @@ class MetaDataModelType(KGObject, OMMetaDataModelType): type_ = "https://openminds.om-i.org/types/MetaDataModelType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/model_abstraction_level.py b/fairgraph/openminds/v4/controlled_terms/model_abstraction_level.py index f37a0623..6985589d 100644 --- a/fairgraph/openminds/v4/controlled_terms/model_abstraction_level.py +++ b/fairgraph/openminds/v4/controlled_terms/model_abstraction_level.py @@ -19,7 +19,7 @@ class ModelAbstractionLevel(KGObject, OMModelAbstractionLevel): type_ = "https://openminds.om-i.org/types/ModelAbstractionLevel" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/model_scope.py b/fairgraph/openminds/v4/controlled_terms/model_scope.py index 228972ea..95e5fbe5 100644 --- a/fairgraph/openminds/v4/controlled_terms/model_scope.py +++ b/fairgraph/openminds/v4/controlled_terms/model_scope.py @@ -19,7 +19,7 @@ class ModelScope(KGObject, OMModelScope): type_ = "https://openminds.om-i.org/types/ModelScope" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/molecular_entity.py b/fairgraph/openminds/v4/controlled_terms/molecular_entity.py index 1d9aa3cc..dd9331bc 100644 --- a/fairgraph/openminds/v4/controlled_terms/molecular_entity.py +++ b/fairgraph/openminds/v4/controlled_terms/molecular_entity.py @@ -19,7 +19,7 @@ class MolecularEntity(KGObject, OMMolecularEntity): type_ = "https://openminds.om-i.org/types/MolecularEntity" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/mri_pulse_sequence.py b/fairgraph/openminds/v4/controlled_terms/mri_pulse_sequence.py index f3edb0a4..b14e5667 100644 --- a/fairgraph/openminds/v4/controlled_terms/mri_pulse_sequence.py +++ b/fairgraph/openminds/v4/controlled_terms/mri_pulse_sequence.py @@ -19,7 +19,7 @@ class MRIPulseSequence(KGObject, OMMRIPulseSequence): type_ = "https://openminds.om-i.org/types/MRIPulseSequence" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/mri_weighting.py b/fairgraph/openminds/v4/controlled_terms/mri_weighting.py index 841d307f..7f08277c 100644 --- a/fairgraph/openminds/v4/controlled_terms/mri_weighting.py +++ b/fairgraph/openminds/v4/controlled_terms/mri_weighting.py @@ -19,7 +19,7 @@ class MRIWeighting(KGObject, OMMRIWeighting): type_ = "https://openminds.om-i.org/types/MRIWeighting" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/olfactory_stimulus_type.py b/fairgraph/openminds/v4/controlled_terms/olfactory_stimulus_type.py index 43f5b422..6ca66721 100644 --- a/fairgraph/openminds/v4/controlled_terms/olfactory_stimulus_type.py +++ b/fairgraph/openminds/v4/controlled_terms/olfactory_stimulus_type.py @@ -19,7 +19,7 @@ class OlfactoryStimulusType(KGObject, OMOlfactoryStimulusType): type_ = "https://openminds.om-i.org/types/OlfactoryStimulusType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/operating_device.py b/fairgraph/openminds/v4/controlled_terms/operating_device.py index 0daa58e1..ab30c5c0 100644 --- a/fairgraph/openminds/v4/controlled_terms/operating_device.py +++ b/fairgraph/openminds/v4/controlled_terms/operating_device.py @@ -19,7 +19,7 @@ class OperatingDevice(KGObject, OMOperatingDevice): type_ = "https://openminds.om-i.org/types/OperatingDevice" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/operating_system.py b/fairgraph/openminds/v4/controlled_terms/operating_system.py index 6bfc3c83..8d6816d7 100644 --- a/fairgraph/openminds/v4/controlled_terms/operating_system.py +++ b/fairgraph/openminds/v4/controlled_terms/operating_system.py @@ -19,7 +19,7 @@ class OperatingSystem(KGObject, OMOperatingSystem): type_ = "https://openminds.om-i.org/types/OperatingSystem" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/optical_stimulus_type.py b/fairgraph/openminds/v4/controlled_terms/optical_stimulus_type.py index 0ed9427e..70def7c6 100644 --- a/fairgraph/openminds/v4/controlled_terms/optical_stimulus_type.py +++ b/fairgraph/openminds/v4/controlled_terms/optical_stimulus_type.py @@ -19,7 +19,7 @@ class OpticalStimulusType(KGObject, OMOpticalStimulusType): type_ = "https://openminds.om-i.org/types/OpticalStimulusType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/organ.py b/fairgraph/openminds/v4/controlled_terms/organ.py index cc29a40b..9263153d 100644 --- a/fairgraph/openminds/v4/controlled_terms/organ.py +++ b/fairgraph/openminds/v4/controlled_terms/organ.py @@ -19,7 +19,7 @@ class Organ(KGObject, OMOrgan): type_ = "https://openminds.om-i.org/types/Organ" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/organism_substance.py b/fairgraph/openminds/v4/controlled_terms/organism_substance.py index afe6a1eb..529969b8 100644 --- a/fairgraph/openminds/v4/controlled_terms/organism_substance.py +++ b/fairgraph/openminds/v4/controlled_terms/organism_substance.py @@ -19,7 +19,7 @@ class OrganismSubstance(KGObject, OMOrganismSubstance): type_ = "https://openminds.om-i.org/types/OrganismSubstance" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/organism_system.py b/fairgraph/openminds/v4/controlled_terms/organism_system.py index e6db4ebc..7aefd617 100644 --- a/fairgraph/openminds/v4/controlled_terms/organism_system.py +++ b/fairgraph/openminds/v4/controlled_terms/organism_system.py @@ -19,7 +19,7 @@ class OrganismSystem(KGObject, OMOrganismSystem): type_ = "https://openminds.om-i.org/types/OrganismSystem" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/patch_clamp_variation.py b/fairgraph/openminds/v4/controlled_terms/patch_clamp_variation.py index da4104b6..cfa12724 100644 --- a/fairgraph/openminds/v4/controlled_terms/patch_clamp_variation.py +++ b/fairgraph/openminds/v4/controlled_terms/patch_clamp_variation.py @@ -19,7 +19,7 @@ class PatchClampVariation(KGObject, OMPatchClampVariation): type_ = "https://openminds.om-i.org/types/PatchClampVariation" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/preparation_type.py b/fairgraph/openminds/v4/controlled_terms/preparation_type.py index a77e5d9e..fe043c0a 100644 --- a/fairgraph/openminds/v4/controlled_terms/preparation_type.py +++ b/fairgraph/openminds/v4/controlled_terms/preparation_type.py @@ -19,7 +19,7 @@ class PreparationType(KGObject, OMPreparationType): type_ = "https://openminds.om-i.org/types/PreparationType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/product_accessibility.py b/fairgraph/openminds/v4/controlled_terms/product_accessibility.py index 8a644ac0..eea4a3f9 100644 --- a/fairgraph/openminds/v4/controlled_terms/product_accessibility.py +++ b/fairgraph/openminds/v4/controlled_terms/product_accessibility.py @@ -19,7 +19,7 @@ class ProductAccessibility(KGObject, OMProductAccessibility): type_ = "https://openminds.om-i.org/types/ProductAccessibility" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/programming_language.py b/fairgraph/openminds/v4/controlled_terms/programming_language.py index 736f10d4..3f781a18 100644 --- a/fairgraph/openminds/v4/controlled_terms/programming_language.py +++ b/fairgraph/openminds/v4/controlled_terms/programming_language.py @@ -19,7 +19,7 @@ class ProgrammingLanguage(KGObject, OMProgrammingLanguage): type_ = "https://openminds.om-i.org/types/ProgrammingLanguage" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/qualitative_overlap.py b/fairgraph/openminds/v4/controlled_terms/qualitative_overlap.py index 272c93ce..31805ee2 100644 --- a/fairgraph/openminds/v4/controlled_terms/qualitative_overlap.py +++ b/fairgraph/openminds/v4/controlled_terms/qualitative_overlap.py @@ -19,7 +19,7 @@ class QualitativeOverlap(KGObject, OMQualitativeOverlap): type_ = "https://openminds.om-i.org/types/QualitativeOverlap" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/semantic_data_type.py b/fairgraph/openminds/v4/controlled_terms/semantic_data_type.py index fe89f6ca..53d00ca2 100644 --- a/fairgraph/openminds/v4/controlled_terms/semantic_data_type.py +++ b/fairgraph/openminds/v4/controlled_terms/semantic_data_type.py @@ -19,7 +19,7 @@ class SemanticDataType(KGObject, OMSemanticDataType): type_ = "https://openminds.om-i.org/types/SemanticDataType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/service.py b/fairgraph/openminds/v4/controlled_terms/service.py index c0ab106f..4a814469 100644 --- a/fairgraph/openminds/v4/controlled_terms/service.py +++ b/fairgraph/openminds/v4/controlled_terms/service.py @@ -19,7 +19,7 @@ class Service(KGObject, OMService): type_ = "https://openminds.om-i.org/types/Service" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/setup_type.py b/fairgraph/openminds/v4/controlled_terms/setup_type.py index ee4bfa26..ab65f904 100644 --- a/fairgraph/openminds/v4/controlled_terms/setup_type.py +++ b/fairgraph/openminds/v4/controlled_terms/setup_type.py @@ -19,7 +19,7 @@ class SetupType(KGObject, OMSetupType): type_ = "https://openminds.om-i.org/types/SetupType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/software_application_category.py b/fairgraph/openminds/v4/controlled_terms/software_application_category.py index 7c2feb84..86378439 100644 --- a/fairgraph/openminds/v4/controlled_terms/software_application_category.py +++ b/fairgraph/openminds/v4/controlled_terms/software_application_category.py @@ -19,7 +19,7 @@ class SoftwareApplicationCategory(KGObject, OMSoftwareApplicationCategory): type_ = "https://openminds.om-i.org/types/SoftwareApplicationCategory" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/software_feature.py b/fairgraph/openminds/v4/controlled_terms/software_feature.py index 2a63f593..93c659b0 100644 --- a/fairgraph/openminds/v4/controlled_terms/software_feature.py +++ b/fairgraph/openminds/v4/controlled_terms/software_feature.py @@ -19,7 +19,7 @@ class SoftwareFeature(KGObject, OMSoftwareFeature): type_ = "https://openminds.om-i.org/types/SoftwareFeature" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/species.py b/fairgraph/openminds/v4/controlled_terms/species.py index dfd40377..6151f519 100644 --- a/fairgraph/openminds/v4/controlled_terms/species.py +++ b/fairgraph/openminds/v4/controlled_terms/species.py @@ -19,7 +19,7 @@ class Species(KGObject, OMSpecies): type_ = "https://openminds.om-i.org/types/Species" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/stimulation_approach.py b/fairgraph/openminds/v4/controlled_terms/stimulation_approach.py index 526e58e0..a74527cb 100644 --- a/fairgraph/openminds/v4/controlled_terms/stimulation_approach.py +++ b/fairgraph/openminds/v4/controlled_terms/stimulation_approach.py @@ -19,7 +19,7 @@ class StimulationApproach(KGObject, OMStimulationApproach): type_ = "https://openminds.om-i.org/types/StimulationApproach" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/stimulation_technique.py b/fairgraph/openminds/v4/controlled_terms/stimulation_technique.py index e5fc2cfc..bd5ca865 100644 --- a/fairgraph/openminds/v4/controlled_terms/stimulation_technique.py +++ b/fairgraph/openminds/v4/controlled_terms/stimulation_technique.py @@ -19,7 +19,7 @@ class StimulationTechnique(KGObject, OMStimulationTechnique): type_ = "https://openminds.om-i.org/types/StimulationTechnique" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/subcellular_entity.py b/fairgraph/openminds/v4/controlled_terms/subcellular_entity.py index 645009dc..cf4169f7 100644 --- a/fairgraph/openminds/v4/controlled_terms/subcellular_entity.py +++ b/fairgraph/openminds/v4/controlled_terms/subcellular_entity.py @@ -19,7 +19,7 @@ class SubcellularEntity(KGObject, OMSubcellularEntity): type_ = "https://openminds.om-i.org/types/SubcellularEntity" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/subject_attribute.py b/fairgraph/openminds/v4/controlled_terms/subject_attribute.py index 762bb9cc..2af09cd7 100644 --- a/fairgraph/openminds/v4/controlled_terms/subject_attribute.py +++ b/fairgraph/openminds/v4/controlled_terms/subject_attribute.py @@ -19,7 +19,7 @@ class SubjectAttribute(KGObject, OMSubjectAttribute): type_ = "https://openminds.om-i.org/types/SubjectAttribute" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/tactile_stimulus_type.py b/fairgraph/openminds/v4/controlled_terms/tactile_stimulus_type.py index 1af92b5a..e54a680f 100644 --- a/fairgraph/openminds/v4/controlled_terms/tactile_stimulus_type.py +++ b/fairgraph/openminds/v4/controlled_terms/tactile_stimulus_type.py @@ -19,7 +19,7 @@ class TactileStimulusType(KGObject, OMTactileStimulusType): type_ = "https://openminds.om-i.org/types/TactileStimulusType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/technique.py b/fairgraph/openminds/v4/controlled_terms/technique.py index 78935a3f..6119894e 100644 --- a/fairgraph/openminds/v4/controlled_terms/technique.py +++ b/fairgraph/openminds/v4/controlled_terms/technique.py @@ -19,7 +19,7 @@ class Technique(KGObject, OMTechnique): type_ = "https://openminds.om-i.org/types/Technique" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/term_suggestion.py b/fairgraph/openminds/v4/controlled_terms/term_suggestion.py index bfcce47f..ca98dd72 100644 --- a/fairgraph/openminds/v4/controlled_terms/term_suggestion.py +++ b/fairgraph/openminds/v4/controlled_terms/term_suggestion.py @@ -19,7 +19,7 @@ class TermSuggestion(KGObject, OMTermSuggestion): type_ = "https://openminds.om-i.org/types/TermSuggestion" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/terminology.py b/fairgraph/openminds/v4/controlled_terms/terminology.py index e9156b01..64fb8bf0 100644 --- a/fairgraph/openminds/v4/controlled_terms/terminology.py +++ b/fairgraph/openminds/v4/controlled_terms/terminology.py @@ -19,7 +19,7 @@ class Terminology(KGObject, OMTerminology): type_ = "https://openminds.om-i.org/types/Terminology" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/tissue_sample_attribute.py b/fairgraph/openminds/v4/controlled_terms/tissue_sample_attribute.py index a91ece67..d9f0dac4 100644 --- a/fairgraph/openminds/v4/controlled_terms/tissue_sample_attribute.py +++ b/fairgraph/openminds/v4/controlled_terms/tissue_sample_attribute.py @@ -19,7 +19,7 @@ class TissueSampleAttribute(KGObject, OMTissueSampleAttribute): type_ = "https://openminds.om-i.org/types/TissueSampleAttribute" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/tissue_sample_type.py b/fairgraph/openminds/v4/controlled_terms/tissue_sample_type.py index e98c6512..c7283f68 100644 --- a/fairgraph/openminds/v4/controlled_terms/tissue_sample_type.py +++ b/fairgraph/openminds/v4/controlled_terms/tissue_sample_type.py @@ -19,7 +19,7 @@ class TissueSampleType(KGObject, OMTissueSampleType): type_ = "https://openminds.om-i.org/types/TissueSampleType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/type_of_uncertainty.py b/fairgraph/openminds/v4/controlled_terms/type_of_uncertainty.py index c6ff955e..0e471979 100644 --- a/fairgraph/openminds/v4/controlled_terms/type_of_uncertainty.py +++ b/fairgraph/openminds/v4/controlled_terms/type_of_uncertainty.py @@ -19,7 +19,7 @@ class TypeOfUncertainty(KGObject, OMTypeOfUncertainty): type_ = "https://openminds.om-i.org/types/TypeOfUncertainty" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/uberon_parcellation.py b/fairgraph/openminds/v4/controlled_terms/uberon_parcellation.py index a637f756..aa7dbe0b 100644 --- a/fairgraph/openminds/v4/controlled_terms/uberon_parcellation.py +++ b/fairgraph/openminds/v4/controlled_terms/uberon_parcellation.py @@ -19,7 +19,7 @@ class UBERONParcellation(KGObject, OMUBERONParcellation): type_ = "https://openminds.om-i.org/types/UBERONParcellation" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/unit_of_measurement.py b/fairgraph/openminds/v4/controlled_terms/unit_of_measurement.py index 75507cf4..18a5ec7b 100644 --- a/fairgraph/openminds/v4/controlled_terms/unit_of_measurement.py +++ b/fairgraph/openminds/v4/controlled_terms/unit_of_measurement.py @@ -19,7 +19,7 @@ class UnitOfMeasurement(KGObject, OMUnitOfMeasurement): type_ = "https://openminds.om-i.org/types/UnitOfMeasurement" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/controlled_terms/visual_stimulus_type.py b/fairgraph/openminds/v4/controlled_terms/visual_stimulus_type.py index 1170cb69..60eccfc2 100644 --- a/fairgraph/openminds/v4/controlled_terms/visual_stimulus_type.py +++ b/fairgraph/openminds/v4/controlled_terms/visual_stimulus_type.py @@ -19,7 +19,7 @@ class VisualStimulusType(KGObject, OMVisualStimulusType): type_ = "https://openminds.om-i.org/types/VisualStimulusType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/actors/account_information.py b/fairgraph/openminds/v4/core/actors/account_information.py index 083d9994..80c3ed93 100644 --- a/fairgraph/openminds/v4/core/actors/account_information.py +++ b/fairgraph/openminds/v4/core/actors/account_information.py @@ -16,7 +16,7 @@ class AccountInformation(KGObject, OMAccountInformation): type_ = "https://openminds.om-i.org/types/AccountInformation" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/actors/affiliation.py b/fairgraph/openminds/v4/core/actors/affiliation.py index 4493e69a..04302599 100644 --- a/fairgraph/openminds/v4/core/actors/affiliation.py +++ b/fairgraph/openminds/v4/core/actors/affiliation.py @@ -18,7 +18,7 @@ class Affiliation(KGEmbedded, OMAffiliation): """ type_ = "https://openminds.om-i.org/types/Affiliation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("member_of",) diff --git a/fairgraph/openminds/v4/core/actors/consortium.py b/fairgraph/openminds/v4/core/actors/consortium.py index 95ffa048..45c51a3a 100644 --- a/fairgraph/openminds/v4/core/actors/consortium.py +++ b/fairgraph/openminds/v4/core/actors/consortium.py @@ -19,7 +19,7 @@ class Consortium(KGObject, OMConsortium): type_ = "https://openminds.om-i.org/types/Consortium" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/actors/contact_information.py b/fairgraph/openminds/v4/core/actors/contact_information.py index f9a8606e..71539b21 100644 --- a/fairgraph/openminds/v4/core/actors/contact_information.py +++ b/fairgraph/openminds/v4/core/actors/contact_information.py @@ -16,7 +16,7 @@ class ContactInformation(KGObject, OMContactInformation): type_ = "https://openminds.om-i.org/types/ContactInformation" default_space = "restricted" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/actors/contribution.py b/fairgraph/openminds/v4/core/actors/contribution.py index 7fc138d4..8912c8b5 100644 --- a/fairgraph/openminds/v4/core/actors/contribution.py +++ b/fairgraph/openminds/v4/core/actors/contribution.py @@ -15,7 +15,7 @@ class Contribution(KGEmbedded, OMContribution): """ type_ = "https://openminds.om-i.org/types/Contribution" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("contributor", "types") diff --git a/fairgraph/openminds/v4/core/actors/organization.py b/fairgraph/openminds/v4/core/actors/organization.py index de2d2103..a4c3ddcb 100644 --- a/fairgraph/openminds/v4/core/actors/organization.py +++ b/fairgraph/openminds/v4/core/actors/organization.py @@ -19,7 +19,7 @@ class Organization(KGObject, OMOrganization): type_ = "https://openminds.om-i.org/types/Organization" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/actors/person.py b/fairgraph/openminds/v4/core/actors/person.py index ad49a565..2f773890 100644 --- a/fairgraph/openminds/v4/core/actors/person.py +++ b/fairgraph/openminds/v4/core/actors/person.py @@ -16,7 +16,7 @@ class Person(KGObject, OMPerson): type_ = "https://openminds.om-i.org/types/Person" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "familyName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/data/content_type.py b/fairgraph/openminds/v4/core/data/content_type.py index 827218db..8ec15808 100644 --- a/fairgraph/openminds/v4/core/data/content_type.py +++ b/fairgraph/openminds/v4/core/data/content_type.py @@ -19,7 +19,7 @@ class ContentType(KGObject, OMContentType): type_ = "https://openminds.om-i.org/types/ContentType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/data/content_type_pattern.py b/fairgraph/openminds/v4/core/data/content_type_pattern.py index f38f253d..f974798f 100644 --- a/fairgraph/openminds/v4/core/data/content_type_pattern.py +++ b/fairgraph/openminds/v4/core/data/content_type_pattern.py @@ -16,7 +16,7 @@ class ContentTypePattern(KGObject, OMContentTypePattern): type_ = "https://openminds.om-i.org/types/ContentTypePattern" default_space = "files" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/data/copyright.py b/fairgraph/openminds/v4/core/data/copyright.py index f45f4036..45f937f2 100644 --- a/fairgraph/openminds/v4/core/data/copyright.py +++ b/fairgraph/openminds/v4/core/data/copyright.py @@ -15,7 +15,7 @@ class Copyright(KGEmbedded, OMCopyright): """ type_ = "https://openminds.om-i.org/types/Copyright" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("holders", "years") diff --git a/fairgraph/openminds/v4/core/data/file.py b/fairgraph/openminds/v4/core/data/file.py index ad6e34e6..829b8956 100644 --- a/fairgraph/openminds/v4/core/data/file.py +++ b/fairgraph/openminds/v4/core/data/file.py @@ -30,7 +30,7 @@ class File(KGObject, OMFile): type_ = "https://openminds.om-i.org/types/File" default_space = "files" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/data/file_archive.py b/fairgraph/openminds/v4/core/data/file_archive.py index e8fdb633..b370d31b 100644 --- a/fairgraph/openminds/v4/core/data/file_archive.py +++ b/fairgraph/openminds/v4/core/data/file_archive.py @@ -19,7 +19,7 @@ class FileArchive(KGObject, OMFileArchive): type_ = "https://openminds.om-i.org/types/FileArchive" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/data/file_bundle.py b/fairgraph/openminds/v4/core/data/file_bundle.py index 0a3ae7b1..2073e870 100644 --- a/fairgraph/openminds/v4/core/data/file_bundle.py +++ b/fairgraph/openminds/v4/core/data/file_bundle.py @@ -16,7 +16,7 @@ class FileBundle(KGObject, OMFileBundle): type_ = "https://openminds.om-i.org/types/FileBundle" default_space = "files" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/data/file_path_pattern.py b/fairgraph/openminds/v4/core/data/file_path_pattern.py index 54dea488..1f5a0cfd 100644 --- a/fairgraph/openminds/v4/core/data/file_path_pattern.py +++ b/fairgraph/openminds/v4/core/data/file_path_pattern.py @@ -15,7 +15,7 @@ class FilePathPattern(KGEmbedded, OMFilePathPattern): """ type_ = "https://openminds.om-i.org/types/FilePathPattern" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("grouping_types", "regex") diff --git a/fairgraph/openminds/v4/core/data/file_repository.py b/fairgraph/openminds/v4/core/data/file_repository.py index 57d9610f..136c80e6 100644 --- a/fairgraph/openminds/v4/core/data/file_repository.py +++ b/fairgraph/openminds/v4/core/data/file_repository.py @@ -19,7 +19,7 @@ class FileRepository(KGObject, OMFileRepository): type_ = "https://openminds.om-i.org/types/FileRepository" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/data/file_repository_structure.py b/fairgraph/openminds/v4/core/data/file_repository_structure.py index 4d559f5b..cd3a5399 100644 --- a/fairgraph/openminds/v4/core/data/file_repository_structure.py +++ b/fairgraph/openminds/v4/core/data/file_repository_structure.py @@ -16,7 +16,7 @@ class FileRepositoryStructure(KGObject, OMFileRepositoryStructure): type_ = "https://openminds.om-i.org/types/FileRepositoryStructure" default_space = "files" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/data/hash.py b/fairgraph/openminds/v4/core/data/hash.py index 7dfae731..d1a8bb89 100644 --- a/fairgraph/openminds/v4/core/data/hash.py +++ b/fairgraph/openminds/v4/core/data/hash.py @@ -15,7 +15,7 @@ class Hash(KGEmbedded, OMHash): """ type_ = "https://openminds.om-i.org/types/Hash" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("algorithm", "digest") diff --git a/fairgraph/openminds/v4/core/data/license.py b/fairgraph/openminds/v4/core/data/license.py index c2286746..b7566542 100644 --- a/fairgraph/openminds/v4/core/data/license.py +++ b/fairgraph/openminds/v4/core/data/license.py @@ -19,7 +19,7 @@ class License(KGObject, OMLicense): type_ = "https://openminds.om-i.org/types/License" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/data/measurement.py b/fairgraph/openminds/v4/core/data/measurement.py index 0781bb5f..f6df6d2f 100644 --- a/fairgraph/openminds/v4/core/data/measurement.py +++ b/fairgraph/openminds/v4/core/data/measurement.py @@ -18,7 +18,7 @@ class Measurement(KGEmbedded, OMMeasurement): """ type_ = "https://openminds.om-i.org/types/Measurement" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("measured_quantity", "values") diff --git a/fairgraph/openminds/v4/core/data/service_link.py b/fairgraph/openminds/v4/core/data/service_link.py index 2a39928d..e916b5a5 100644 --- a/fairgraph/openminds/v4/core/data/service_link.py +++ b/fairgraph/openminds/v4/core/data/service_link.py @@ -19,7 +19,7 @@ class ServiceLink(KGObject, OMServiceLink): type_ = "https://openminds.om-i.org/types/ServiceLink" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("data_location", "open_data_in", "service") diff --git a/fairgraph/openminds/v4/core/digital_identifier/doi.py b/fairgraph/openminds/v4/core/digital_identifier/doi.py index a6136643..cac09699 100644 --- a/fairgraph/openminds/v4/core/digital_identifier/doi.py +++ b/fairgraph/openminds/v4/core/digital_identifier/doi.py @@ -16,7 +16,7 @@ class DOI(KGObject, OMDOI): type_ = "https://openminds.om-i.org/types/DOI" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/digital_identifier/gridid.py b/fairgraph/openminds/v4/core/digital_identifier/gridid.py index 7c771ed2..b8f7ffdf 100644 --- a/fairgraph/openminds/v4/core/digital_identifier/gridid.py +++ b/fairgraph/openminds/v4/core/digital_identifier/gridid.py @@ -16,7 +16,7 @@ class GRIDID(KGObject, OMGRIDID): type_ = "https://openminds.om-i.org/types/GRIDID" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/digital_identifier/handle.py b/fairgraph/openminds/v4/core/digital_identifier/handle.py index 54b56513..59836aad 100644 --- a/fairgraph/openminds/v4/core/digital_identifier/handle.py +++ b/fairgraph/openminds/v4/core/digital_identifier/handle.py @@ -16,7 +16,7 @@ class HANDLE(KGObject, OMHANDLE): type_ = "https://openminds.om-i.org/types/HANDLE" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/digital_identifier/identifiers_dot_org_id.py b/fairgraph/openminds/v4/core/digital_identifier/identifiers_dot_org_id.py index 2a8f449f..7d7029e8 100644 --- a/fairgraph/openminds/v4/core/digital_identifier/identifiers_dot_org_id.py +++ b/fairgraph/openminds/v4/core/digital_identifier/identifiers_dot_org_id.py @@ -16,7 +16,7 @@ class IdentifiersDotOrgID(KGObject, OMIdentifiersDotOrgID): type_ = "https://openminds.om-i.org/types/IdentifiersDotOrgID" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/digital_identifier/isbn.py b/fairgraph/openminds/v4/core/digital_identifier/isbn.py index 27f804a1..b3409b02 100644 --- a/fairgraph/openminds/v4/core/digital_identifier/isbn.py +++ b/fairgraph/openminds/v4/core/digital_identifier/isbn.py @@ -16,7 +16,7 @@ class ISBN(KGObject, OMISBN): type_ = "https://openminds.om-i.org/types/ISBN" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/digital_identifier/issn.py b/fairgraph/openminds/v4/core/digital_identifier/issn.py index 921e0f28..0bc7f67b 100644 --- a/fairgraph/openminds/v4/core/digital_identifier/issn.py +++ b/fairgraph/openminds/v4/core/digital_identifier/issn.py @@ -16,7 +16,7 @@ class ISSN(KGObject, OMISSN): type_ = "https://openminds.om-i.org/types/ISSN" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/digital_identifier/orcid.py b/fairgraph/openminds/v4/core/digital_identifier/orcid.py index 2ba39695..2a3cd4d5 100644 --- a/fairgraph/openminds/v4/core/digital_identifier/orcid.py +++ b/fairgraph/openminds/v4/core/digital_identifier/orcid.py @@ -16,7 +16,7 @@ class ORCID(KGObject, OMORCID): type_ = "https://openminds.om-i.org/types/ORCID" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/digital_identifier/rorid.py b/fairgraph/openminds/v4/core/digital_identifier/rorid.py index 23a601e5..79f2a345 100644 --- a/fairgraph/openminds/v4/core/digital_identifier/rorid.py +++ b/fairgraph/openminds/v4/core/digital_identifier/rorid.py @@ -16,7 +16,7 @@ class RORID(KGObject, OMRORID): type_ = "https://openminds.om-i.org/types/RORID" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/digital_identifier/rrid.py b/fairgraph/openminds/v4/core/digital_identifier/rrid.py index d42af1b1..8102a5ee 100644 --- a/fairgraph/openminds/v4/core/digital_identifier/rrid.py +++ b/fairgraph/openminds/v4/core/digital_identifier/rrid.py @@ -16,7 +16,7 @@ class RRID(KGObject, OMRRID): type_ = "https://openminds.om-i.org/types/RRID" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/digital_identifier/stock_number.py b/fairgraph/openminds/v4/core/digital_identifier/stock_number.py index 9dd30042..00b25f58 100644 --- a/fairgraph/openminds/v4/core/digital_identifier/stock_number.py +++ b/fairgraph/openminds/v4/core/digital_identifier/stock_number.py @@ -15,7 +15,7 @@ class StockNumber(KGEmbedded, OMStockNumber): """ type_ = "https://openminds.om-i.org/types/StockNumber" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("identifier", "vendor") diff --git a/fairgraph/openminds/v4/core/digital_identifier/swhid.py b/fairgraph/openminds/v4/core/digital_identifier/swhid.py index e15c7525..f453356c 100644 --- a/fairgraph/openminds/v4/core/digital_identifier/swhid.py +++ b/fairgraph/openminds/v4/core/digital_identifier/swhid.py @@ -16,7 +16,7 @@ class SWHID(KGObject, OMSWHID): type_ = "https://openminds.om-i.org/types/SWHID" default_space = "software" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/miscellaneous/comment.py b/fairgraph/openminds/v4/core/miscellaneous/comment.py index adbfad2b..e12a248d 100644 --- a/fairgraph/openminds/v4/core/miscellaneous/comment.py +++ b/fairgraph/openminds/v4/core/miscellaneous/comment.py @@ -19,7 +19,7 @@ class Comment(KGObject, OMComment): type_ = "https://openminds.om-i.org/types/Comment" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("about", "comment", "commenter", "timestamp") diff --git a/fairgraph/openminds/v4/core/miscellaneous/funding.py b/fairgraph/openminds/v4/core/miscellaneous/funding.py index 8e41e03a..44699235 100644 --- a/fairgraph/openminds/v4/core/miscellaneous/funding.py +++ b/fairgraph/openminds/v4/core/miscellaneous/funding.py @@ -16,7 +16,7 @@ class Funding(KGObject, OMFunding): type_ = "https://openminds.om-i.org/types/Funding" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/miscellaneous/quantitative_value.py b/fairgraph/openminds/v4/core/miscellaneous/quantitative_value.py index 5520d7b2..9922eeea 100644 --- a/fairgraph/openminds/v4/core/miscellaneous/quantitative_value.py +++ b/fairgraph/openminds/v4/core/miscellaneous/quantitative_value.py @@ -18,7 +18,7 @@ class QuantitativeValue(KGEmbedded, OMQuantitativeValue): """ type_ = "https://openminds.om-i.org/types/QuantitativeValue" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("value", "unit", "uncertainties") diff --git a/fairgraph/openminds/v4/core/miscellaneous/quantitative_value_array.py b/fairgraph/openminds/v4/core/miscellaneous/quantitative_value_array.py index 8aa3fa8a..db6cd825 100644 --- a/fairgraph/openminds/v4/core/miscellaneous/quantitative_value_array.py +++ b/fairgraph/openminds/v4/core/miscellaneous/quantitative_value_array.py @@ -19,7 +19,7 @@ class QuantitativeValueArray(KGObject, OMQuantitativeValueArray): type_ = "https://openminds.om-i.org/types/QuantitativeValueArray" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("values",) diff --git a/fairgraph/openminds/v4/core/miscellaneous/quantitative_value_range.py b/fairgraph/openminds/v4/core/miscellaneous/quantitative_value_range.py index c95bd914..0a61fed6 100644 --- a/fairgraph/openminds/v4/core/miscellaneous/quantitative_value_range.py +++ b/fairgraph/openminds/v4/core/miscellaneous/quantitative_value_range.py @@ -18,7 +18,7 @@ class QuantitativeValueRange(KGEmbedded, OMQuantitativeValueRange): """ type_ = "https://openminds.om-i.org/types/QuantitativeValueRange" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("max_value", "min_value") diff --git a/fairgraph/openminds/v4/core/miscellaneous/research_product_group.py b/fairgraph/openminds/v4/core/miscellaneous/research_product_group.py index 9866980d..d179c8f7 100644 --- a/fairgraph/openminds/v4/core/miscellaneous/research_product_group.py +++ b/fairgraph/openminds/v4/core/miscellaneous/research_product_group.py @@ -16,7 +16,7 @@ class ResearchProductGroup(KGObject, OMResearchProductGroup): type_ = "https://openminds.om-i.org/types/ResearchProductGroup" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("context", "has_parts") diff --git a/fairgraph/openminds/v4/core/miscellaneous/web_resource.py b/fairgraph/openminds/v4/core/miscellaneous/web_resource.py index d421036a..86065a0d 100644 --- a/fairgraph/openminds/v4/core/miscellaneous/web_resource.py +++ b/fairgraph/openminds/v4/core/miscellaneous/web_resource.py @@ -19,7 +19,7 @@ class WebResource(KGObject, OMWebResource): type_ = "https://openminds.om-i.org/types/WebResource" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/products/dataset.py b/fairgraph/openminds/v4/core/products/dataset.py index 12060d91..8dff9798 100644 --- a/fairgraph/openminds/v4/core/products/dataset.py +++ b/fairgraph/openminds/v4/core/products/dataset.py @@ -19,7 +19,7 @@ class Dataset(KGObject, OMDataset): type_ = "https://openminds.om-i.org/types/Dataset" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/products/dataset_version.py b/fairgraph/openminds/v4/core/products/dataset_version.py index 4ae10ada..78f7dd3f 100644 --- a/fairgraph/openminds/v4/core/products/dataset_version.py +++ b/fairgraph/openminds/v4/core/products/dataset_version.py @@ -22,7 +22,7 @@ class DatasetVersion(KGObject, OMDatasetVersion): type_ = "https://openminds.om-i.org/types/DatasetVersion" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/products/meta_data_model.py b/fairgraph/openminds/v4/core/products/meta_data_model.py index bb8932c6..5d5401d1 100644 --- a/fairgraph/openminds/v4/core/products/meta_data_model.py +++ b/fairgraph/openminds/v4/core/products/meta_data_model.py @@ -19,7 +19,7 @@ class MetaDataModel(KGObject, OMMetaDataModel): type_ = "https://openminds.om-i.org/types/MetaDataModel" default_space = "metadatamodel" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/products/meta_data_model_version.py b/fairgraph/openminds/v4/core/products/meta_data_model_version.py index a443d2d7..843c2547 100644 --- a/fairgraph/openminds/v4/core/products/meta_data_model_version.py +++ b/fairgraph/openminds/v4/core/products/meta_data_model_version.py @@ -20,7 +20,7 @@ class MetaDataModelVersion(KGObject, OMMetaDataModelVersion): type_ = "https://openminds.om-i.org/types/MetaDataModelVersion" default_space = "metadatamodel" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/products/model.py b/fairgraph/openminds/v4/core/products/model.py index 4898f934..84564e15 100644 --- a/fairgraph/openminds/v4/core/products/model.py +++ b/fairgraph/openminds/v4/core/products/model.py @@ -19,7 +19,7 @@ class Model(KGObject, OMModel): type_ = "https://openminds.om-i.org/types/Model" default_space = "model" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/products/model_version.py b/fairgraph/openminds/v4/core/products/model_version.py index 74d4a377..f045c1ee 100644 --- a/fairgraph/openminds/v4/core/products/model_version.py +++ b/fairgraph/openminds/v4/core/products/model_version.py @@ -22,7 +22,7 @@ class ModelVersion(KGObject, OMModelVersion): type_ = "https://openminds.om-i.org/types/ModelVersion" default_space = "model" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/products/project.py b/fairgraph/openminds/v4/core/products/project.py index 381973d7..6af5bea2 100644 --- a/fairgraph/openminds/v4/core/products/project.py +++ b/fairgraph/openminds/v4/core/products/project.py @@ -19,7 +19,7 @@ class Project(KGObject, OMProject): type_ = "https://openminds.om-i.org/types/Project" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] aliases = {"name": "full_name", "alias": "short_name"} diff --git a/fairgraph/openminds/v4/core/products/setup.py b/fairgraph/openminds/v4/core/products/setup.py index 003e4500..423038f9 100644 --- a/fairgraph/openminds/v4/core/products/setup.py +++ b/fairgraph/openminds/v4/core/products/setup.py @@ -16,7 +16,7 @@ class Setup(KGObject, OMSetup): type_ = "https://openminds.om-i.org/types/Setup" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/products/software.py b/fairgraph/openminds/v4/core/products/software.py index 23591f4f..946938b7 100644 --- a/fairgraph/openminds/v4/core/products/software.py +++ b/fairgraph/openminds/v4/core/products/software.py @@ -19,7 +19,7 @@ class Software(KGObject, OMSoftware): type_ = "https://openminds.om-i.org/types/Software" default_space = "software" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/products/software_version.py b/fairgraph/openminds/v4/core/products/software_version.py index 73e4f5d8..df394e4f 100644 --- a/fairgraph/openminds/v4/core/products/software_version.py +++ b/fairgraph/openminds/v4/core/products/software_version.py @@ -20,7 +20,7 @@ class SoftwareVersion(KGObject, OMSoftwareVersion): type_ = "https://openminds.om-i.org/types/SoftwareVersion" default_space = "software" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/products/web_service.py b/fairgraph/openminds/v4/core/products/web_service.py index f7cfbba0..1b5d809d 100644 --- a/fairgraph/openminds/v4/core/products/web_service.py +++ b/fairgraph/openminds/v4/core/products/web_service.py @@ -19,7 +19,7 @@ class WebService(KGObject, OMWebService): type_ = "https://openminds.om-i.org/types/WebService" default_space = "webservice" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/products/web_service_version.py b/fairgraph/openminds/v4/core/products/web_service_version.py index 0e2d9477..34d53d17 100644 --- a/fairgraph/openminds/v4/core/products/web_service_version.py +++ b/fairgraph/openminds/v4/core/products/web_service_version.py @@ -20,7 +20,7 @@ class WebServiceVersion(KGObject, OMWebServiceVersion): type_ = "https://openminds.om-i.org/types/WebServiceVersion" default_space = "webservice" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/research/behavioral_protocol.py b/fairgraph/openminds/v4/core/research/behavioral_protocol.py index f4ae9c49..f90b5596 100644 --- a/fairgraph/openminds/v4/core/research/behavioral_protocol.py +++ b/fairgraph/openminds/v4/core/research/behavioral_protocol.py @@ -16,7 +16,7 @@ class BehavioralProtocol(KGObject, OMBehavioralProtocol): type_ = "https://openminds.om-i.org/types/BehavioralProtocol" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/research/configuration.py b/fairgraph/openminds/v4/core/research/configuration.py index 8a29579c..cc9bb8d6 100644 --- a/fairgraph/openminds/v4/core/research/configuration.py +++ b/fairgraph/openminds/v4/core/research/configuration.py @@ -16,7 +16,7 @@ class Configuration(KGObject, OMConfiguration): type_ = "https://openminds.om-i.org/types/Configuration" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/research/custom_property_set.py b/fairgraph/openminds/v4/core/research/custom_property_set.py index a01cca90..b6310ed5 100644 --- a/fairgraph/openminds/v4/core/research/custom_property_set.py +++ b/fairgraph/openminds/v4/core/research/custom_property_set.py @@ -15,7 +15,7 @@ class CustomPropertySet(KGEmbedded, OMCustomPropertySet): """ type_ = "https://openminds.om-i.org/types/CustomPropertySet" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("context", "data_location", "relevant_for") diff --git a/fairgraph/openminds/v4/core/research/numerical_property.py b/fairgraph/openminds/v4/core/research/numerical_property.py index 32fea439..37aa5786 100644 --- a/fairgraph/openminds/v4/core/research/numerical_property.py +++ b/fairgraph/openminds/v4/core/research/numerical_property.py @@ -15,7 +15,7 @@ class NumericalProperty(KGEmbedded, OMNumericalProperty): """ type_ = "https://openminds.om-i.org/types/NumericalProperty" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("name", "values") diff --git a/fairgraph/openminds/v4/core/research/property_value_list.py b/fairgraph/openminds/v4/core/research/property_value_list.py index b3b6b8dd..0ad29dde 100644 --- a/fairgraph/openminds/v4/core/research/property_value_list.py +++ b/fairgraph/openminds/v4/core/research/property_value_list.py @@ -16,7 +16,7 @@ class PropertyValueList(KGObject, OMPropertyValueList): type_ = "https://openminds.om-i.org/types/PropertyValueList" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/research/protocol.py b/fairgraph/openminds/v4/core/research/protocol.py index 604914ff..3bf28374 100644 --- a/fairgraph/openminds/v4/core/research/protocol.py +++ b/fairgraph/openminds/v4/core/research/protocol.py @@ -16,7 +16,7 @@ class Protocol(KGObject, OMProtocol): type_ = "https://openminds.om-i.org/types/Protocol" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/research/protocol_execution.py b/fairgraph/openminds/v4/core/research/protocol_execution.py index af230986..5afe4bbf 100644 --- a/fairgraph/openminds/v4/core/research/protocol_execution.py +++ b/fairgraph/openminds/v4/core/research/protocol_execution.py @@ -19,7 +19,7 @@ class ProtocolExecution(KGObject, OMProtocolExecution): type_ = "https://openminds.om-i.org/types/ProtocolExecution" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/research/strain.py b/fairgraph/openminds/v4/core/research/strain.py index 745ed197..4d51b96a 100644 --- a/fairgraph/openminds/v4/core/research/strain.py +++ b/fairgraph/openminds/v4/core/research/strain.py @@ -16,7 +16,7 @@ class Strain(KGObject, OMStrain): type_ = "https://openminds.om-i.org/types/Strain" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/research/string_property.py b/fairgraph/openminds/v4/core/research/string_property.py index d5108a0b..4fb32fab 100644 --- a/fairgraph/openminds/v4/core/research/string_property.py +++ b/fairgraph/openminds/v4/core/research/string_property.py @@ -15,7 +15,7 @@ class StringProperty(KGEmbedded, OMStringProperty): """ type_ = "https://openminds.om-i.org/types/StringProperty" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("name", "value") diff --git a/fairgraph/openminds/v4/core/research/subject.py b/fairgraph/openminds/v4/core/research/subject.py index d6fbc3b1..391c49cf 100644 --- a/fairgraph/openminds/v4/core/research/subject.py +++ b/fairgraph/openminds/v4/core/research/subject.py @@ -16,7 +16,7 @@ class Subject(KGObject, OMSubject): type_ = "https://openminds.om-i.org/types/Subject" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/research/subject_group.py b/fairgraph/openminds/v4/core/research/subject_group.py index fae46c98..893dbda8 100644 --- a/fairgraph/openminds/v4/core/research/subject_group.py +++ b/fairgraph/openminds/v4/core/research/subject_group.py @@ -16,7 +16,7 @@ class SubjectGroup(KGObject, OMSubjectGroup): type_ = "https://openminds.om-i.org/types/SubjectGroup" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/research/subject_group_state.py b/fairgraph/openminds/v4/core/research/subject_group_state.py index 8f857ebd..5a01e49d 100644 --- a/fairgraph/openminds/v4/core/research/subject_group_state.py +++ b/fairgraph/openminds/v4/core/research/subject_group_state.py @@ -16,7 +16,7 @@ class SubjectGroupState(KGObject, OMSubjectGroupState): type_ = "https://openminds.om-i.org/types/SubjectGroupState" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/research/subject_state.py b/fairgraph/openminds/v4/core/research/subject_state.py index 1bf3d82c..b3e57ab6 100644 --- a/fairgraph/openminds/v4/core/research/subject_state.py +++ b/fairgraph/openminds/v4/core/research/subject_state.py @@ -16,7 +16,7 @@ class SubjectState(KGObject, OMSubjectState): type_ = "https://openminds.om-i.org/types/SubjectState" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/research/tissue_sample.py b/fairgraph/openminds/v4/core/research/tissue_sample.py index 2679feb5..52791b31 100644 --- a/fairgraph/openminds/v4/core/research/tissue_sample.py +++ b/fairgraph/openminds/v4/core/research/tissue_sample.py @@ -16,7 +16,7 @@ class TissueSample(KGObject, OMTissueSample): type_ = "https://openminds.om-i.org/types/TissueSample" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/research/tissue_sample_collection.py b/fairgraph/openminds/v4/core/research/tissue_sample_collection.py index ddd61d7b..02ce2c9c 100644 --- a/fairgraph/openminds/v4/core/research/tissue_sample_collection.py +++ b/fairgraph/openminds/v4/core/research/tissue_sample_collection.py @@ -16,7 +16,7 @@ class TissueSampleCollection(KGObject, OMTissueSampleCollection): type_ = "https://openminds.om-i.org/types/TissueSampleCollection" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/research/tissue_sample_collection_state.py b/fairgraph/openminds/v4/core/research/tissue_sample_collection_state.py index 9ee2c2c6..9a2247c5 100644 --- a/fairgraph/openminds/v4/core/research/tissue_sample_collection_state.py +++ b/fairgraph/openminds/v4/core/research/tissue_sample_collection_state.py @@ -16,7 +16,7 @@ class TissueSampleCollectionState(KGObject, OMTissueSampleCollectionState): type_ = "https://openminds.om-i.org/types/TissueSampleCollectionState" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/core/research/tissue_sample_state.py b/fairgraph/openminds/v4/core/research/tissue_sample_state.py index 7cddafcc..bb7204b6 100644 --- a/fairgraph/openminds/v4/core/research/tissue_sample_state.py +++ b/fairgraph/openminds/v4/core/research/tissue_sample_state.py @@ -16,7 +16,7 @@ class TissueSampleState(KGObject, OMTissueSampleState): type_ = "https://openminds.om-i.org/types/TissueSampleState" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/ephys/activity/cell_patching.py b/fairgraph/openminds/v4/ephys/activity/cell_patching.py index aace696d..c0a5d808 100644 --- a/fairgraph/openminds/v4/ephys/activity/cell_patching.py +++ b/fairgraph/openminds/v4/ephys/activity/cell_patching.py @@ -19,7 +19,7 @@ class CellPatching(KGObject, OMCellPatching): type_ = "https://openminds.om-i.org/types/CellPatching" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v4/ephys/activity/electrode_placement.py b/fairgraph/openminds/v4/ephys/activity/electrode_placement.py index fb0cc38f..290e91d1 100644 --- a/fairgraph/openminds/v4/ephys/activity/electrode_placement.py +++ b/fairgraph/openminds/v4/ephys/activity/electrode_placement.py @@ -19,7 +19,7 @@ class ElectrodePlacement(KGObject, OMElectrodePlacement): type_ = "https://openminds.om-i.org/types/ElectrodePlacement" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v4/ephys/activity/recording_activity.py b/fairgraph/openminds/v4/ephys/activity/recording_activity.py index 0d48e97f..f695ccec 100644 --- a/fairgraph/openminds/v4/ephys/activity/recording_activity.py +++ b/fairgraph/openminds/v4/ephys/activity/recording_activity.py @@ -19,7 +19,7 @@ class RecordingActivity(KGObject, OMRecordingActivity): type_ = "https://openminds.om-i.org/types/RecordingActivity" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v4/ephys/device/electrode.py b/fairgraph/openminds/v4/ephys/device/electrode.py index 444e531d..fb3e5f11 100644 --- a/fairgraph/openminds/v4/ephys/device/electrode.py +++ b/fairgraph/openminds/v4/ephys/device/electrode.py @@ -16,7 +16,7 @@ class Electrode(KGObject, OMElectrode): type_ = "https://openminds.om-i.org/types/Electrode" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/ephys/device/electrode_array.py b/fairgraph/openminds/v4/ephys/device/electrode_array.py index 22af9e6c..49b7ab9f 100644 --- a/fairgraph/openminds/v4/ephys/device/electrode_array.py +++ b/fairgraph/openminds/v4/ephys/device/electrode_array.py @@ -16,7 +16,7 @@ class ElectrodeArray(KGObject, OMElectrodeArray): type_ = "https://openminds.om-i.org/types/ElectrodeArray" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/ephys/device/electrode_array_usage.py b/fairgraph/openminds/v4/ephys/device/electrode_array_usage.py index 36bbd986..37409817 100644 --- a/fairgraph/openminds/v4/ephys/device/electrode_array_usage.py +++ b/fairgraph/openminds/v4/ephys/device/electrode_array_usage.py @@ -16,7 +16,7 @@ class ElectrodeArrayUsage(KGObject, OMElectrodeArrayUsage): type_ = "https://openminds.om-i.org/types/ElectrodeArrayUsage" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/ephys/device/electrode_usage.py b/fairgraph/openminds/v4/ephys/device/electrode_usage.py index 2abeb816..d77a45bc 100644 --- a/fairgraph/openminds/v4/ephys/device/electrode_usage.py +++ b/fairgraph/openminds/v4/ephys/device/electrode_usage.py @@ -16,7 +16,7 @@ class ElectrodeUsage(KGObject, OMElectrodeUsage): type_ = "https://openminds.om-i.org/types/ElectrodeUsage" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/ephys/device/pipette.py b/fairgraph/openminds/v4/ephys/device/pipette.py index a7238170..00287a67 100644 --- a/fairgraph/openminds/v4/ephys/device/pipette.py +++ b/fairgraph/openminds/v4/ephys/device/pipette.py @@ -16,7 +16,7 @@ class Pipette(KGObject, OMPipette): type_ = "https://openminds.om-i.org/types/Pipette" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/ephys/device/pipette_usage.py b/fairgraph/openminds/v4/ephys/device/pipette_usage.py index 9f3690c7..9b63c9c7 100644 --- a/fairgraph/openminds/v4/ephys/device/pipette_usage.py +++ b/fairgraph/openminds/v4/ephys/device/pipette_usage.py @@ -16,7 +16,7 @@ class PipetteUsage(KGObject, OMPipetteUsage): type_ = "https://openminds.om-i.org/types/PipetteUsage" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/ephys/entity/channel.py b/fairgraph/openminds/v4/ephys/entity/channel.py index 78ea7c55..315390d1 100644 --- a/fairgraph/openminds/v4/ephys/entity/channel.py +++ b/fairgraph/openminds/v4/ephys/entity/channel.py @@ -15,7 +15,7 @@ class Channel(KGEmbedded, OMChannel): """ type_ = "https://openminds.om-i.org/types/Channel" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("internal_identifier", "unit") diff --git a/fairgraph/openminds/v4/ephys/entity/recording.py b/fairgraph/openminds/v4/ephys/entity/recording.py index a0ee731f..a268ad09 100644 --- a/fairgraph/openminds/v4/ephys/entity/recording.py +++ b/fairgraph/openminds/v4/ephys/entity/recording.py @@ -16,7 +16,7 @@ class Recording(KGObject, OMRecording): type_ = "https://openminds.om-i.org/types/Recording" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/publications/book.py b/fairgraph/openminds/v4/publications/book.py index 0af49f9f..b2ef5753 100644 --- a/fairgraph/openminds/v4/publications/book.py +++ b/fairgraph/openminds/v4/publications/book.py @@ -20,7 +20,7 @@ class Book(KGObject, OMBook): type_ = "https://openminds.om-i.org/types/Book" default_space = "livepapers" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/publications/chapter.py b/fairgraph/openminds/v4/publications/chapter.py index 86e13d20..b31b4460 100644 --- a/fairgraph/openminds/v4/publications/chapter.py +++ b/fairgraph/openminds/v4/publications/chapter.py @@ -20,7 +20,7 @@ class Chapter(KGObject, OMChapter): type_ = "https://openminds.om-i.org/types/Chapter" default_space = "livepapers" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/publications/learning_resource.py b/fairgraph/openminds/v4/publications/learning_resource.py index bbf73354..cd652f93 100644 --- a/fairgraph/openminds/v4/publications/learning_resource.py +++ b/fairgraph/openminds/v4/publications/learning_resource.py @@ -20,7 +20,7 @@ class LearningResource(KGObject, OMLearningResource): type_ = "https://openminds.om-i.org/types/LearningResource" default_space = "livepapers" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("about", "name", "publication_date") diff --git a/fairgraph/openminds/v4/publications/live_paper.py b/fairgraph/openminds/v4/publications/live_paper.py index 918f59ae..80fef74d 100644 --- a/fairgraph/openminds/v4/publications/live_paper.py +++ b/fairgraph/openminds/v4/publications/live_paper.py @@ -19,7 +19,7 @@ class LivePaper(KGObject, OMLivePaper): type_ = "https://openminds.om-i.org/types/LivePaper" default_space = "livepapers" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/publications/live_paper_resource_item.py b/fairgraph/openminds/v4/publications/live_paper_resource_item.py index ce79e258..8fc7d441 100644 --- a/fairgraph/openminds/v4/publications/live_paper_resource_item.py +++ b/fairgraph/openminds/v4/publications/live_paper_resource_item.py @@ -19,7 +19,7 @@ class LivePaperResourceItem(KGObject, OMLivePaperResourceItem): type_ = "https://openminds.om-i.org/types/LivePaperResourceItem" default_space = "livepapers" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/publications/live_paper_section.py b/fairgraph/openminds/v4/publications/live_paper_section.py index 56928baa..da7c5df8 100644 --- a/fairgraph/openminds/v4/publications/live_paper_section.py +++ b/fairgraph/openminds/v4/publications/live_paper_section.py @@ -16,7 +16,7 @@ class LivePaperSection(KGObject, OMLivePaperSection): type_ = "https://openminds.om-i.org/types/LivePaperSection" default_space = "livepapers" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/publications/live_paper_version.py b/fairgraph/openminds/v4/publications/live_paper_version.py index 2f8274fc..b15f4450 100644 --- a/fairgraph/openminds/v4/publications/live_paper_version.py +++ b/fairgraph/openminds/v4/publications/live_paper_version.py @@ -21,7 +21,7 @@ class LivePaperVersion(KGObject, OMLivePaperVersion): type_ = "https://openminds.om-i.org/types/LivePaperVersion" default_space = "livepapers" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/publications/periodical.py b/fairgraph/openminds/v4/publications/periodical.py index 5c86d21a..7134f887 100644 --- a/fairgraph/openminds/v4/publications/periodical.py +++ b/fairgraph/openminds/v4/publications/periodical.py @@ -16,7 +16,7 @@ class Periodical(KGObject, OMPeriodical): type_ = "https://openminds.om-i.org/types/Periodical" default_space = "livepapers" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/publications/publication_issue.py b/fairgraph/openminds/v4/publications/publication_issue.py index e70da972..3b2b0f4b 100644 --- a/fairgraph/openminds/v4/publications/publication_issue.py +++ b/fairgraph/openminds/v4/publications/publication_issue.py @@ -16,7 +16,7 @@ class PublicationIssue(KGObject, OMPublicationIssue): type_ = "https://openminds.om-i.org/types/PublicationIssue" default_space = "livepapers" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/publications/publication_volume.py b/fairgraph/openminds/v4/publications/publication_volume.py index 267b429b..8029ae66 100644 --- a/fairgraph/openminds/v4/publications/publication_volume.py +++ b/fairgraph/openminds/v4/publications/publication_volume.py @@ -16,7 +16,7 @@ class PublicationVolume(KGObject, OMPublicationVolume): type_ = "https://openminds.om-i.org/types/PublicationVolume" default_space = "livepapers" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/publications/scholarly_article.py b/fairgraph/openminds/v4/publications/scholarly_article.py index 4c0edc42..370d5565 100644 --- a/fairgraph/openminds/v4/publications/scholarly_article.py +++ b/fairgraph/openminds/v4/publications/scholarly_article.py @@ -22,7 +22,7 @@ class ScholarlyArticle(KGObject, OMScholarlyArticle): type_ = "https://openminds.om-i.org/types/ScholarlyArticle" default_space = "livepapers" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/sands/atlas/atlas_annotation.py b/fairgraph/openminds/v4/sands/atlas/atlas_annotation.py index 5cf16202..1abb050a 100644 --- a/fairgraph/openminds/v4/sands/atlas/atlas_annotation.py +++ b/fairgraph/openminds/v4/sands/atlas/atlas_annotation.py @@ -15,7 +15,7 @@ class AtlasAnnotation(KGEmbedded, OMAtlasAnnotation): """ type_ = "https://openminds.om-i.org/types/AtlasAnnotation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("criteria_quality_type", "criteria_type", "type") diff --git a/fairgraph/openminds/v4/sands/atlas/brain_atlas.py b/fairgraph/openminds/v4/sands/atlas/brain_atlas.py index 65ee465e..113fa37f 100644 --- a/fairgraph/openminds/v4/sands/atlas/brain_atlas.py +++ b/fairgraph/openminds/v4/sands/atlas/brain_atlas.py @@ -19,7 +19,7 @@ class BrainAtlas(KGObject, OMBrainAtlas): type_ = "https://openminds.om-i.org/types/BrainAtlas" default_space = "atlas" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/sands/atlas/brain_atlas_version.py b/fairgraph/openminds/v4/sands/atlas/brain_atlas_version.py index b885fa84..ff593c70 100644 --- a/fairgraph/openminds/v4/sands/atlas/brain_atlas_version.py +++ b/fairgraph/openminds/v4/sands/atlas/brain_atlas_version.py @@ -22,7 +22,7 @@ class BrainAtlasVersion(KGObject, OMBrainAtlasVersion): type_ = "https://openminds.om-i.org/types/BrainAtlasVersion" default_space = "atlas" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/sands/atlas/common_coordinate_space.py b/fairgraph/openminds/v4/sands/atlas/common_coordinate_space.py index af7b7bdc..e6ebf10e 100644 --- a/fairgraph/openminds/v4/sands/atlas/common_coordinate_space.py +++ b/fairgraph/openminds/v4/sands/atlas/common_coordinate_space.py @@ -19,7 +19,7 @@ class CommonCoordinateSpace(KGObject, OMCommonCoordinateSpace): type_ = "https://openminds.om-i.org/types/CommonCoordinateSpace" default_space = "atlas" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/sands/atlas/common_coordinate_space_version.py b/fairgraph/openminds/v4/sands/atlas/common_coordinate_space_version.py index 5f0b4548..4c870a14 100644 --- a/fairgraph/openminds/v4/sands/atlas/common_coordinate_space_version.py +++ b/fairgraph/openminds/v4/sands/atlas/common_coordinate_space_version.py @@ -22,7 +22,7 @@ class CommonCoordinateSpaceVersion(KGObject, OMCommonCoordinateSpaceVersion): type_ = "https://openminds.om-i.org/types/CommonCoordinateSpaceVersion" default_space = "atlas" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/sands/atlas/parcellation_entity.py b/fairgraph/openminds/v4/sands/atlas/parcellation_entity.py index 853c98fc..998afcbb 100644 --- a/fairgraph/openminds/v4/sands/atlas/parcellation_entity.py +++ b/fairgraph/openminds/v4/sands/atlas/parcellation_entity.py @@ -16,7 +16,7 @@ class ParcellationEntity(KGObject, OMParcellationEntity): type_ = "https://openminds.om-i.org/types/ParcellationEntity" default_space = "atlas" - SORT_PRIORITY = ("lookupLabel", "name", "fullName", "shortName", "familyName", "abbreviation") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/sands/atlas/parcellation_entity_version.py b/fairgraph/openminds/v4/sands/atlas/parcellation_entity_version.py index fd218573..4a70aeeb 100644 --- a/fairgraph/openminds/v4/sands/atlas/parcellation_entity_version.py +++ b/fairgraph/openminds/v4/sands/atlas/parcellation_entity_version.py @@ -16,7 +16,7 @@ class ParcellationEntityVersion(KGObject, OMParcellationEntityVersion): type_ = "https://openminds.om-i.org/types/ParcellationEntityVersion" default_space = "atlas" - SORT_PRIORITY = ("lookupLabel", "name", "fullName", "shortName", "familyName", "abbreviation") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/sands/atlas/parcellation_terminology.py b/fairgraph/openminds/v4/sands/atlas/parcellation_terminology.py index cad08d50..74b1a563 100644 --- a/fairgraph/openminds/v4/sands/atlas/parcellation_terminology.py +++ b/fairgraph/openminds/v4/sands/atlas/parcellation_terminology.py @@ -15,7 +15,7 @@ class ParcellationTerminology(KGEmbedded, OMParcellationTerminology): """ type_ = "https://openminds.om-i.org/types/ParcellationTerminology" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("has_entities",) diff --git a/fairgraph/openminds/v4/sands/atlas/parcellation_terminology_version.py b/fairgraph/openminds/v4/sands/atlas/parcellation_terminology_version.py index 9f1cbf21..b4122e90 100644 --- a/fairgraph/openminds/v4/sands/atlas/parcellation_terminology_version.py +++ b/fairgraph/openminds/v4/sands/atlas/parcellation_terminology_version.py @@ -15,7 +15,7 @@ class ParcellationTerminologyVersion(KGEmbedded, OMParcellationTerminologyVersio """ type_ = "https://openminds.om-i.org/types/ParcellationTerminologyVersion" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("short_name", "version_identifier") diff --git a/fairgraph/openminds/v4/sands/mathematical_shapes/circle.py b/fairgraph/openminds/v4/sands/mathematical_shapes/circle.py index 92355a0e..0be4a6a4 100644 --- a/fairgraph/openminds/v4/sands/mathematical_shapes/circle.py +++ b/fairgraph/openminds/v4/sands/mathematical_shapes/circle.py @@ -15,7 +15,7 @@ class Circle(KGEmbedded, OMCircle): """ type_ = "https://openminds.om-i.org/types/Circle" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("radius",) diff --git a/fairgraph/openminds/v4/sands/mathematical_shapes/ellipse.py b/fairgraph/openminds/v4/sands/mathematical_shapes/ellipse.py index 0eb58e51..931d7c28 100644 --- a/fairgraph/openminds/v4/sands/mathematical_shapes/ellipse.py +++ b/fairgraph/openminds/v4/sands/mathematical_shapes/ellipse.py @@ -15,7 +15,7 @@ class Ellipse(KGEmbedded, OMEllipse): """ type_ = "https://openminds.om-i.org/types/Ellipse" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("semi_major_axis", "semi_minor_axis") diff --git a/fairgraph/openminds/v4/sands/mathematical_shapes/rectangle.py b/fairgraph/openminds/v4/sands/mathematical_shapes/rectangle.py index 576971e9..60e6d475 100644 --- a/fairgraph/openminds/v4/sands/mathematical_shapes/rectangle.py +++ b/fairgraph/openminds/v4/sands/mathematical_shapes/rectangle.py @@ -15,7 +15,7 @@ class Rectangle(KGEmbedded, OMRectangle): """ type_ = "https://openminds.om-i.org/types/Rectangle" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("length", "width") diff --git a/fairgraph/openminds/v4/sands/miscellaneous/anatomical_target_position.py b/fairgraph/openminds/v4/sands/miscellaneous/anatomical_target_position.py index ecfc8048..916d9893 100644 --- a/fairgraph/openminds/v4/sands/miscellaneous/anatomical_target_position.py +++ b/fairgraph/openminds/v4/sands/miscellaneous/anatomical_target_position.py @@ -15,7 +15,7 @@ class AnatomicalTargetPosition(KGEmbedded, OMAnatomicalTargetPosition): """ type_ = "https://openminds.om-i.org/types/AnatomicalTargetPosition" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("anatomical_targets", "target_identification_type") diff --git a/fairgraph/openminds/v4/sands/miscellaneous/coordinate_point.py b/fairgraph/openminds/v4/sands/miscellaneous/coordinate_point.py index 49bbf903..b2c857c8 100644 --- a/fairgraph/openminds/v4/sands/miscellaneous/coordinate_point.py +++ b/fairgraph/openminds/v4/sands/miscellaneous/coordinate_point.py @@ -15,7 +15,7 @@ class CoordinatePoint(KGEmbedded, OMCoordinatePoint): """ type_ = "https://openminds.om-i.org/types/CoordinatePoint" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("coordinate_space", "coordinates") diff --git a/fairgraph/openminds/v4/sands/miscellaneous/qualitative_relation_assessment.py b/fairgraph/openminds/v4/sands/miscellaneous/qualitative_relation_assessment.py index 121ebe40..b134944f 100644 --- a/fairgraph/openminds/v4/sands/miscellaneous/qualitative_relation_assessment.py +++ b/fairgraph/openminds/v4/sands/miscellaneous/qualitative_relation_assessment.py @@ -15,7 +15,7 @@ class QualitativeRelationAssessment(KGEmbedded, OMQualitativeRelationAssessment) """ type_ = "https://openminds.om-i.org/types/QualitativeRelationAssessment" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("in_relation_to", "qualitative_overlap") diff --git a/fairgraph/openminds/v4/sands/miscellaneous/quantitative_relation_assessment.py b/fairgraph/openminds/v4/sands/miscellaneous/quantitative_relation_assessment.py index 3db2bf10..f0886ee4 100644 --- a/fairgraph/openminds/v4/sands/miscellaneous/quantitative_relation_assessment.py +++ b/fairgraph/openminds/v4/sands/miscellaneous/quantitative_relation_assessment.py @@ -15,7 +15,7 @@ class QuantitativeRelationAssessment(KGEmbedded, OMQuantitativeRelationAssessmen """ type_ = "https://openminds.om-i.org/types/QuantitativeRelationAssessment" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("in_relation_to", "quantitative_overlap") diff --git a/fairgraph/openminds/v4/sands/miscellaneous/single_color.py b/fairgraph/openminds/v4/sands/miscellaneous/single_color.py index acb1c855..62e54b46 100644 --- a/fairgraph/openminds/v4/sands/miscellaneous/single_color.py +++ b/fairgraph/openminds/v4/sands/miscellaneous/single_color.py @@ -16,7 +16,7 @@ class SingleColor(KGObject, OMSingleColor): type_ = "https://openminds.om-i.org/types/SingleColor" default_space = "atlas" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("value",) diff --git a/fairgraph/openminds/v4/sands/miscellaneous/viewer_specification.py b/fairgraph/openminds/v4/sands/miscellaneous/viewer_specification.py index 5047124e..e80d71ae 100644 --- a/fairgraph/openminds/v4/sands/miscellaneous/viewer_specification.py +++ b/fairgraph/openminds/v4/sands/miscellaneous/viewer_specification.py @@ -15,7 +15,7 @@ class ViewerSpecification(KGEmbedded, OMViewerSpecification): """ type_ = "https://openminds.om-i.org/types/ViewerSpecification" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("anchor_points",) diff --git a/fairgraph/openminds/v4/sands/non_atlas/custom_anatomical_entity.py b/fairgraph/openminds/v4/sands/non_atlas/custom_anatomical_entity.py index 778cde08..01ac5a86 100644 --- a/fairgraph/openminds/v4/sands/non_atlas/custom_anatomical_entity.py +++ b/fairgraph/openminds/v4/sands/non_atlas/custom_anatomical_entity.py @@ -16,7 +16,7 @@ class CustomAnatomicalEntity(KGObject, OMCustomAnatomicalEntity): type_ = "https://openminds.om-i.org/types/CustomAnatomicalEntity" default_space = "spatial" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/sands/non_atlas/custom_annotation.py b/fairgraph/openminds/v4/sands/non_atlas/custom_annotation.py index 421674c4..6cbf5561 100644 --- a/fairgraph/openminds/v4/sands/non_atlas/custom_annotation.py +++ b/fairgraph/openminds/v4/sands/non_atlas/custom_annotation.py @@ -15,7 +15,7 @@ class CustomAnnotation(KGEmbedded, OMCustomAnnotation): """ type_ = "https://openminds.om-i.org/types/CustomAnnotation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("coordinate_space", "criteria_quality_type", "criteria_type", "type") diff --git a/fairgraph/openminds/v4/sands/non_atlas/custom_coordinate_space.py b/fairgraph/openminds/v4/sands/non_atlas/custom_coordinate_space.py index addef528..a2ddbb04 100644 --- a/fairgraph/openminds/v4/sands/non_atlas/custom_coordinate_space.py +++ b/fairgraph/openminds/v4/sands/non_atlas/custom_coordinate_space.py @@ -16,7 +16,7 @@ class CustomCoordinateSpace(KGObject, OMCustomCoordinateSpace): type_ = "https://openminds.om-i.org/types/CustomCoordinateSpace" default_space = "spatial" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/specimen_prep/activity/cranial_window_preparation.py b/fairgraph/openminds/v4/specimen_prep/activity/cranial_window_preparation.py index ba5f4306..7c99fd12 100644 --- a/fairgraph/openminds/v4/specimen_prep/activity/cranial_window_preparation.py +++ b/fairgraph/openminds/v4/specimen_prep/activity/cranial_window_preparation.py @@ -19,7 +19,7 @@ class CranialWindowPreparation(KGObject, OMCranialWindowPreparation): type_ = "https://openminds.om-i.org/types/CranialWindowPreparation" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v4/specimen_prep/activity/tissue_culture_preparation.py b/fairgraph/openminds/v4/specimen_prep/activity/tissue_culture_preparation.py index eed7cb01..29d1bf26 100644 --- a/fairgraph/openminds/v4/specimen_prep/activity/tissue_culture_preparation.py +++ b/fairgraph/openminds/v4/specimen_prep/activity/tissue_culture_preparation.py @@ -19,7 +19,7 @@ class TissueCulturePreparation(KGObject, OMTissueCulturePreparation): type_ = "https://openminds.om-i.org/types/TissueCulturePreparation" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v4/specimen_prep/activity/tissue_sample_slicing.py b/fairgraph/openminds/v4/specimen_prep/activity/tissue_sample_slicing.py index d7dc5afa..dac9eb66 100644 --- a/fairgraph/openminds/v4/specimen_prep/activity/tissue_sample_slicing.py +++ b/fairgraph/openminds/v4/specimen_prep/activity/tissue_sample_slicing.py @@ -19,7 +19,7 @@ class TissueSampleSlicing(KGObject, OMTissueSampleSlicing): type_ = "https://openminds.om-i.org/types/TissueSampleSlicing" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v4/specimen_prep/device/slicing_device.py b/fairgraph/openminds/v4/specimen_prep/device/slicing_device.py index 7ab20961..3d5c39b9 100644 --- a/fairgraph/openminds/v4/specimen_prep/device/slicing_device.py +++ b/fairgraph/openminds/v4/specimen_prep/device/slicing_device.py @@ -16,7 +16,7 @@ class SlicingDevice(KGObject, OMSlicingDevice): type_ = "https://openminds.om-i.org/types/SlicingDevice" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/specimen_prep/device/slicing_device_usage.py b/fairgraph/openminds/v4/specimen_prep/device/slicing_device_usage.py index 1e73cbf0..cd18543f 100644 --- a/fairgraph/openminds/v4/specimen_prep/device/slicing_device_usage.py +++ b/fairgraph/openminds/v4/specimen_prep/device/slicing_device_usage.py @@ -16,7 +16,7 @@ class SlicingDeviceUsage(KGObject, OMSlicingDeviceUsage): type_ = "https://openminds.om-i.org/types/SlicingDeviceUsage" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v4/stimulation/activity/stimulation_activity.py b/fairgraph/openminds/v4/stimulation/activity/stimulation_activity.py index bc781634..e2189592 100644 --- a/fairgraph/openminds/v4/stimulation/activity/stimulation_activity.py +++ b/fairgraph/openminds/v4/stimulation/activity/stimulation_activity.py @@ -19,7 +19,7 @@ class StimulationActivity(KGObject, OMStimulationActivity): type_ = "https://openminds.om-i.org/types/StimulationActivity" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v4/stimulation/stimulus/ephys_stimulus.py b/fairgraph/openminds/v4/stimulation/stimulus/ephys_stimulus.py index 4022e41d..4fc08c6b 100644 --- a/fairgraph/openminds/v4/stimulation/stimulus/ephys_stimulus.py +++ b/fairgraph/openminds/v4/stimulation/stimulus/ephys_stimulus.py @@ -16,7 +16,7 @@ class EphysStimulus(KGObject, OMEphysStimulus): type_ = "https://openminds.om-i.org/types/EphysStimulus" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/chemicals/amount_of_chemical.py b/fairgraph/openminds/v5/chemicals/amount_of_chemical.py index 0e4ee25b..085c51d1 100644 --- a/fairgraph/openminds/v5/chemicals/amount_of_chemical.py +++ b/fairgraph/openminds/v5/chemicals/amount_of_chemical.py @@ -15,7 +15,7 @@ class AmountOfChemical(KGEmbedded, OMAmountOfChemical): """ type_ = "https://openminds.om-i.org/types/AmountOfChemical" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("chemical_product", "amount") diff --git a/fairgraph/openminds/v5/chemicals/chemical_mixture.py b/fairgraph/openminds/v5/chemicals/chemical_mixture.py index ee5162d9..622448f6 100644 --- a/fairgraph/openminds/v5/chemicals/chemical_mixture.py +++ b/fairgraph/openminds/v5/chemicals/chemical_mixture.py @@ -16,7 +16,7 @@ class ChemicalMixture(KGObject, OMChemicalMixture): type_ = "https://openminds.om-i.org/types/ChemicalMixture" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/chemicals/chemical_substance.py b/fairgraph/openminds/v5/chemicals/chemical_substance.py index ae6d4cf7..3568a992 100644 --- a/fairgraph/openminds/v5/chemicals/chemical_substance.py +++ b/fairgraph/openminds/v5/chemicals/chemical_substance.py @@ -16,7 +16,7 @@ class ChemicalSubstance(KGObject, OMChemicalSubstance): type_ = "https://openminds.om-i.org/types/ChemicalSubstance" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/chemicals/product_source.py b/fairgraph/openminds/v5/chemicals/product_source.py index 779b687e..d5f4d3a3 100644 --- a/fairgraph/openminds/v5/chemicals/product_source.py +++ b/fairgraph/openminds/v5/chemicals/product_source.py @@ -16,7 +16,7 @@ class ProductSource(KGObject, OMProductSource): type_ = "https://openminds.om-i.org/types/ProductSource" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/computation/data_analysis.py b/fairgraph/openminds/v5/computation/data_analysis.py index e0a99eb7..c3a9b722 100644 --- a/fairgraph/openminds/v5/computation/data_analysis.py +++ b/fairgraph/openminds/v5/computation/data_analysis.py @@ -19,7 +19,7 @@ class DataAnalysis(KGObject, OMDataAnalysis): type_ = "https://openminds.om-i.org/types/DataAnalysis" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/computation/data_copy.py b/fairgraph/openminds/v5/computation/data_copy.py index 2135b21f..a88fc25b 100644 --- a/fairgraph/openminds/v5/computation/data_copy.py +++ b/fairgraph/openminds/v5/computation/data_copy.py @@ -19,7 +19,7 @@ class DataCopy(KGObject, OMDataCopy): type_ = "https://openminds.om-i.org/types/DataCopy" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/computation/deployed_interface.py b/fairgraph/openminds/v5/computation/deployed_interface.py index 0db6bb99..9c09e374 100644 --- a/fairgraph/openminds/v5/computation/deployed_interface.py +++ b/fairgraph/openminds/v5/computation/deployed_interface.py @@ -15,7 +15,7 @@ class DeployedInterface(KGEmbedded, OMDeployedInterface): """ type_ = "https://openminds.om-i.org/types/DeployedInterface" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("accessibility", "entry_point", "interface") diff --git a/fairgraph/openminds/v5/computation/environment.py b/fairgraph/openminds/v5/computation/environment.py index 950a0c5b..f04f856d 100644 --- a/fairgraph/openminds/v5/computation/environment.py +++ b/fairgraph/openminds/v5/computation/environment.py @@ -16,7 +16,7 @@ class Environment(KGObject, OMEnvironment): type_ = "https://openminds.om-i.org/types/Environment" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/computation/generic_computation.py b/fairgraph/openminds/v5/computation/generic_computation.py index e7ccce53..c102a5d9 100644 --- a/fairgraph/openminds/v5/computation/generic_computation.py +++ b/fairgraph/openminds/v5/computation/generic_computation.py @@ -19,7 +19,7 @@ class GenericComputation(KGObject, OMGenericComputation): type_ = "https://openminds.om-i.org/types/GenericComputation" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/computation/hardware_system.py b/fairgraph/openminds/v5/computation/hardware_system.py index 7ffe55a8..e8d27735 100644 --- a/fairgraph/openminds/v5/computation/hardware_system.py +++ b/fairgraph/openminds/v5/computation/hardware_system.py @@ -16,7 +16,7 @@ class HardwareSystem(KGObject, OMHardwareSystem): type_ = "https://openminds.om-i.org/types/HardwareSystem" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/computation/launch_configuration.py b/fairgraph/openminds/v5/computation/launch_configuration.py index 078fa248..8b5bc7e6 100644 --- a/fairgraph/openminds/v5/computation/launch_configuration.py +++ b/fairgraph/openminds/v5/computation/launch_configuration.py @@ -16,7 +16,7 @@ class LaunchConfiguration(KGObject, OMLaunchConfiguration): type_ = "https://openminds.om-i.org/types/LaunchConfiguration" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/computation/model_validation.py b/fairgraph/openminds/v5/computation/model_validation.py index ba96d9b3..a07432f9 100644 --- a/fairgraph/openminds/v5/computation/model_validation.py +++ b/fairgraph/openminds/v5/computation/model_validation.py @@ -20,7 +20,7 @@ class ModelValidation(KGObject, OMModelValidation): type_ = "https://openminds.om-i.org/types/ModelValidation" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/computation/optimization.py b/fairgraph/openminds/v5/computation/optimization.py index 6e7afd55..5ac42fb1 100644 --- a/fairgraph/openminds/v5/computation/optimization.py +++ b/fairgraph/openminds/v5/computation/optimization.py @@ -19,7 +19,7 @@ class Optimization(KGObject, OMOptimization): type_ = "https://openminds.om-i.org/types/Optimization" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/computation/service_deployment.py b/fairgraph/openminds/v5/computation/service_deployment.py index d222d5a5..7b29e981 100644 --- a/fairgraph/openminds/v5/computation/service_deployment.py +++ b/fairgraph/openminds/v5/computation/service_deployment.py @@ -19,7 +19,7 @@ class ServiceDeployment(KGObject, OMServiceDeployment): type_ = "https://openminds.om-i.org/types/ServiceDeployment" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("name", "provides", "service", "start_time") diff --git a/fairgraph/openminds/v5/computation/simulation.py b/fairgraph/openminds/v5/computation/simulation.py index 40b36086..98defc13 100644 --- a/fairgraph/openminds/v5/computation/simulation.py +++ b/fairgraph/openminds/v5/computation/simulation.py @@ -19,7 +19,7 @@ class Simulation(KGObject, OMSimulation): type_ = "https://openminds.om-i.org/types/Simulation" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/computation/software_agent.py b/fairgraph/openminds/v5/computation/software_agent.py index be203082..b47cd08f 100644 --- a/fairgraph/openminds/v5/computation/software_agent.py +++ b/fairgraph/openminds/v5/computation/software_agent.py @@ -16,7 +16,7 @@ class SoftwareAgent(KGObject, OMSoftwareAgent): type_ = "https://openminds.om-i.org/types/SoftwareAgent" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/computation/validation_test.py b/fairgraph/openminds/v5/computation/validation_test.py index f3669f72..e4f65699 100644 --- a/fairgraph/openminds/v5/computation/validation_test.py +++ b/fairgraph/openminds/v5/computation/validation_test.py @@ -19,7 +19,7 @@ class ValidationTest(KGObject, OMValidationTest): type_ = "https://openminds.om-i.org/types/ValidationTest" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/computation/validation_test_version.py b/fairgraph/openminds/v5/computation/validation_test_version.py index d08b521e..e328b3cd 100644 --- a/fairgraph/openminds/v5/computation/validation_test_version.py +++ b/fairgraph/openminds/v5/computation/validation_test_version.py @@ -20,7 +20,7 @@ class ValidationTestVersion(KGObject, OMValidationTestVersion): type_ = "https://openminds.om-i.org/types/ValidationTestVersion" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/computation/visualization.py b/fairgraph/openminds/v5/computation/visualization.py index 1fed027c..08a3bb8c 100644 --- a/fairgraph/openminds/v5/computation/visualization.py +++ b/fairgraph/openminds/v5/computation/visualization.py @@ -19,7 +19,7 @@ class Visualization(KGObject, OMVisualization): type_ = "https://openminds.om-i.org/types/Visualization" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/computation/workflow_execution.py b/fairgraph/openminds/v5/computation/workflow_execution.py index a574cc25..62947c3a 100644 --- a/fairgraph/openminds/v5/computation/workflow_execution.py +++ b/fairgraph/openminds/v5/computation/workflow_execution.py @@ -16,7 +16,7 @@ class WorkflowExecution(KGObject, OMWorkflowExecution): type_ = "https://openminds.om-i.org/types/WorkflowExecution" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("stages",) diff --git a/fairgraph/openminds/v5/computation/workflow_recipe.py b/fairgraph/openminds/v5/computation/workflow_recipe.py index a1308f42..8e21a36f 100644 --- a/fairgraph/openminds/v5/computation/workflow_recipe.py +++ b/fairgraph/openminds/v5/computation/workflow_recipe.py @@ -19,7 +19,7 @@ class WorkflowRecipe(KGObject, OMWorkflowRecipe): type_ = "https://openminds.om-i.org/types/WorkflowRecipe" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/computation/workflow_recipe_version.py b/fairgraph/openminds/v5/computation/workflow_recipe_version.py index 77066831..1658673f 100644 --- a/fairgraph/openminds/v5/computation/workflow_recipe_version.py +++ b/fairgraph/openminds/v5/computation/workflow_recipe_version.py @@ -20,7 +20,7 @@ class WorkflowRecipeVersion(KGObject, OMWorkflowRecipeVersion): type_ = "https://openminds.om-i.org/types/WorkflowRecipeVersion" default_space = "computation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/access_channel.py b/fairgraph/openminds/v5/controlled_terms/access_channel.py index ff444932..1a23d370 100644 --- a/fairgraph/openminds/v5/controlled_terms/access_channel.py +++ b/fairgraph/openminds/v5/controlled_terms/access_channel.py @@ -19,7 +19,7 @@ class AccessChannel(KGObject, OMAccessChannel): type_ = "https://openminds.om-i.org/types/AccessChannel" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/access_eligibility_type.py b/fairgraph/openminds/v5/controlled_terms/access_eligibility_type.py index 8fc05ff1..8b9dbf80 100644 --- a/fairgraph/openminds/v5/controlled_terms/access_eligibility_type.py +++ b/fairgraph/openminds/v5/controlled_terms/access_eligibility_type.py @@ -19,7 +19,7 @@ class AccessEligibilityType(KGObject, OMAccessEligibilityType): type_ = "https://openminds.om-i.org/types/AccessEligibilityType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/access_form.py b/fairgraph/openminds/v5/controlled_terms/access_form.py index 4237a2f5..159e2e82 100644 --- a/fairgraph/openminds/v5/controlled_terms/access_form.py +++ b/fairgraph/openminds/v5/controlled_terms/access_form.py @@ -19,7 +19,7 @@ class AccessForm(KGObject, OMAccessForm): type_ = "https://openminds.om-i.org/types/AccessForm" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/access_process_type.py b/fairgraph/openminds/v5/controlled_terms/access_process_type.py index d90cdfe0..69dd938e 100644 --- a/fairgraph/openminds/v5/controlled_terms/access_process_type.py +++ b/fairgraph/openminds/v5/controlled_terms/access_process_type.py @@ -19,7 +19,7 @@ class AccessProcessType(KGObject, OMAccessProcessType): type_ = "https://openminds.om-i.org/types/AccessProcessType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/action_status_type.py b/fairgraph/openminds/v5/controlled_terms/action_status_type.py index 9f3ca47e..d89fe735 100644 --- a/fairgraph/openminds/v5/controlled_terms/action_status_type.py +++ b/fairgraph/openminds/v5/controlled_terms/action_status_type.py @@ -19,7 +19,7 @@ class ActionStatusType(KGObject, OMActionStatusType): type_ = "https://openminds.om-i.org/types/ActionStatusType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/age_category.py b/fairgraph/openminds/v5/controlled_terms/age_category.py index 1448f8e5..a119787f 100644 --- a/fairgraph/openminds/v5/controlled_terms/age_category.py +++ b/fairgraph/openminds/v5/controlled_terms/age_category.py @@ -19,7 +19,7 @@ class AgeCategory(KGObject, OMAgeCategory): type_ = "https://openminds.om-i.org/types/AgeCategory" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/age_reference.py b/fairgraph/openminds/v5/controlled_terms/age_reference.py index 049722e1..9134180b 100644 --- a/fairgraph/openminds/v5/controlled_terms/age_reference.py +++ b/fairgraph/openminds/v5/controlled_terms/age_reference.py @@ -19,7 +19,7 @@ class AgeReference(KGObject, OMAgeReference): type_ = "https://openminds.om-i.org/types/AgeReference" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/analysis_technique.py b/fairgraph/openminds/v5/controlled_terms/analysis_technique.py index 5977ca89..24056082 100644 --- a/fairgraph/openminds/v5/controlled_terms/analysis_technique.py +++ b/fairgraph/openminds/v5/controlled_terms/analysis_technique.py @@ -19,7 +19,7 @@ class AnalysisTechnique(KGObject, OMAnalysisTechnique): type_ = "https://openminds.om-i.org/types/AnalysisTechnique" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/anatomical_axes_orientation.py b/fairgraph/openminds/v5/controlled_terms/anatomical_axes_orientation.py index 558505b6..46f1e910 100644 --- a/fairgraph/openminds/v5/controlled_terms/anatomical_axes_orientation.py +++ b/fairgraph/openminds/v5/controlled_terms/anatomical_axes_orientation.py @@ -19,7 +19,7 @@ class AnatomicalAxesOrientation(KGObject, OMAnatomicalAxesOrientation): type_ = "https://openminds.om-i.org/types/AnatomicalAxesOrientation" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/anatomical_cavity.py b/fairgraph/openminds/v5/controlled_terms/anatomical_cavity.py index dadf62bf..1078a1b5 100644 --- a/fairgraph/openminds/v5/controlled_terms/anatomical_cavity.py +++ b/fairgraph/openminds/v5/controlled_terms/anatomical_cavity.py @@ -19,7 +19,7 @@ class AnatomicalCavity(KGObject, OMAnatomicalCavity): type_ = "https://openminds.om-i.org/types/AnatomicalCavity" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/anatomical_identification_type.py b/fairgraph/openminds/v5/controlled_terms/anatomical_identification_type.py index 1933f1cb..cde0de74 100644 --- a/fairgraph/openminds/v5/controlled_terms/anatomical_identification_type.py +++ b/fairgraph/openminds/v5/controlled_terms/anatomical_identification_type.py @@ -19,7 +19,7 @@ class AnatomicalIdentificationType(KGObject, OMAnatomicalIdentificationType): type_ = "https://openminds.om-i.org/types/AnatomicalIdentificationType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/anatomical_plane.py b/fairgraph/openminds/v5/controlled_terms/anatomical_plane.py index c3b417a5..32f9b01e 100644 --- a/fairgraph/openminds/v5/controlled_terms/anatomical_plane.py +++ b/fairgraph/openminds/v5/controlled_terms/anatomical_plane.py @@ -19,7 +19,7 @@ class AnatomicalPlane(KGObject, OMAnatomicalPlane): type_ = "https://openminds.om-i.org/types/AnatomicalPlane" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/annotation_criteria_type.py b/fairgraph/openminds/v5/controlled_terms/annotation_criteria_type.py index 2fcd24d0..0dd16a70 100644 --- a/fairgraph/openminds/v5/controlled_terms/annotation_criteria_type.py +++ b/fairgraph/openminds/v5/controlled_terms/annotation_criteria_type.py @@ -19,7 +19,7 @@ class AnnotationCriteriaType(KGObject, OMAnnotationCriteriaType): type_ = "https://openminds.om-i.org/types/AnnotationCriteriaType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/annotation_type.py b/fairgraph/openminds/v5/controlled_terms/annotation_type.py index 5b475223..bc27d4c7 100644 --- a/fairgraph/openminds/v5/controlled_terms/annotation_type.py +++ b/fairgraph/openminds/v5/controlled_terms/annotation_type.py @@ -19,7 +19,7 @@ class AnnotationType(KGObject, OMAnnotationType): type_ = "https://openminds.om-i.org/types/AnnotationType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/atlas_type.py b/fairgraph/openminds/v5/controlled_terms/atlas_type.py index 931780ff..43acb436 100644 --- a/fairgraph/openminds/v5/controlled_terms/atlas_type.py +++ b/fairgraph/openminds/v5/controlled_terms/atlas_type.py @@ -19,7 +19,7 @@ class AtlasType(KGObject, OMAtlasType): type_ = "https://openminds.om-i.org/types/AtlasType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/auditory_stimulus_type.py b/fairgraph/openminds/v5/controlled_terms/auditory_stimulus_type.py index ac78c59e..8b0cf38e 100644 --- a/fairgraph/openminds/v5/controlled_terms/auditory_stimulus_type.py +++ b/fairgraph/openminds/v5/controlled_terms/auditory_stimulus_type.py @@ -19,7 +19,7 @@ class AuditoryStimulusType(KGObject, OMAuditoryStimulusType): type_ = "https://openminds.om-i.org/types/AuditoryStimulusType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/biological_order.py b/fairgraph/openminds/v5/controlled_terms/biological_order.py index 76545c8b..7f6f8806 100644 --- a/fairgraph/openminds/v5/controlled_terms/biological_order.py +++ b/fairgraph/openminds/v5/controlled_terms/biological_order.py @@ -19,7 +19,7 @@ class BiologicalOrder(KGObject, OMBiologicalOrder): type_ = "https://openminds.om-i.org/types/BiologicalOrder" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/biological_process.py b/fairgraph/openminds/v5/controlled_terms/biological_process.py index a9a0d475..4ae3b36b 100644 --- a/fairgraph/openminds/v5/controlled_terms/biological_process.py +++ b/fairgraph/openminds/v5/controlled_terms/biological_process.py @@ -19,7 +19,7 @@ class BiologicalProcess(KGObject, OMBiologicalProcess): type_ = "https://openminds.om-i.org/types/BiologicalProcess" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/biological_sex.py b/fairgraph/openminds/v5/controlled_terms/biological_sex.py index a56141bb..a54bf9f4 100644 --- a/fairgraph/openminds/v5/controlled_terms/biological_sex.py +++ b/fairgraph/openminds/v5/controlled_terms/biological_sex.py @@ -19,7 +19,7 @@ class BiologicalSex(KGObject, OMBiologicalSex): type_ = "https://openminds.om-i.org/types/BiologicalSex" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/breeding_type.py b/fairgraph/openminds/v5/controlled_terms/breeding_type.py index f868231c..ad09b5db 100644 --- a/fairgraph/openminds/v5/controlled_terms/breeding_type.py +++ b/fairgraph/openminds/v5/controlled_terms/breeding_type.py @@ -19,7 +19,7 @@ class BreedingType(KGObject, OMBreedingType): type_ = "https://openminds.om-i.org/types/BreedingType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/cell_culture_type.py b/fairgraph/openminds/v5/controlled_terms/cell_culture_type.py index 41bea6dd..80a6b5b9 100644 --- a/fairgraph/openminds/v5/controlled_terms/cell_culture_type.py +++ b/fairgraph/openminds/v5/controlled_terms/cell_culture_type.py @@ -19,7 +19,7 @@ class CellCultureType(KGObject, OMCellCultureType): type_ = "https://openminds.om-i.org/types/CellCultureType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/cell_type.py b/fairgraph/openminds/v5/controlled_terms/cell_type.py index 84c371ce..965accb4 100644 --- a/fairgraph/openminds/v5/controlled_terms/cell_type.py +++ b/fairgraph/openminds/v5/controlled_terms/cell_type.py @@ -19,7 +19,7 @@ class CellType(KGObject, OMCellType): type_ = "https://openminds.om-i.org/types/CellType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/chemical_mixture_type.py b/fairgraph/openminds/v5/controlled_terms/chemical_mixture_type.py index c85b0b8b..fefc9a13 100644 --- a/fairgraph/openminds/v5/controlled_terms/chemical_mixture_type.py +++ b/fairgraph/openminds/v5/controlled_terms/chemical_mixture_type.py @@ -19,7 +19,7 @@ class ChemicalMixtureType(KGObject, OMChemicalMixtureType): type_ = "https://openminds.om-i.org/types/ChemicalMixtureType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/colormap.py b/fairgraph/openminds/v5/controlled_terms/colormap.py index 4dda3d82..b13a06e3 100644 --- a/fairgraph/openminds/v5/controlled_terms/colormap.py +++ b/fairgraph/openminds/v5/controlled_terms/colormap.py @@ -19,7 +19,7 @@ class Colormap(KGObject, OMColormap): type_ = "https://openminds.om-i.org/types/Colormap" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/communication_interface_type.py b/fairgraph/openminds/v5/controlled_terms/communication_interface_type.py index 9b562777..e749a83c 100644 --- a/fairgraph/openminds/v5/controlled_terms/communication_interface_type.py +++ b/fairgraph/openminds/v5/controlled_terms/communication_interface_type.py @@ -19,7 +19,7 @@ class CommunicationInterfaceType(KGObject, OMCommunicationInterfaceType): type_ = "https://openminds.om-i.org/types/CommunicationInterfaceType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/communication_protocol.py b/fairgraph/openminds/v5/controlled_terms/communication_protocol.py index 8a2343fc..5cd9bd96 100644 --- a/fairgraph/openminds/v5/controlled_terms/communication_protocol.py +++ b/fairgraph/openminds/v5/controlled_terms/communication_protocol.py @@ -19,7 +19,7 @@ class CommunicationProtocol(KGObject, OMCommunicationProtocol): type_ = "https://openminds.om-i.org/types/CommunicationProtocol" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/contribution_type.py b/fairgraph/openminds/v5/controlled_terms/contribution_type.py index a16235b8..ca4efcf7 100644 --- a/fairgraph/openminds/v5/controlled_terms/contribution_type.py +++ b/fairgraph/openminds/v5/controlled_terms/contribution_type.py @@ -19,7 +19,7 @@ class ContributionType(KGObject, OMContributionType): type_ = "https://openminds.om-i.org/types/ContributionType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/cranial_window_construction_type.py b/fairgraph/openminds/v5/controlled_terms/cranial_window_construction_type.py index 9368d8b8..cd113a9f 100644 --- a/fairgraph/openminds/v5/controlled_terms/cranial_window_construction_type.py +++ b/fairgraph/openminds/v5/controlled_terms/cranial_window_construction_type.py @@ -19,7 +19,7 @@ class CranialWindowConstructionType(KGObject, OMCranialWindowConstructionType): type_ = "https://openminds.om-i.org/types/CranialWindowConstructionType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/cranial_window_reinforcement_type.py b/fairgraph/openminds/v5/controlled_terms/cranial_window_reinforcement_type.py index 033e591c..4ef10987 100644 --- a/fairgraph/openminds/v5/controlled_terms/cranial_window_reinforcement_type.py +++ b/fairgraph/openminds/v5/controlled_terms/cranial_window_reinforcement_type.py @@ -19,7 +19,7 @@ class CranialWindowReinforcementType(KGObject, OMCranialWindowReinforcementType) type_ = "https://openminds.om-i.org/types/CranialWindowReinforcementType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/criteria_quality_type.py b/fairgraph/openminds/v5/controlled_terms/criteria_quality_type.py index 5451de04..a6634125 100644 --- a/fairgraph/openminds/v5/controlled_terms/criteria_quality_type.py +++ b/fairgraph/openminds/v5/controlled_terms/criteria_quality_type.py @@ -19,7 +19,7 @@ class CriteriaQualityType(KGObject, OMCriteriaQualityType): type_ = "https://openminds.om-i.org/types/CriteriaQualityType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/data_type.py b/fairgraph/openminds/v5/controlled_terms/data_type.py index 8bbfe66f..13337810 100644 --- a/fairgraph/openminds/v5/controlled_terms/data_type.py +++ b/fairgraph/openminds/v5/controlled_terms/data_type.py @@ -19,7 +19,7 @@ class DataType(KGObject, OMDataType): type_ = "https://openminds.om-i.org/types/DataType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/dependency_impact.py b/fairgraph/openminds/v5/controlled_terms/dependency_impact.py index 3625a044..80537d42 100644 --- a/fairgraph/openminds/v5/controlled_terms/dependency_impact.py +++ b/fairgraph/openminds/v5/controlled_terms/dependency_impact.py @@ -19,7 +19,7 @@ class DependencyImpact(KGObject, OMDependencyImpact): type_ = "https://openminds.om-i.org/types/DependencyImpact" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/deployment_environment_type.py b/fairgraph/openminds/v5/controlled_terms/deployment_environment_type.py index 4eb39d14..28ade716 100644 --- a/fairgraph/openminds/v5/controlled_terms/deployment_environment_type.py +++ b/fairgraph/openminds/v5/controlled_terms/deployment_environment_type.py @@ -19,7 +19,7 @@ class DeploymentEnvironmentType(KGObject, OMDeploymentEnvironmentType): type_ = "https://openminds.om-i.org/types/DeploymentEnvironmentType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/device_mounting_type.py b/fairgraph/openminds/v5/controlled_terms/device_mounting_type.py index 44b8a6cf..0137d534 100644 --- a/fairgraph/openminds/v5/controlled_terms/device_mounting_type.py +++ b/fairgraph/openminds/v5/controlled_terms/device_mounting_type.py @@ -19,7 +19,7 @@ class DeviceMountingType(KGObject, OMDeviceMountingType): type_ = "https://openminds.om-i.org/types/DeviceMountingType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/device_type.py b/fairgraph/openminds/v5/controlled_terms/device_type.py index aa55ffd0..669f4f35 100644 --- a/fairgraph/openminds/v5/controlled_terms/device_type.py +++ b/fairgraph/openminds/v5/controlled_terms/device_type.py @@ -19,7 +19,7 @@ class DeviceType(KGObject, OMDeviceType): type_ = "https://openminds.om-i.org/types/DeviceType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/difference_measure.py b/fairgraph/openminds/v5/controlled_terms/difference_measure.py index ca8f6bc3..983b4c9a 100644 --- a/fairgraph/openminds/v5/controlled_terms/difference_measure.py +++ b/fairgraph/openminds/v5/controlled_terms/difference_measure.py @@ -19,7 +19,7 @@ class DifferenceMeasure(KGObject, OMDifferenceMeasure): type_ = "https://openminds.om-i.org/types/DifferenceMeasure" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/disease.py b/fairgraph/openminds/v5/controlled_terms/disease.py index c118fb0b..882b6e72 100644 --- a/fairgraph/openminds/v5/controlled_terms/disease.py +++ b/fairgraph/openminds/v5/controlled_terms/disease.py @@ -19,7 +19,7 @@ class Disease(KGObject, OMDisease): type_ = "https://openminds.om-i.org/types/Disease" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/disease_model.py b/fairgraph/openminds/v5/controlled_terms/disease_model.py index f1751394..9c3358a9 100644 --- a/fairgraph/openminds/v5/controlled_terms/disease_model.py +++ b/fairgraph/openminds/v5/controlled_terms/disease_model.py @@ -19,7 +19,7 @@ class DiseaseModel(KGObject, OMDiseaseModel): type_ = "https://openminds.om-i.org/types/DiseaseModel" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/educational_level.py b/fairgraph/openminds/v5/controlled_terms/educational_level.py index 2b96330b..07087e7d 100644 --- a/fairgraph/openminds/v5/controlled_terms/educational_level.py +++ b/fairgraph/openminds/v5/controlled_terms/educational_level.py @@ -19,7 +19,7 @@ class EducationalLevel(KGObject, OMEducationalLevel): type_ = "https://openminds.om-i.org/types/EducationalLevel" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/electrical_stimulus_type.py b/fairgraph/openminds/v5/controlled_terms/electrical_stimulus_type.py index e840d46e..b7a07953 100644 --- a/fairgraph/openminds/v5/controlled_terms/electrical_stimulus_type.py +++ b/fairgraph/openminds/v5/controlled_terms/electrical_stimulus_type.py @@ -19,7 +19,7 @@ class ElectricalStimulusType(KGObject, OMElectricalStimulusType): type_ = "https://openminds.om-i.org/types/ElectricalStimulusType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/experimental_approach.py b/fairgraph/openminds/v5/controlled_terms/experimental_approach.py index 85bc08b3..9bf3c107 100644 --- a/fairgraph/openminds/v5/controlled_terms/experimental_approach.py +++ b/fairgraph/openminds/v5/controlled_terms/experimental_approach.py @@ -19,7 +19,7 @@ class ExperimentalApproach(KGObject, OMExperimentalApproach): type_ = "https://openminds.om-i.org/types/ExperimentalApproach" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/external_body_region.py b/fairgraph/openminds/v5/controlled_terms/external_body_region.py index 52ff0776..82272e41 100644 --- a/fairgraph/openminds/v5/controlled_terms/external_body_region.py +++ b/fairgraph/openminds/v5/controlled_terms/external_body_region.py @@ -19,7 +19,7 @@ class ExternalBodyRegion(KGObject, OMExternalBodyRegion): type_ = "https://openminds.om-i.org/types/ExternalBodyRegion" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/file_bundle_grouping.py b/fairgraph/openminds/v5/controlled_terms/file_bundle_grouping.py index 04a90a90..e207db47 100644 --- a/fairgraph/openminds/v5/controlled_terms/file_bundle_grouping.py +++ b/fairgraph/openminds/v5/controlled_terms/file_bundle_grouping.py @@ -19,7 +19,7 @@ class FileBundleGrouping(KGObject, OMFileBundleGrouping): type_ = "https://openminds.om-i.org/types/FileBundleGrouping" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/file_repository_type.py b/fairgraph/openminds/v5/controlled_terms/file_repository_type.py index f54998be..a601fba8 100644 --- a/fairgraph/openminds/v5/controlled_terms/file_repository_type.py +++ b/fairgraph/openminds/v5/controlled_terms/file_repository_type.py @@ -19,7 +19,7 @@ class FileRepositoryType(KGObject, OMFileRepositoryType): type_ = "https://openminds.om-i.org/types/FileRepositoryType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/file_usage_role.py b/fairgraph/openminds/v5/controlled_terms/file_usage_role.py index 5c3ef745..16053e4e 100644 --- a/fairgraph/openminds/v5/controlled_terms/file_usage_role.py +++ b/fairgraph/openminds/v5/controlled_terms/file_usage_role.py @@ -19,7 +19,7 @@ class FileUsageRole(KGObject, OMFileUsageRole): type_ = "https://openminds.om-i.org/types/FileUsageRole" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/genetic_strain_type.py b/fairgraph/openminds/v5/controlled_terms/genetic_strain_type.py index 7f4ee505..2cf737d4 100644 --- a/fairgraph/openminds/v5/controlled_terms/genetic_strain_type.py +++ b/fairgraph/openminds/v5/controlled_terms/genetic_strain_type.py @@ -19,7 +19,7 @@ class GeneticStrainType(KGObject, OMGeneticStrainType): type_ = "https://openminds.om-i.org/types/GeneticStrainType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/gustatory_stimulus_type.py b/fairgraph/openminds/v5/controlled_terms/gustatory_stimulus_type.py index 38063aaa..e50f071b 100644 --- a/fairgraph/openminds/v5/controlled_terms/gustatory_stimulus_type.py +++ b/fairgraph/openminds/v5/controlled_terms/gustatory_stimulus_type.py @@ -19,7 +19,7 @@ class GustatoryStimulusType(KGObject, OMGustatoryStimulusType): type_ = "https://openminds.om-i.org/types/GustatoryStimulusType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/handedness.py b/fairgraph/openminds/v5/controlled_terms/handedness.py index a4cbef89..ceac08e1 100644 --- a/fairgraph/openminds/v5/controlled_terms/handedness.py +++ b/fairgraph/openminds/v5/controlled_terms/handedness.py @@ -19,7 +19,7 @@ class Handedness(KGObject, OMHandedness): type_ = "https://openminds.om-i.org/types/Handedness" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/language.py b/fairgraph/openminds/v5/controlled_terms/language.py index 55f75716..c82ce2d8 100644 --- a/fairgraph/openminds/v5/controlled_terms/language.py +++ b/fairgraph/openminds/v5/controlled_terms/language.py @@ -19,7 +19,7 @@ class Language(KGObject, OMLanguage): type_ = "https://openminds.om-i.org/types/Language" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/laterality.py b/fairgraph/openminds/v5/controlled_terms/laterality.py index 9bb018ef..ea661db7 100644 --- a/fairgraph/openminds/v5/controlled_terms/laterality.py +++ b/fairgraph/openminds/v5/controlled_terms/laterality.py @@ -19,7 +19,7 @@ class Laterality(KGObject, OMLaterality): type_ = "https://openminds.om-i.org/types/Laterality" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/learning_resource_type.py b/fairgraph/openminds/v5/controlled_terms/learning_resource_type.py index 91b463b7..88e932a5 100644 --- a/fairgraph/openminds/v5/controlled_terms/learning_resource_type.py +++ b/fairgraph/openminds/v5/controlled_terms/learning_resource_type.py @@ -19,7 +19,7 @@ class LearningResourceType(KGObject, OMLearningResourceType): type_ = "https://openminds.om-i.org/types/LearningResourceType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/measured_quantity.py b/fairgraph/openminds/v5/controlled_terms/measured_quantity.py index f07bea96..b067b23e 100644 --- a/fairgraph/openminds/v5/controlled_terms/measured_quantity.py +++ b/fairgraph/openminds/v5/controlled_terms/measured_quantity.py @@ -19,7 +19,7 @@ class MeasuredQuantity(KGObject, OMMeasuredQuantity): type_ = "https://openminds.om-i.org/types/MeasuredQuantity" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/measured_signal_type.py b/fairgraph/openminds/v5/controlled_terms/measured_signal_type.py index 52eee79c..7d36076b 100644 --- a/fairgraph/openminds/v5/controlled_terms/measured_signal_type.py +++ b/fairgraph/openminds/v5/controlled_terms/measured_signal_type.py @@ -19,7 +19,7 @@ class MeasuredSignalType(KGObject, OMMeasuredSignalType): type_ = "https://openminds.om-i.org/types/MeasuredSignalType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/meta_data_model_type.py b/fairgraph/openminds/v5/controlled_terms/meta_data_model_type.py index 6c46c6ba..5810dd5a 100644 --- a/fairgraph/openminds/v5/controlled_terms/meta_data_model_type.py +++ b/fairgraph/openminds/v5/controlled_terms/meta_data_model_type.py @@ -19,7 +19,7 @@ class MetaDataModelType(KGObject, OMMetaDataModelType): type_ = "https://openminds.om-i.org/types/MetaDataModelType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/model_abstraction_level.py b/fairgraph/openminds/v5/controlled_terms/model_abstraction_level.py index ca362e0b..e98a2cad 100644 --- a/fairgraph/openminds/v5/controlled_terms/model_abstraction_level.py +++ b/fairgraph/openminds/v5/controlled_terms/model_abstraction_level.py @@ -19,7 +19,7 @@ class ModelAbstractionLevel(KGObject, OMModelAbstractionLevel): type_ = "https://openminds.om-i.org/types/ModelAbstractionLevel" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/model_scope.py b/fairgraph/openminds/v5/controlled_terms/model_scope.py index 5175052f..c81956fe 100644 --- a/fairgraph/openminds/v5/controlled_terms/model_scope.py +++ b/fairgraph/openminds/v5/controlled_terms/model_scope.py @@ -19,7 +19,7 @@ class ModelScope(KGObject, OMModelScope): type_ = "https://openminds.om-i.org/types/ModelScope" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/modification_consent_requirement.py b/fairgraph/openminds/v5/controlled_terms/modification_consent_requirement.py index 2d05355f..f75902bf 100644 --- a/fairgraph/openminds/v5/controlled_terms/modification_consent_requirement.py +++ b/fairgraph/openminds/v5/controlled_terms/modification_consent_requirement.py @@ -19,7 +19,7 @@ class ModificationConsentRequirement(KGObject, OMModificationConsentRequirement) type_ = "https://openminds.om-i.org/types/ModificationConsentRequirement" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/modification_constraint.py b/fairgraph/openminds/v5/controlled_terms/modification_constraint.py index b8e7819e..e842f2c6 100644 --- a/fairgraph/openminds/v5/controlled_terms/modification_constraint.py +++ b/fairgraph/openminds/v5/controlled_terms/modification_constraint.py @@ -19,7 +19,7 @@ class ModificationConstraint(KGObject, OMModificationConstraint): type_ = "https://openminds.om-i.org/types/ModificationConstraint" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/modification_form.py b/fairgraph/openminds/v5/controlled_terms/modification_form.py index a824e7bc..6ed33e03 100644 --- a/fairgraph/openminds/v5/controlled_terms/modification_form.py +++ b/fairgraph/openminds/v5/controlled_terms/modification_form.py @@ -19,7 +19,7 @@ class ModificationForm(KGObject, OMModificationForm): type_ = "https://openminds.om-i.org/types/ModificationForm" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/modification_scope.py b/fairgraph/openminds/v5/controlled_terms/modification_scope.py index de28f174..222bcc60 100644 --- a/fairgraph/openminds/v5/controlled_terms/modification_scope.py +++ b/fairgraph/openminds/v5/controlled_terms/modification_scope.py @@ -19,7 +19,7 @@ class ModificationScope(KGObject, OMModificationScope): type_ = "https://openminds.om-i.org/types/ModificationScope" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/molecular_entity.py b/fairgraph/openminds/v5/controlled_terms/molecular_entity.py index da537484..6bc7004a 100644 --- a/fairgraph/openminds/v5/controlled_terms/molecular_entity.py +++ b/fairgraph/openminds/v5/controlled_terms/molecular_entity.py @@ -19,7 +19,7 @@ class MolecularEntity(KGObject, OMMolecularEntity): type_ = "https://openminds.om-i.org/types/MolecularEntity" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/mri_fat_suppression_technique.py b/fairgraph/openminds/v5/controlled_terms/mri_fat_suppression_technique.py index e5ee41c5..247892e2 100644 --- a/fairgraph/openminds/v5/controlled_terms/mri_fat_suppression_technique.py +++ b/fairgraph/openminds/v5/controlled_terms/mri_fat_suppression_technique.py @@ -19,7 +19,7 @@ class MRIFatSuppressionTechnique(KGObject, OMMRIFatSuppressionTechnique): type_ = "https://openminds.om-i.org/types/MRIFatSuppressionTechnique" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/mri_parallel_acquisition_technique.py b/fairgraph/openminds/v5/controlled_terms/mri_parallel_acquisition_technique.py index 065050c3..9f067eab 100644 --- a/fairgraph/openminds/v5/controlled_terms/mri_parallel_acquisition_technique.py +++ b/fairgraph/openminds/v5/controlled_terms/mri_parallel_acquisition_technique.py @@ -19,7 +19,7 @@ class MRIParallelAcquisitionTechnique(KGObject, OMMRIParallelAcquisitionTechniqu type_ = "https://openminds.om-i.org/types/MRIParallelAcquisitionTechnique" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/mri_pulse_sequence.py b/fairgraph/openminds/v5/controlled_terms/mri_pulse_sequence.py index bf7a9c2d..f4d6eba6 100644 --- a/fairgraph/openminds/v5/controlled_terms/mri_pulse_sequence.py +++ b/fairgraph/openminds/v5/controlled_terms/mri_pulse_sequence.py @@ -19,7 +19,7 @@ class MRIPulseSequence(KGObject, OMMRIPulseSequence): type_ = "https://openminds.om-i.org/types/MRIPulseSequence" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/mri_spoiling_technique.py b/fairgraph/openminds/v5/controlled_terms/mri_spoiling_technique.py index a0db3e88..c7b5bc52 100644 --- a/fairgraph/openminds/v5/controlled_terms/mri_spoiling_technique.py +++ b/fairgraph/openminds/v5/controlled_terms/mri_spoiling_technique.py @@ -19,7 +19,7 @@ class MRISpoilingTechnique(KGObject, OMMRISpoilingTechnique): type_ = "https://openminds.om-i.org/types/MRISpoilingTechnique" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/mri_weighting.py b/fairgraph/openminds/v5/controlled_terms/mri_weighting.py index 96fcc89c..900307a0 100644 --- a/fairgraph/openminds/v5/controlled_terms/mri_weighting.py +++ b/fairgraph/openminds/v5/controlled_terms/mri_weighting.py @@ -19,7 +19,7 @@ class MRIWeighting(KGObject, OMMRIWeighting): type_ = "https://openminds.om-i.org/types/MRIWeighting" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/muscular_structure.py b/fairgraph/openminds/v5/controlled_terms/muscular_structure.py index d67f3d77..f2f8dd0e 100644 --- a/fairgraph/openminds/v5/controlled_terms/muscular_structure.py +++ b/fairgraph/openminds/v5/controlled_terms/muscular_structure.py @@ -19,7 +19,7 @@ class MuscularStructure(KGObject, OMMuscularStructure): type_ = "https://openminds.om-i.org/types/MuscularStructure" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/nervous_system_structure.py b/fairgraph/openminds/v5/controlled_terms/nervous_system_structure.py index 7fd75ead..32cec8f7 100644 --- a/fairgraph/openminds/v5/controlled_terms/nervous_system_structure.py +++ b/fairgraph/openminds/v5/controlled_terms/nervous_system_structure.py @@ -19,7 +19,7 @@ class NervousSystemStructure(KGObject, OMNervousSystemStructure): type_ = "https://openminds.om-i.org/types/NervousSystemStructure" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/olfactory_stimulus_type.py b/fairgraph/openminds/v5/controlled_terms/olfactory_stimulus_type.py index d0d43eec..8485739a 100644 --- a/fairgraph/openminds/v5/controlled_terms/olfactory_stimulus_type.py +++ b/fairgraph/openminds/v5/controlled_terms/olfactory_stimulus_type.py @@ -19,7 +19,7 @@ class OlfactoryStimulusType(KGObject, OMOlfactoryStimulusType): type_ = "https://openminds.om-i.org/types/OlfactoryStimulusType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/operating_device.py b/fairgraph/openminds/v5/controlled_terms/operating_device.py index 58f57cd7..f4bcb2c5 100644 --- a/fairgraph/openminds/v5/controlled_terms/operating_device.py +++ b/fairgraph/openminds/v5/controlled_terms/operating_device.py @@ -19,7 +19,7 @@ class OperatingDevice(KGObject, OMOperatingDevice): type_ = "https://openminds.om-i.org/types/OperatingDevice" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/operating_system.py b/fairgraph/openminds/v5/controlled_terms/operating_system.py index ec8e1309..39f21bf8 100644 --- a/fairgraph/openminds/v5/controlled_terms/operating_system.py +++ b/fairgraph/openminds/v5/controlled_terms/operating_system.py @@ -19,7 +19,7 @@ class OperatingSystem(KGObject, OMOperatingSystem): type_ = "https://openminds.om-i.org/types/OperatingSystem" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/operational_approach.py b/fairgraph/openminds/v5/controlled_terms/operational_approach.py index db88e110..5b285357 100644 --- a/fairgraph/openminds/v5/controlled_terms/operational_approach.py +++ b/fairgraph/openminds/v5/controlled_terms/operational_approach.py @@ -19,7 +19,7 @@ class OperationalApproach(KGObject, OMOperationalApproach): type_ = "https://openminds.om-i.org/types/OperationalApproach" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/optical_stimulus_type.py b/fairgraph/openminds/v5/controlled_terms/optical_stimulus_type.py index 8deb7c7b..15a57474 100644 --- a/fairgraph/openminds/v5/controlled_terms/optical_stimulus_type.py +++ b/fairgraph/openminds/v5/controlled_terms/optical_stimulus_type.py @@ -19,7 +19,7 @@ class OpticalStimulusType(KGObject, OMOpticalStimulusType): type_ = "https://openminds.om-i.org/types/OpticalStimulusType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/organ.py b/fairgraph/openminds/v5/controlled_terms/organ.py index 3ffb0a75..78abefef 100644 --- a/fairgraph/openminds/v5/controlled_terms/organ.py +++ b/fairgraph/openminds/v5/controlled_terms/organ.py @@ -19,7 +19,7 @@ class Organ(KGObject, OMOrgan): type_ = "https://openminds.om-i.org/types/Organ" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/organ_system_structure.py b/fairgraph/openminds/v5/controlled_terms/organ_system_structure.py index ad615df6..d2cbc0a8 100644 --- a/fairgraph/openminds/v5/controlled_terms/organ_system_structure.py +++ b/fairgraph/openminds/v5/controlled_terms/organ_system_structure.py @@ -19,7 +19,7 @@ class OrganSystemStructure(KGObject, OMOrganSystemStructure): type_ = "https://openminds.om-i.org/types/OrganSystemStructure" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/organism_substance.py b/fairgraph/openminds/v5/controlled_terms/organism_substance.py index f19f1f10..35617b78 100644 --- a/fairgraph/openminds/v5/controlled_terms/organism_substance.py +++ b/fairgraph/openminds/v5/controlled_terms/organism_substance.py @@ -19,7 +19,7 @@ class OrganismSubstance(KGObject, OMOrganismSubstance): type_ = "https://openminds.om-i.org/types/OrganismSubstance" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/organism_system.py b/fairgraph/openminds/v5/controlled_terms/organism_system.py index 6b745299..89faa03b 100644 --- a/fairgraph/openminds/v5/controlled_terms/organism_system.py +++ b/fairgraph/openminds/v5/controlled_terms/organism_system.py @@ -19,7 +19,7 @@ class OrganismSystem(KGObject, OMOrganismSystem): type_ = "https://openminds.om-i.org/types/OrganismSystem" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/organization_type.py b/fairgraph/openminds/v5/controlled_terms/organization_type.py index 8cd45ff2..542a30cf 100644 --- a/fairgraph/openminds/v5/controlled_terms/organization_type.py +++ b/fairgraph/openminds/v5/controlled_terms/organization_type.py @@ -19,7 +19,7 @@ class OrganizationType(KGObject, OMOrganizationType): type_ = "https://openminds.om-i.org/types/OrganizationType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/patch_clamp_variation.py b/fairgraph/openminds/v5/controlled_terms/patch_clamp_variation.py index 2b039320..d771d430 100644 --- a/fairgraph/openminds/v5/controlled_terms/patch_clamp_variation.py +++ b/fairgraph/openminds/v5/controlled_terms/patch_clamp_variation.py @@ -19,7 +19,7 @@ class PatchClampVariation(KGObject, OMPatchClampVariation): type_ = "https://openminds.om-i.org/types/PatchClampVariation" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/payment_model_type.py b/fairgraph/openminds/v5/controlled_terms/payment_model_type.py index 32c00921..27ada35a 100644 --- a/fairgraph/openminds/v5/controlled_terms/payment_model_type.py +++ b/fairgraph/openminds/v5/controlled_terms/payment_model_type.py @@ -19,7 +19,7 @@ class PaymentModelType(KGObject, OMPaymentModelType): type_ = "https://openminds.om-i.org/types/PaymentModelType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/preparation_type.py b/fairgraph/openminds/v5/controlled_terms/preparation_type.py index 72f0a86e..2b7d1f44 100644 --- a/fairgraph/openminds/v5/controlled_terms/preparation_type.py +++ b/fairgraph/openminds/v5/controlled_terms/preparation_type.py @@ -19,7 +19,7 @@ class PreparationType(KGObject, OMPreparationType): type_ = "https://openminds.om-i.org/types/PreparationType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/programming_language.py b/fairgraph/openminds/v5/controlled_terms/programming_language.py index f976d4fc..0768189a 100644 --- a/fairgraph/openminds/v5/controlled_terms/programming_language.py +++ b/fairgraph/openminds/v5/controlled_terms/programming_language.py @@ -19,7 +19,7 @@ class ProgrammingLanguage(KGObject, OMProgrammingLanguage): type_ = "https://openminds.om-i.org/types/ProgrammingLanguage" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/project_type.py b/fairgraph/openminds/v5/controlled_terms/project_type.py index 93442ff3..2634c0af 100644 --- a/fairgraph/openminds/v5/controlled_terms/project_type.py +++ b/fairgraph/openminds/v5/controlled_terms/project_type.py @@ -19,7 +19,7 @@ class ProjectType(KGObject, OMProjectType): type_ = "https://openminds.om-i.org/types/ProjectType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/publication_status.py b/fairgraph/openminds/v5/controlled_terms/publication_status.py index 5687aa8a..311122aa 100644 --- a/fairgraph/openminds/v5/controlled_terms/publication_status.py +++ b/fairgraph/openminds/v5/controlled_terms/publication_status.py @@ -19,7 +19,7 @@ class PublicationStatus(KGObject, OMPublicationStatus): type_ = "https://openminds.om-i.org/types/PublicationStatus" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/pulse_shape.py b/fairgraph/openminds/v5/controlled_terms/pulse_shape.py index 7b7cc33d..cda884d9 100644 --- a/fairgraph/openminds/v5/controlled_terms/pulse_shape.py +++ b/fairgraph/openminds/v5/controlled_terms/pulse_shape.py @@ -19,7 +19,7 @@ class PulseShape(KGObject, OMPulseShape): type_ = "https://openminds.om-i.org/types/PulseShape" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/qualitative_overlap.py b/fairgraph/openminds/v5/controlled_terms/qualitative_overlap.py index fb80efa7..6a87d3de 100644 --- a/fairgraph/openminds/v5/controlled_terms/qualitative_overlap.py +++ b/fairgraph/openminds/v5/controlled_terms/qualitative_overlap.py @@ -19,7 +19,7 @@ class QualitativeOverlap(KGObject, OMQualitativeOverlap): type_ = "https://openminds.om-i.org/types/QualitativeOverlap" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/semantic_data_type.py b/fairgraph/openminds/v5/controlled_terms/semantic_data_type.py index 4c585a58..7df59f45 100644 --- a/fairgraph/openminds/v5/controlled_terms/semantic_data_type.py +++ b/fairgraph/openminds/v5/controlled_terms/semantic_data_type.py @@ -19,7 +19,7 @@ class SemanticDataType(KGObject, OMSemanticDataType): type_ = "https://openminds.om-i.org/types/SemanticDataType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/setup_type.py b/fairgraph/openminds/v5/controlled_terms/setup_type.py index b149c221..5bab4bb5 100644 --- a/fairgraph/openminds/v5/controlled_terms/setup_type.py +++ b/fairgraph/openminds/v5/controlled_terms/setup_type.py @@ -19,7 +19,7 @@ class SetupType(KGObject, OMSetupType): type_ = "https://openminds.om-i.org/types/SetupType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/signal_directionality.py b/fairgraph/openminds/v5/controlled_terms/signal_directionality.py index bbd38fba..6099b02e 100644 --- a/fairgraph/openminds/v5/controlled_terms/signal_directionality.py +++ b/fairgraph/openminds/v5/controlled_terms/signal_directionality.py @@ -19,7 +19,7 @@ class SignalDirectionality(KGObject, OMSignalDirectionality): type_ = "https://openminds.om-i.org/types/SignalDirectionality" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/skeletal_structure.py b/fairgraph/openminds/v5/controlled_terms/skeletal_structure.py index c32ee64e..6bf5a39d 100644 --- a/fairgraph/openminds/v5/controlled_terms/skeletal_structure.py +++ b/fairgraph/openminds/v5/controlled_terms/skeletal_structure.py @@ -19,7 +19,7 @@ class SkeletalStructure(KGObject, OMSkeletalStructure): type_ = "https://openminds.om-i.org/types/SkeletalStructure" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/software_application_category.py b/fairgraph/openminds/v5/controlled_terms/software_application_category.py index 199f1164..8b9def51 100644 --- a/fairgraph/openminds/v5/controlled_terms/software_application_category.py +++ b/fairgraph/openminds/v5/controlled_terms/software_application_category.py @@ -19,7 +19,7 @@ class SoftwareApplicationCategory(KGObject, OMSoftwareApplicationCategory): type_ = "https://openminds.om-i.org/types/SoftwareApplicationCategory" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/software_feature.py b/fairgraph/openminds/v5/controlled_terms/software_feature.py index 32a11d5c..1aced852 100644 --- a/fairgraph/openminds/v5/controlled_terms/software_feature.py +++ b/fairgraph/openminds/v5/controlled_terms/software_feature.py @@ -19,7 +19,7 @@ class SoftwareFeature(KGObject, OMSoftwareFeature): type_ = "https://openminds.om-i.org/types/SoftwareFeature" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/sovereign_state.py b/fairgraph/openminds/v5/controlled_terms/sovereign_state.py index bd388f6f..8150ab99 100644 --- a/fairgraph/openminds/v5/controlled_terms/sovereign_state.py +++ b/fairgraph/openminds/v5/controlled_terms/sovereign_state.py @@ -19,7 +19,7 @@ class SovereignState(KGObject, OMSovereignState): type_ = "https://openminds.om-i.org/types/SovereignState" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/spatial_encoding.py b/fairgraph/openminds/v5/controlled_terms/spatial_encoding.py index d40fe4a1..f4872f10 100644 --- a/fairgraph/openminds/v5/controlled_terms/spatial_encoding.py +++ b/fairgraph/openminds/v5/controlled_terms/spatial_encoding.py @@ -19,7 +19,7 @@ class SpatialEncoding(KGObject, OMSpatialEncoding): type_ = "https://openminds.om-i.org/types/SpatialEncoding" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/species.py b/fairgraph/openminds/v5/controlled_terms/species.py index 86295de7..447a2cb8 100644 --- a/fairgraph/openminds/v5/controlled_terms/species.py +++ b/fairgraph/openminds/v5/controlled_terms/species.py @@ -19,7 +19,7 @@ class Species(KGObject, OMSpecies): type_ = "https://openminds.om-i.org/types/Species" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/stimulation_approach.py b/fairgraph/openminds/v5/controlled_terms/stimulation_approach.py index fef1e77c..ed9fde3b 100644 --- a/fairgraph/openminds/v5/controlled_terms/stimulation_approach.py +++ b/fairgraph/openminds/v5/controlled_terms/stimulation_approach.py @@ -19,7 +19,7 @@ class StimulationApproach(KGObject, OMStimulationApproach): type_ = "https://openminds.om-i.org/types/StimulationApproach" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/stimulation_technique.py b/fairgraph/openminds/v5/controlled_terms/stimulation_technique.py index be76505b..2bf88ca6 100644 --- a/fairgraph/openminds/v5/controlled_terms/stimulation_technique.py +++ b/fairgraph/openminds/v5/controlled_terms/stimulation_technique.py @@ -19,7 +19,7 @@ class StimulationTechnique(KGObject, OMStimulationTechnique): type_ = "https://openminds.om-i.org/types/StimulationTechnique" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/subcellular_entity.py b/fairgraph/openminds/v5/controlled_terms/subcellular_entity.py index 43a46a99..ef8e720c 100644 --- a/fairgraph/openminds/v5/controlled_terms/subcellular_entity.py +++ b/fairgraph/openminds/v5/controlled_terms/subcellular_entity.py @@ -19,7 +19,7 @@ class SubcellularEntity(KGObject, OMSubcellularEntity): type_ = "https://openminds.om-i.org/types/SubcellularEntity" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/subject_attribute.py b/fairgraph/openminds/v5/controlled_terms/subject_attribute.py index d9e29379..a85f6b18 100644 --- a/fairgraph/openminds/v5/controlled_terms/subject_attribute.py +++ b/fairgraph/openminds/v5/controlled_terms/subject_attribute.py @@ -19,7 +19,7 @@ class SubjectAttribute(KGObject, OMSubjectAttribute): type_ = "https://openminds.om-i.org/types/SubjectAttribute" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/supranational_body.py b/fairgraph/openminds/v5/controlled_terms/supranational_body.py index fbb40ce8..059497bc 100644 --- a/fairgraph/openminds/v5/controlled_terms/supranational_body.py +++ b/fairgraph/openminds/v5/controlled_terms/supranational_body.py @@ -19,7 +19,7 @@ class SupranationalBody(KGObject, OMSupranationalBody): type_ = "https://openminds.om-i.org/types/SupranationalBody" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/tactile_stimulus_type.py b/fairgraph/openminds/v5/controlled_terms/tactile_stimulus_type.py index 36ba2f3d..ee4e9d1f 100644 --- a/fairgraph/openminds/v5/controlled_terms/tactile_stimulus_type.py +++ b/fairgraph/openminds/v5/controlled_terms/tactile_stimulus_type.py @@ -19,7 +19,7 @@ class TactileStimulusType(KGObject, OMTactileStimulusType): type_ = "https://openminds.om-i.org/types/TactileStimulusType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/technique.py b/fairgraph/openminds/v5/controlled_terms/technique.py index 754a45a9..2250f0a9 100644 --- a/fairgraph/openminds/v5/controlled_terms/technique.py +++ b/fairgraph/openminds/v5/controlled_terms/technique.py @@ -19,7 +19,7 @@ class Technique(KGObject, OMTechnique): type_ = "https://openminds.om-i.org/types/Technique" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/term_suggestion.py b/fairgraph/openminds/v5/controlled_terms/term_suggestion.py index 54953b4d..ee4143e4 100644 --- a/fairgraph/openminds/v5/controlled_terms/term_suggestion.py +++ b/fairgraph/openminds/v5/controlled_terms/term_suggestion.py @@ -19,7 +19,7 @@ class TermSuggestion(KGObject, OMTermSuggestion): type_ = "https://openminds.om-i.org/types/TermSuggestion" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/terminology.py b/fairgraph/openminds/v5/controlled_terms/terminology.py index b2481db6..5844bd72 100644 --- a/fairgraph/openminds/v5/controlled_terms/terminology.py +++ b/fairgraph/openminds/v5/controlled_terms/terminology.py @@ -19,7 +19,7 @@ class Terminology(KGObject, OMTerminology): type_ = "https://openminds.om-i.org/types/Terminology" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/tissue_sample_attribute.py b/fairgraph/openminds/v5/controlled_terms/tissue_sample_attribute.py index 7dbdacac..ec17302d 100644 --- a/fairgraph/openminds/v5/controlled_terms/tissue_sample_attribute.py +++ b/fairgraph/openminds/v5/controlled_terms/tissue_sample_attribute.py @@ -19,7 +19,7 @@ class TissueSampleAttribute(KGObject, OMTissueSampleAttribute): type_ = "https://openminds.om-i.org/types/TissueSampleAttribute" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/tissue_sample_type.py b/fairgraph/openminds/v5/controlled_terms/tissue_sample_type.py index fe86b630..f1906401 100644 --- a/fairgraph/openminds/v5/controlled_terms/tissue_sample_type.py +++ b/fairgraph/openminds/v5/controlled_terms/tissue_sample_type.py @@ -19,7 +19,7 @@ class TissueSampleType(KGObject, OMTissueSampleType): type_ = "https://openminds.om-i.org/types/TissueSampleType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/tissue_structure.py b/fairgraph/openminds/v5/controlled_terms/tissue_structure.py index e539f808..3b44e4c1 100644 --- a/fairgraph/openminds/v5/controlled_terms/tissue_structure.py +++ b/fairgraph/openminds/v5/controlled_terms/tissue_structure.py @@ -19,7 +19,7 @@ class TissueStructure(KGObject, OMTissueStructure): type_ = "https://openminds.om-i.org/types/TissueStructure" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/type_of_uncertainty.py b/fairgraph/openminds/v5/controlled_terms/type_of_uncertainty.py index 632936d6..f2ed5253 100644 --- a/fairgraph/openminds/v5/controlled_terms/type_of_uncertainty.py +++ b/fairgraph/openminds/v5/controlled_terms/type_of_uncertainty.py @@ -19,7 +19,7 @@ class TypeOfUncertainty(KGObject, OMTypeOfUncertainty): type_ = "https://openminds.om-i.org/types/TypeOfUncertainty" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/unit_of_measurement.py b/fairgraph/openminds/v5/controlled_terms/unit_of_measurement.py index f0d0289a..61223f06 100644 --- a/fairgraph/openminds/v5/controlled_terms/unit_of_measurement.py +++ b/fairgraph/openminds/v5/controlled_terms/unit_of_measurement.py @@ -19,7 +19,7 @@ class UnitOfMeasurement(KGObject, OMUnitOfMeasurement): type_ = "https://openminds.om-i.org/types/UnitOfMeasurement" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/vascular_structure.py b/fairgraph/openminds/v5/controlled_terms/vascular_structure.py index 70e5efe7..be152bae 100644 --- a/fairgraph/openminds/v5/controlled_terms/vascular_structure.py +++ b/fairgraph/openminds/v5/controlled_terms/vascular_structure.py @@ -19,7 +19,7 @@ class VascularStructure(KGObject, OMVascularStructure): type_ = "https://openminds.om-i.org/types/VascularStructure" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/visual_stimulus_type.py b/fairgraph/openminds/v5/controlled_terms/visual_stimulus_type.py index 6875189b..36f82911 100644 --- a/fairgraph/openminds/v5/controlled_terms/visual_stimulus_type.py +++ b/fairgraph/openminds/v5/controlled_terms/visual_stimulus_type.py @@ -19,7 +19,7 @@ class VisualStimulusType(KGObject, OMVisualStimulusType): type_ = "https://openminds.om-i.org/types/VisualStimulusType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/controlled_terms/weight_type.py b/fairgraph/openminds/v5/controlled_terms/weight_type.py index 126d6daf..41c3e53f 100644 --- a/fairgraph/openminds/v5/controlled_terms/weight_type.py +++ b/fairgraph/openminds/v5/controlled_terms/weight_type.py @@ -19,7 +19,7 @@ class WeightType(KGObject, OMWeightType): type_ = "https://openminds.om-i.org/types/WeightType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/actors/account_information.py b/fairgraph/openminds/v5/core/actors/account_information.py index efcaa041..f3654a52 100644 --- a/fairgraph/openminds/v5/core/actors/account_information.py +++ b/fairgraph/openminds/v5/core/actors/account_information.py @@ -16,7 +16,7 @@ class AccountInformation(KGObject, OMAccountInformation): type_ = "https://openminds.om-i.org/types/AccountInformation" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/actors/affiliation.py b/fairgraph/openminds/v5/core/actors/affiliation.py index 71e78f61..aed891de 100644 --- a/fairgraph/openminds/v5/core/actors/affiliation.py +++ b/fairgraph/openminds/v5/core/actors/affiliation.py @@ -15,7 +15,7 @@ class Affiliation(KGEmbedded, OMAffiliation): """ type_ = "https://openminds.om-i.org/types/Affiliation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("organizations", "person") diff --git a/fairgraph/openminds/v5/core/actors/consortium.py b/fairgraph/openminds/v5/core/actors/consortium.py index aebf5016..9ec73641 100644 --- a/fairgraph/openminds/v5/core/actors/consortium.py +++ b/fairgraph/openminds/v5/core/actors/consortium.py @@ -19,7 +19,7 @@ class Consortium(KGObject, OMConsortium): type_ = "https://openminds.om-i.org/types/Consortium" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/actors/contact_information.py b/fairgraph/openminds/v5/core/actors/contact_information.py index 4e5fb1e9..1accc4ad 100644 --- a/fairgraph/openminds/v5/core/actors/contact_information.py +++ b/fairgraph/openminds/v5/core/actors/contact_information.py @@ -16,7 +16,7 @@ class ContactInformation(KGObject, OMContactInformation): type_ = "https://openminds.om-i.org/types/ContactInformation" default_space = "restricted" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/actors/contribution.py b/fairgraph/openminds/v5/core/actors/contribution.py index 2b3c5718..dccbe07c 100644 --- a/fairgraph/openminds/v5/core/actors/contribution.py +++ b/fairgraph/openminds/v5/core/actors/contribution.py @@ -15,7 +15,7 @@ class Contribution(KGEmbedded, OMContribution): """ type_ = "https://openminds.om-i.org/types/Contribution" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("contributors", "type") diff --git a/fairgraph/openminds/v5/core/actors/organization.py b/fairgraph/openminds/v5/core/actors/organization.py index 8f698bd3..a3a7aa3a 100644 --- a/fairgraph/openminds/v5/core/actors/organization.py +++ b/fairgraph/openminds/v5/core/actors/organization.py @@ -19,7 +19,7 @@ class Organization(KGObject, OMOrganization): type_ = "https://openminds.om-i.org/types/Organization" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/actors/person.py b/fairgraph/openminds/v5/core/actors/person.py index da262b22..2e6f3b58 100644 --- a/fairgraph/openminds/v5/core/actors/person.py +++ b/fairgraph/openminds/v5/core/actors/person.py @@ -16,7 +16,7 @@ class Person(KGObject, OMPerson): type_ = "https://openminds.om-i.org/types/Person" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "familyName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/data/channel.py b/fairgraph/openminds/v5/core/data/channel.py index 30a946c9..4f10f4b7 100644 --- a/fairgraph/openminds/v5/core/data/channel.py +++ b/fairgraph/openminds/v5/core/data/channel.py @@ -15,7 +15,7 @@ class Channel(KGEmbedded, OMChannel): """ type_ = "https://openminds.om-i.org/types/Channel" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("internal_identifier", "unit") diff --git a/fairgraph/openminds/v5/core/data/content_type.py b/fairgraph/openminds/v5/core/data/content_type.py index fbe6577e..5f947699 100644 --- a/fairgraph/openminds/v5/core/data/content_type.py +++ b/fairgraph/openminds/v5/core/data/content_type.py @@ -19,7 +19,7 @@ class ContentType(KGObject, OMContentType): type_ = "https://openminds.om-i.org/types/ContentType" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/data/content_type_pattern.py b/fairgraph/openminds/v5/core/data/content_type_pattern.py index 4751aced..bf870836 100644 --- a/fairgraph/openminds/v5/core/data/content_type_pattern.py +++ b/fairgraph/openminds/v5/core/data/content_type_pattern.py @@ -16,7 +16,7 @@ class ContentTypePattern(KGObject, OMContentTypePattern): type_ = "https://openminds.om-i.org/types/ContentTypePattern" default_space = "files" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/data/copyright.py b/fairgraph/openminds/v5/core/data/copyright.py index d21f4d9d..5db22187 100644 --- a/fairgraph/openminds/v5/core/data/copyright.py +++ b/fairgraph/openminds/v5/core/data/copyright.py @@ -15,7 +15,7 @@ class Copyright(KGEmbedded, OMCopyright): """ type_ = "https://openminds.om-i.org/types/Copyright" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("holders", "years") diff --git a/fairgraph/openminds/v5/core/data/file.py b/fairgraph/openminds/v5/core/data/file.py index 821cc66c..daa3764e 100644 --- a/fairgraph/openminds/v5/core/data/file.py +++ b/fairgraph/openminds/v5/core/data/file.py @@ -30,7 +30,7 @@ class File(KGObject, OMFile): type_ = "https://openminds.om-i.org/types/File" default_space = "files" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/data/file_archive.py b/fairgraph/openminds/v5/core/data/file_archive.py index d46e366c..e0262012 100644 --- a/fairgraph/openminds/v5/core/data/file_archive.py +++ b/fairgraph/openminds/v5/core/data/file_archive.py @@ -19,7 +19,7 @@ class FileArchive(KGObject, OMFileArchive): type_ = "https://openminds.om-i.org/types/FileArchive" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/data/file_bundle.py b/fairgraph/openminds/v5/core/data/file_bundle.py index a36bccd0..40bfb04b 100644 --- a/fairgraph/openminds/v5/core/data/file_bundle.py +++ b/fairgraph/openminds/v5/core/data/file_bundle.py @@ -16,7 +16,7 @@ class FileBundle(KGObject, OMFileBundle): type_ = "https://openminds.om-i.org/types/FileBundle" default_space = "files" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/data/file_path_pattern.py b/fairgraph/openminds/v5/core/data/file_path_pattern.py index 8c73aeb8..a3a4ff48 100644 --- a/fairgraph/openminds/v5/core/data/file_path_pattern.py +++ b/fairgraph/openminds/v5/core/data/file_path_pattern.py @@ -15,7 +15,7 @@ class FilePathPattern(KGEmbedded, OMFilePathPattern): """ type_ = "https://openminds.om-i.org/types/FilePathPattern" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("grouping_types", "regex") diff --git a/fairgraph/openminds/v5/core/data/file_repository.py b/fairgraph/openminds/v5/core/data/file_repository.py index ce64dad5..52de096e 100644 --- a/fairgraph/openminds/v5/core/data/file_repository.py +++ b/fairgraph/openminds/v5/core/data/file_repository.py @@ -19,7 +19,7 @@ class FileRepository(KGObject, OMFileRepository): type_ = "https://openminds.om-i.org/types/FileRepository" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/data/file_repository_structure.py b/fairgraph/openminds/v5/core/data/file_repository_structure.py index 59c7c256..b49c0f71 100644 --- a/fairgraph/openminds/v5/core/data/file_repository_structure.py +++ b/fairgraph/openminds/v5/core/data/file_repository_structure.py @@ -16,7 +16,7 @@ class FileRepositoryStructure(KGObject, OMFileRepositoryStructure): type_ = "https://openminds.om-i.org/types/FileRepositoryStructure" default_space = "files" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/data/grid_image.py b/fairgraph/openminds/v5/core/data/grid_image.py index c314e65f..bc420f8a 100644 --- a/fairgraph/openminds/v5/core/data/grid_image.py +++ b/fairgraph/openminds/v5/core/data/grid_image.py @@ -16,7 +16,7 @@ class GridImage(KGObject, OMGridImage): type_ = "https://openminds.om-i.org/types/GridImage" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("data_location", "dimensions", "pixel_sizes") diff --git a/fairgraph/openminds/v5/core/data/grid_image_sequence.py b/fairgraph/openminds/v5/core/data/grid_image_sequence.py index 5894ca82..bdf8b001 100644 --- a/fairgraph/openminds/v5/core/data/grid_image_sequence.py +++ b/fairgraph/openminds/v5/core/data/grid_image_sequence.py @@ -16,7 +16,7 @@ class GridImageSequence(KGObject, OMGridImageSequence): type_ = "https://openminds.om-i.org/types/GridImageSequence" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("data_location", "dimensions", "pixel_sizes", "temporal_sampling_frequency") diff --git a/fairgraph/openminds/v5/core/data/grid_image_stack.py b/fairgraph/openminds/v5/core/data/grid_image_stack.py index 45d8da6c..08ecda54 100644 --- a/fairgraph/openminds/v5/core/data/grid_image_stack.py +++ b/fairgraph/openminds/v5/core/data/grid_image_stack.py @@ -16,7 +16,7 @@ class GridImageStack(KGObject, OMGridImageStack): type_ = "https://openminds.om-i.org/types/GridImageStack" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("data_location", "dimensions", "pixel_sizes", "z_step_size") diff --git a/fairgraph/openminds/v5/core/data/grid_volume.py b/fairgraph/openminds/v5/core/data/grid_volume.py index f1bab406..dbf5f7f3 100644 --- a/fairgraph/openminds/v5/core/data/grid_volume.py +++ b/fairgraph/openminds/v5/core/data/grid_volume.py @@ -16,7 +16,7 @@ class GridVolume(KGObject, OMGridVolume): type_ = "https://openminds.om-i.org/types/GridVolume" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("data_location", "dimensions", "voxel_sizes") diff --git a/fairgraph/openminds/v5/core/data/grid_volume_sequence.py b/fairgraph/openminds/v5/core/data/grid_volume_sequence.py index 9b89cf0f..9779d6a9 100644 --- a/fairgraph/openminds/v5/core/data/grid_volume_sequence.py +++ b/fairgraph/openminds/v5/core/data/grid_volume_sequence.py @@ -16,7 +16,7 @@ class GridVolumeSequence(KGObject, OMGridVolumeSequence): type_ = "https://openminds.om-i.org/types/GridVolumeSequence" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("data_location", "dimensions", "temporal_sampling_frequency", "voxel_sizes") diff --git a/fairgraph/openminds/v5/core/data/hash.py b/fairgraph/openminds/v5/core/data/hash.py index 426c6e75..00f9f9d9 100644 --- a/fairgraph/openminds/v5/core/data/hash.py +++ b/fairgraph/openminds/v5/core/data/hash.py @@ -15,7 +15,7 @@ class Hash(KGEmbedded, OMHash): """ type_ = "https://openminds.om-i.org/types/Hash" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("algorithm", "digest") diff --git a/fairgraph/openminds/v5/core/data/license.py b/fairgraph/openminds/v5/core/data/license.py index 5efb7c89..bbbb3b1a 100644 --- a/fairgraph/openminds/v5/core/data/license.py +++ b/fairgraph/openminds/v5/core/data/license.py @@ -19,7 +19,7 @@ class License(KGObject, OMLicense): type_ = "https://openminds.om-i.org/types/License" default_space = "controlled" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/data/local_file.py b/fairgraph/openminds/v5/core/data/local_file.py index 5f85a72a..8ec60ccf 100644 --- a/fairgraph/openminds/v5/core/data/local_file.py +++ b/fairgraph/openminds/v5/core/data/local_file.py @@ -16,7 +16,7 @@ class LocalFile(KGObject, OMLocalFile): type_ = "https://openminds.om-i.org/types/LocalFile" default_space = "files" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/data/measurement.py b/fairgraph/openminds/v5/core/data/measurement.py index befeceea..0fff2b39 100644 --- a/fairgraph/openminds/v5/core/data/measurement.py +++ b/fairgraph/openminds/v5/core/data/measurement.py @@ -18,7 +18,7 @@ class Measurement(KGEmbedded, OMMeasurement): """ type_ = "https://openminds.om-i.org/types/Measurement" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("measured_quantity", "values") diff --git a/fairgraph/openminds/v5/core/data/regular_time_series.py b/fairgraph/openminds/v5/core/data/regular_time_series.py index 18bfc359..03a1081a 100644 --- a/fairgraph/openminds/v5/core/data/regular_time_series.py +++ b/fairgraph/openminds/v5/core/data/regular_time_series.py @@ -16,7 +16,7 @@ class RegularTimeSeries(KGObject, OMRegularTimeSeries): type_ = "https://openminds.om-i.org/types/RegularTimeSeries" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/data/service_link.py b/fairgraph/openminds/v5/core/data/service_link.py index 89c7cdf6..96410ca9 100644 --- a/fairgraph/openminds/v5/core/data/service_link.py +++ b/fairgraph/openminds/v5/core/data/service_link.py @@ -19,7 +19,7 @@ class ServiceLink(KGObject, OMServiceLink): type_ = "https://openminds.om-i.org/types/ServiceLink" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("data_location", "open_data_in", "services") diff --git a/fairgraph/openminds/v5/core/data/usage_agreement.py b/fairgraph/openminds/v5/core/data/usage_agreement.py index dd9373db..0b081cca 100644 --- a/fairgraph/openminds/v5/core/data/usage_agreement.py +++ b/fairgraph/openminds/v5/core/data/usage_agreement.py @@ -16,7 +16,7 @@ class UsageAgreement(KGObject, OMUsageAgreement): type_ = "https://openminds.om-i.org/types/UsageAgreement" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/digital_identifier/doi.py b/fairgraph/openminds/v5/core/digital_identifier/doi.py index 04ea099a..0a65e5df 100644 --- a/fairgraph/openminds/v5/core/digital_identifier/doi.py +++ b/fairgraph/openminds/v5/core/digital_identifier/doi.py @@ -16,7 +16,7 @@ class DOI(KGObject, OMDOI): type_ = "https://openminds.om-i.org/types/DOI" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/digital_identifier/generic_identifier.py b/fairgraph/openminds/v5/core/digital_identifier/generic_identifier.py index f20cfbc8..672c671f 100644 --- a/fairgraph/openminds/v5/core/digital_identifier/generic_identifier.py +++ b/fairgraph/openminds/v5/core/digital_identifier/generic_identifier.py @@ -16,7 +16,7 @@ class GenericIdentifier(KGObject, OMGenericIdentifier): type_ = "https://openminds.om-i.org/types/GenericIdentifier" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/digital_identifier/handle.py b/fairgraph/openminds/v5/core/digital_identifier/handle.py index 77102460..47ee7541 100644 --- a/fairgraph/openminds/v5/core/digital_identifier/handle.py +++ b/fairgraph/openminds/v5/core/digital_identifier/handle.py @@ -16,7 +16,7 @@ class HANDLE(KGObject, OMHANDLE): type_ = "https://openminds.om-i.org/types/HANDLE" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/digital_identifier/identifiers_dot_org_id.py b/fairgraph/openminds/v5/core/digital_identifier/identifiers_dot_org_id.py index c6feab83..0b507da2 100644 --- a/fairgraph/openminds/v5/core/digital_identifier/identifiers_dot_org_id.py +++ b/fairgraph/openminds/v5/core/digital_identifier/identifiers_dot_org_id.py @@ -16,7 +16,7 @@ class IdentifiersDotOrgID(KGObject, OMIdentifiersDotOrgID): type_ = "https://openminds.om-i.org/types/IdentifiersDotOrgID" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/digital_identifier/isbn.py b/fairgraph/openminds/v5/core/digital_identifier/isbn.py index 299b1c43..78934df3 100644 --- a/fairgraph/openminds/v5/core/digital_identifier/isbn.py +++ b/fairgraph/openminds/v5/core/digital_identifier/isbn.py @@ -16,7 +16,7 @@ class ISBN(KGObject, OMISBN): type_ = "https://openminds.om-i.org/types/ISBN" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/digital_identifier/isni.py b/fairgraph/openminds/v5/core/digital_identifier/isni.py index df4c1a8e..52ba66ed 100644 --- a/fairgraph/openminds/v5/core/digital_identifier/isni.py +++ b/fairgraph/openminds/v5/core/digital_identifier/isni.py @@ -16,7 +16,7 @@ class ISNI(KGObject, OMISNI): type_ = "https://openminds.om-i.org/types/ISNI" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/digital_identifier/issn.py b/fairgraph/openminds/v5/core/digital_identifier/issn.py index 65033c74..1f0d5702 100644 --- a/fairgraph/openminds/v5/core/digital_identifier/issn.py +++ b/fairgraph/openminds/v5/core/digital_identifier/issn.py @@ -16,7 +16,7 @@ class ISSN(KGObject, OMISSN): type_ = "https://openminds.om-i.org/types/ISSN" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/digital_identifier/lei.py b/fairgraph/openminds/v5/core/digital_identifier/lei.py index 44c6e2b4..ac16ade3 100644 --- a/fairgraph/openminds/v5/core/digital_identifier/lei.py +++ b/fairgraph/openminds/v5/core/digital_identifier/lei.py @@ -16,7 +16,7 @@ class LEI(KGObject, OMLEI): type_ = "https://openminds.om-i.org/types/LEI" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/digital_identifier/orcid.py b/fairgraph/openminds/v5/core/digital_identifier/orcid.py index 6b1ae534..a920b502 100644 --- a/fairgraph/openminds/v5/core/digital_identifier/orcid.py +++ b/fairgraph/openminds/v5/core/digital_identifier/orcid.py @@ -16,7 +16,7 @@ class ORCID(KGObject, OMORCID): type_ = "https://openminds.om-i.org/types/ORCID" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/digital_identifier/rorid.py b/fairgraph/openminds/v5/core/digital_identifier/rorid.py index 8104f7ac..162e2e1a 100644 --- a/fairgraph/openminds/v5/core/digital_identifier/rorid.py +++ b/fairgraph/openminds/v5/core/digital_identifier/rorid.py @@ -16,7 +16,7 @@ class RORID(KGObject, OMRORID): type_ = "https://openminds.om-i.org/types/RORID" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/digital_identifier/rrid.py b/fairgraph/openminds/v5/core/digital_identifier/rrid.py index cc06d8f6..4afc81b6 100644 --- a/fairgraph/openminds/v5/core/digital_identifier/rrid.py +++ b/fairgraph/openminds/v5/core/digital_identifier/rrid.py @@ -16,7 +16,7 @@ class RRID(KGObject, OMRRID): type_ = "https://openminds.om-i.org/types/RRID" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/digital_identifier/stock_number.py b/fairgraph/openminds/v5/core/digital_identifier/stock_number.py index ca742cc6..17e516dc 100644 --- a/fairgraph/openminds/v5/core/digital_identifier/stock_number.py +++ b/fairgraph/openminds/v5/core/digital_identifier/stock_number.py @@ -15,7 +15,7 @@ class StockNumber(KGEmbedded, OMStockNumber): """ type_ = "https://openminds.om-i.org/types/StockNumber" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("identifier", "vendor") diff --git a/fairgraph/openminds/v5/core/digital_identifier/swhid.py b/fairgraph/openminds/v5/core/digital_identifier/swhid.py index cbf8f9ea..164a2357 100644 --- a/fairgraph/openminds/v5/core/digital_identifier/swhid.py +++ b/fairgraph/openminds/v5/core/digital_identifier/swhid.py @@ -16,7 +16,7 @@ class SWHID(KGObject, OMSWHID): type_ = "https://openminds.om-i.org/types/SWHID" default_space = "software" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/miscellaneous/accessibility.py b/fairgraph/openminds/v5/core/miscellaneous/accessibility.py index 72c30003..a7a6e1b9 100644 --- a/fairgraph/openminds/v5/core/miscellaneous/accessibility.py +++ b/fairgraph/openminds/v5/core/miscellaneous/accessibility.py @@ -16,7 +16,7 @@ class Accessibility(KGObject, OMAccessibility): type_ = "https://openminds.om-i.org/types/Accessibility" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/miscellaneous/comment.py b/fairgraph/openminds/v5/core/miscellaneous/comment.py index b6b2aa73..d5c4d879 100644 --- a/fairgraph/openminds/v5/core/miscellaneous/comment.py +++ b/fairgraph/openminds/v5/core/miscellaneous/comment.py @@ -19,7 +19,7 @@ class Comment(KGObject, OMComment): type_ = "https://openminds.om-i.org/types/Comment" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("about", "comment", "commenter", "timestamp") diff --git a/fairgraph/openminds/v5/core/miscellaneous/dependency.py b/fairgraph/openminds/v5/core/miscellaneous/dependency.py index 1e365ed1..84676add 100644 --- a/fairgraph/openminds/v5/core/miscellaneous/dependency.py +++ b/fairgraph/openminds/v5/core/miscellaneous/dependency.py @@ -15,7 +15,7 @@ class Dependency(KGEmbedded, OMDependency): """ type_ = "https://openminds.om-i.org/types/Dependency" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("fulfilled_by",) diff --git a/fairgraph/openminds/v5/core/miscellaneous/funding.py b/fairgraph/openminds/v5/core/miscellaneous/funding.py index 2b737279..1f1c72ee 100644 --- a/fairgraph/openminds/v5/core/miscellaneous/funding.py +++ b/fairgraph/openminds/v5/core/miscellaneous/funding.py @@ -16,7 +16,7 @@ class Funding(KGObject, OMFunding): type_ = "https://openminds.om-i.org/types/Funding" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/miscellaneous/geo_coordinates.py b/fairgraph/openminds/v5/core/miscellaneous/geo_coordinates.py index 80b92d53..298669e9 100644 --- a/fairgraph/openminds/v5/core/miscellaneous/geo_coordinates.py +++ b/fairgraph/openminds/v5/core/miscellaneous/geo_coordinates.py @@ -18,7 +18,7 @@ class GeoCoordinates(KGEmbedded, OMGeoCoordinates): """ type_ = "https://openminds.om-i.org/types/GeoCoordinates" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("latitude", "longitude") diff --git a/fairgraph/openminds/v5/core/miscellaneous/location.py b/fairgraph/openminds/v5/core/miscellaneous/location.py index fbefc4a2..36320659 100644 --- a/fairgraph/openminds/v5/core/miscellaneous/location.py +++ b/fairgraph/openminds/v5/core/miscellaneous/location.py @@ -15,7 +15,7 @@ class Location(KGEmbedded, OMLocation): """ type_ = "https://openminds.om-i.org/types/Location" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("country",) diff --git a/fairgraph/openminds/v5/core/miscellaneous/membership.py b/fairgraph/openminds/v5/core/miscellaneous/membership.py index 69a94c7a..940fa1a0 100644 --- a/fairgraph/openminds/v5/core/miscellaneous/membership.py +++ b/fairgraph/openminds/v5/core/miscellaneous/membership.py @@ -18,7 +18,7 @@ class Membership(KGEmbedded, OMMembership): """ type_ = "https://openminds.om-i.org/types/Membership" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("member",) diff --git a/fairgraph/openminds/v5/core/miscellaneous/quantitative_value.py b/fairgraph/openminds/v5/core/miscellaneous/quantitative_value.py index a85f8050..89358a51 100644 --- a/fairgraph/openminds/v5/core/miscellaneous/quantitative_value.py +++ b/fairgraph/openminds/v5/core/miscellaneous/quantitative_value.py @@ -18,7 +18,7 @@ class QuantitativeValue(KGEmbedded, OMQuantitativeValue): """ type_ = "https://openminds.om-i.org/types/QuantitativeValue" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("value", "unit", "uncertainties") diff --git a/fairgraph/openminds/v5/core/miscellaneous/quantitative_value_array.py b/fairgraph/openminds/v5/core/miscellaneous/quantitative_value_array.py index 3f304268..4fb49094 100644 --- a/fairgraph/openminds/v5/core/miscellaneous/quantitative_value_array.py +++ b/fairgraph/openminds/v5/core/miscellaneous/quantitative_value_array.py @@ -18,7 +18,7 @@ class QuantitativeValueArray(KGEmbedded, OMQuantitativeValueArray): """ type_ = "https://openminds.om-i.org/types/QuantitativeValueArray" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("values",) diff --git a/fairgraph/openminds/v5/core/miscellaneous/quantitative_value_range.py b/fairgraph/openminds/v5/core/miscellaneous/quantitative_value_range.py index 4c3c9a6a..4c797948 100644 --- a/fairgraph/openminds/v5/core/miscellaneous/quantitative_value_range.py +++ b/fairgraph/openminds/v5/core/miscellaneous/quantitative_value_range.py @@ -18,7 +18,7 @@ class QuantitativeValueRange(KGEmbedded, OMQuantitativeValueRange): """ type_ = "https://openminds.om-i.org/types/QuantitativeValueRange" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("max_value", "min_value") diff --git a/fairgraph/openminds/v5/core/miscellaneous/research_product_group.py b/fairgraph/openminds/v5/core/miscellaneous/research_product_group.py index 7336135b..d5d0575d 100644 --- a/fairgraph/openminds/v5/core/miscellaneous/research_product_group.py +++ b/fairgraph/openminds/v5/core/miscellaneous/research_product_group.py @@ -16,7 +16,7 @@ class ResearchProductGroup(KGObject, OMResearchProductGroup): type_ = "https://openminds.om-i.org/types/ResearchProductGroup" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("context", "has_parts") diff --git a/fairgraph/openminds/v5/core/miscellaneous/web_resource.py b/fairgraph/openminds/v5/core/miscellaneous/web_resource.py index 9a992e84..6bc08e23 100644 --- a/fairgraph/openminds/v5/core/miscellaneous/web_resource.py +++ b/fairgraph/openminds/v5/core/miscellaneous/web_resource.py @@ -19,7 +19,7 @@ class WebResource(KGObject, OMWebResource): type_ = "https://openminds.om-i.org/types/WebResource" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/products/dataset.py b/fairgraph/openminds/v5/core/products/dataset.py index 5dd0ae6d..621b54e8 100644 --- a/fairgraph/openminds/v5/core/products/dataset.py +++ b/fairgraph/openminds/v5/core/products/dataset.py @@ -19,7 +19,7 @@ class Dataset(KGObject, OMDataset): type_ = "https://openminds.om-i.org/types/Dataset" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/products/dataset_version.py b/fairgraph/openminds/v5/core/products/dataset_version.py index ff068e86..76cdc55b 100644 --- a/fairgraph/openminds/v5/core/products/dataset_version.py +++ b/fairgraph/openminds/v5/core/products/dataset_version.py @@ -22,7 +22,7 @@ class DatasetVersion(KGObject, OMDatasetVersion): type_ = "https://openminds.om-i.org/types/DatasetVersion" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/products/hardware_product.py b/fairgraph/openminds/v5/core/products/hardware_product.py index 9ef48e4f..e1417a59 100644 --- a/fairgraph/openminds/v5/core/products/hardware_product.py +++ b/fairgraph/openminds/v5/core/products/hardware_product.py @@ -16,7 +16,7 @@ class HardwareProduct(KGObject, OMHardwareProduct): type_ = "https://openminds.om-i.org/types/HardwareProduct" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/products/interface.py b/fairgraph/openminds/v5/core/products/interface.py index 441bd924..64756c73 100644 --- a/fairgraph/openminds/v5/core/products/interface.py +++ b/fairgraph/openminds/v5/core/products/interface.py @@ -19,7 +19,7 @@ class Interface(KGObject, OMInterface): type_ = "https://openminds.om-i.org/types/Interface" default_space = "interface" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/products/interface_version.py b/fairgraph/openminds/v5/core/products/interface_version.py index 1c1e5b42..d8e551a1 100644 --- a/fairgraph/openminds/v5/core/products/interface_version.py +++ b/fairgraph/openminds/v5/core/products/interface_version.py @@ -20,7 +20,7 @@ class InterfaceVersion(KGObject, OMInterfaceVersion): type_ = "https://openminds.om-i.org/types/InterfaceVersion" default_space = "interface" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/products/meta_data_model.py b/fairgraph/openminds/v5/core/products/meta_data_model.py index 075682d7..e3bd72a4 100644 --- a/fairgraph/openminds/v5/core/products/meta_data_model.py +++ b/fairgraph/openminds/v5/core/products/meta_data_model.py @@ -19,7 +19,7 @@ class MetaDataModel(KGObject, OMMetaDataModel): type_ = "https://openminds.om-i.org/types/MetaDataModel" default_space = "metadatamodel" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/products/meta_data_model_version.py b/fairgraph/openminds/v5/core/products/meta_data_model_version.py index 828a2aa0..23c941c3 100644 --- a/fairgraph/openminds/v5/core/products/meta_data_model_version.py +++ b/fairgraph/openminds/v5/core/products/meta_data_model_version.py @@ -20,7 +20,7 @@ class MetaDataModelVersion(KGObject, OMMetaDataModelVersion): type_ = "https://openminds.om-i.org/types/MetaDataModelVersion" default_space = "metadatamodel" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/products/model.py b/fairgraph/openminds/v5/core/products/model.py index 23e9d88b..837b2fff 100644 --- a/fairgraph/openminds/v5/core/products/model.py +++ b/fairgraph/openminds/v5/core/products/model.py @@ -19,7 +19,7 @@ class Model(KGObject, OMModel): type_ = "https://openminds.om-i.org/types/Model" default_space = "model" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/products/model_version.py b/fairgraph/openminds/v5/core/products/model_version.py index 98e16cf8..a9ebe5c9 100644 --- a/fairgraph/openminds/v5/core/products/model_version.py +++ b/fairgraph/openminds/v5/core/products/model_version.py @@ -22,7 +22,7 @@ class ModelVersion(KGObject, OMModelVersion): type_ = "https://openminds.om-i.org/types/ModelVersion" default_space = "model" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/products/project.py b/fairgraph/openminds/v5/core/products/project.py index 7b09946a..230da536 100644 --- a/fairgraph/openminds/v5/core/products/project.py +++ b/fairgraph/openminds/v5/core/products/project.py @@ -19,7 +19,7 @@ class Project(KGObject, OMProject): type_ = "https://openminds.om-i.org/types/Project" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] aliases = {"name": "full_name", "alias": "short_name"} diff --git a/fairgraph/openminds/v5/core/products/service.py b/fairgraph/openminds/v5/core/products/service.py index 7ece6b09..0f112255 100644 --- a/fairgraph/openminds/v5/core/products/service.py +++ b/fairgraph/openminds/v5/core/products/service.py @@ -16,7 +16,7 @@ class Service(KGObject, OMService): type_ = "https://openminds.om-i.org/types/Service" default_space = "software" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/products/setup.py b/fairgraph/openminds/v5/core/products/setup.py index 35cf32e5..036b0de0 100644 --- a/fairgraph/openminds/v5/core/products/setup.py +++ b/fairgraph/openminds/v5/core/products/setup.py @@ -16,7 +16,7 @@ class Setup(KGObject, OMSetup): type_ = "https://openminds.om-i.org/types/Setup" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/products/software.py b/fairgraph/openminds/v5/core/products/software.py index b7a11c55..12804df1 100644 --- a/fairgraph/openminds/v5/core/products/software.py +++ b/fairgraph/openminds/v5/core/products/software.py @@ -19,7 +19,7 @@ class Software(KGObject, OMSoftware): type_ = "https://openminds.om-i.org/types/Software" default_space = "software" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/products/software_version.py b/fairgraph/openminds/v5/core/products/software_version.py index b2b08cf4..09448c29 100644 --- a/fairgraph/openminds/v5/core/products/software_version.py +++ b/fairgraph/openminds/v5/core/products/software_version.py @@ -20,7 +20,7 @@ class SoftwareVersion(KGObject, OMSoftwareVersion): type_ = "https://openminds.om-i.org/types/SoftwareVersion" default_space = "software" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/research/behavioral_protocol.py b/fairgraph/openminds/v5/core/research/behavioral_protocol.py index 3eeee34c..c726ead9 100644 --- a/fairgraph/openminds/v5/core/research/behavioral_protocol.py +++ b/fairgraph/openminds/v5/core/research/behavioral_protocol.py @@ -16,7 +16,7 @@ class BehavioralProtocol(KGObject, OMBehavioralProtocol): type_ = "https://openminds.om-i.org/types/BehavioralProtocol" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/research/configuration.py b/fairgraph/openminds/v5/core/research/configuration.py index 333a1eff..1931cf7a 100644 --- a/fairgraph/openminds/v5/core/research/configuration.py +++ b/fairgraph/openminds/v5/core/research/configuration.py @@ -16,7 +16,7 @@ class Configuration(KGObject, OMConfiguration): type_ = "https://openminds.om-i.org/types/Configuration" default_space = "common" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/research/custom_property_set.py b/fairgraph/openminds/v5/core/research/custom_property_set.py index f3afbf69..c6512bb9 100644 --- a/fairgraph/openminds/v5/core/research/custom_property_set.py +++ b/fairgraph/openminds/v5/core/research/custom_property_set.py @@ -15,7 +15,7 @@ class CustomPropertySet(KGEmbedded, OMCustomPropertySet): """ type_ = "https://openminds.om-i.org/types/CustomPropertySet" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("context", "data_location", "relevant_for") diff --git a/fairgraph/openminds/v5/core/research/numerical_property.py b/fairgraph/openminds/v5/core/research/numerical_property.py index 6559ff51..3bc07271 100644 --- a/fairgraph/openminds/v5/core/research/numerical_property.py +++ b/fairgraph/openminds/v5/core/research/numerical_property.py @@ -18,7 +18,7 @@ class NumericalProperty(KGEmbedded, OMNumericalProperty): """ type_ = "https://openminds.om-i.org/types/NumericalProperty" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("name", "values") diff --git a/fairgraph/openminds/v5/core/research/property_value_list.py b/fairgraph/openminds/v5/core/research/property_value_list.py index 994f1dd0..b45b1607 100644 --- a/fairgraph/openminds/v5/core/research/property_value_list.py +++ b/fairgraph/openminds/v5/core/research/property_value_list.py @@ -16,7 +16,7 @@ class PropertyValueList(KGObject, OMPropertyValueList): type_ = "https://openminds.om-i.org/types/PropertyValueList" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/research/protocol.py b/fairgraph/openminds/v5/core/research/protocol.py index 6bb4bb09..d81b5750 100644 --- a/fairgraph/openminds/v5/core/research/protocol.py +++ b/fairgraph/openminds/v5/core/research/protocol.py @@ -16,7 +16,7 @@ class Protocol(KGObject, OMProtocol): type_ = "https://openminds.om-i.org/types/Protocol" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/research/protocol_execution.py b/fairgraph/openminds/v5/core/research/protocol_execution.py index e6630952..28d8c228 100644 --- a/fairgraph/openminds/v5/core/research/protocol_execution.py +++ b/fairgraph/openminds/v5/core/research/protocol_execution.py @@ -19,7 +19,7 @@ class ProtocolExecution(KGObject, OMProtocolExecution): type_ = "https://openminds.om-i.org/types/ProtocolExecution" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/research/specimen_age.py b/fairgraph/openminds/v5/core/research/specimen_age.py index d444a816..b46d67ba 100644 --- a/fairgraph/openminds/v5/core/research/specimen_age.py +++ b/fairgraph/openminds/v5/core/research/specimen_age.py @@ -15,7 +15,7 @@ class SpecimenAge(KGEmbedded, OMSpecimenAge): """ type_ = "https://openminds.om-i.org/types/SpecimenAge" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("age", "reference") diff --git a/fairgraph/openminds/v5/core/research/specimen_weight.py b/fairgraph/openminds/v5/core/research/specimen_weight.py index d8d7d988..c9c40bab 100644 --- a/fairgraph/openminds/v5/core/research/specimen_weight.py +++ b/fairgraph/openminds/v5/core/research/specimen_weight.py @@ -15,7 +15,7 @@ class SpecimenWeight(KGEmbedded, OMSpecimenWeight): """ type_ = "https://openminds.om-i.org/types/SpecimenWeight" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("type", "weight") diff --git a/fairgraph/openminds/v5/core/research/strain.py b/fairgraph/openminds/v5/core/research/strain.py index 17d3eaef..9e8aab84 100644 --- a/fairgraph/openminds/v5/core/research/strain.py +++ b/fairgraph/openminds/v5/core/research/strain.py @@ -16,7 +16,7 @@ class Strain(KGObject, OMStrain): type_ = "https://openminds.om-i.org/types/Strain" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/research/string_property.py b/fairgraph/openminds/v5/core/research/string_property.py index d740fc26..6808341e 100644 --- a/fairgraph/openminds/v5/core/research/string_property.py +++ b/fairgraph/openminds/v5/core/research/string_property.py @@ -18,7 +18,7 @@ class StringProperty(KGEmbedded, OMStringProperty): """ type_ = "https://openminds.om-i.org/types/StringProperty" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("name", "value") diff --git a/fairgraph/openminds/v5/core/research/subject.py b/fairgraph/openminds/v5/core/research/subject.py index 7ef37ea5..244bae3f 100644 --- a/fairgraph/openminds/v5/core/research/subject.py +++ b/fairgraph/openminds/v5/core/research/subject.py @@ -16,7 +16,7 @@ class Subject(KGObject, OMSubject): type_ = "https://openminds.om-i.org/types/Subject" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/research/subject_group.py b/fairgraph/openminds/v5/core/research/subject_group.py index f770069d..f7689482 100644 --- a/fairgraph/openminds/v5/core/research/subject_group.py +++ b/fairgraph/openminds/v5/core/research/subject_group.py @@ -16,7 +16,7 @@ class SubjectGroup(KGObject, OMSubjectGroup): type_ = "https://openminds.om-i.org/types/SubjectGroup" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/research/subject_group_state.py b/fairgraph/openminds/v5/core/research/subject_group_state.py index 3037fa39..94ac075f 100644 --- a/fairgraph/openminds/v5/core/research/subject_group_state.py +++ b/fairgraph/openminds/v5/core/research/subject_group_state.py @@ -16,7 +16,7 @@ class SubjectGroupState(KGObject, OMSubjectGroupState): type_ = "https://openminds.om-i.org/types/SubjectGroupState" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/research/subject_state.py b/fairgraph/openminds/v5/core/research/subject_state.py index a379de05..d13d81b5 100644 --- a/fairgraph/openminds/v5/core/research/subject_state.py +++ b/fairgraph/openminds/v5/core/research/subject_state.py @@ -16,7 +16,7 @@ class SubjectState(KGObject, OMSubjectState): type_ = "https://openminds.om-i.org/types/SubjectState" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/research/tissue_sample.py b/fairgraph/openminds/v5/core/research/tissue_sample.py index 41cb94f4..69df69b0 100644 --- a/fairgraph/openminds/v5/core/research/tissue_sample.py +++ b/fairgraph/openminds/v5/core/research/tissue_sample.py @@ -16,7 +16,7 @@ class TissueSample(KGObject, OMTissueSample): type_ = "https://openminds.om-i.org/types/TissueSample" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/research/tissue_sample_collection.py b/fairgraph/openminds/v5/core/research/tissue_sample_collection.py index 0e415704..47007289 100644 --- a/fairgraph/openminds/v5/core/research/tissue_sample_collection.py +++ b/fairgraph/openminds/v5/core/research/tissue_sample_collection.py @@ -16,7 +16,7 @@ class TissueSampleCollection(KGObject, OMTissueSampleCollection): type_ = "https://openminds.om-i.org/types/TissueSampleCollection" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/research/tissue_sample_collection_state.py b/fairgraph/openminds/v5/core/research/tissue_sample_collection_state.py index 75a83d4e..946e58d6 100644 --- a/fairgraph/openminds/v5/core/research/tissue_sample_collection_state.py +++ b/fairgraph/openminds/v5/core/research/tissue_sample_collection_state.py @@ -16,7 +16,7 @@ class TissueSampleCollectionState(KGObject, OMTissueSampleCollectionState): type_ = "https://openminds.om-i.org/types/TissueSampleCollectionState" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/core/research/tissue_sample_state.py b/fairgraph/openminds/v5/core/research/tissue_sample_state.py index 5eec8041..37f8520b 100644 --- a/fairgraph/openminds/v5/core/research/tissue_sample_state.py +++ b/fairgraph/openminds/v5/core/research/tissue_sample_state.py @@ -16,7 +16,7 @@ class TissueSampleState(KGObject, OMTissueSampleState): type_ = "https://openminds.om-i.org/types/TissueSampleState" default_space = "dataset" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/ephys/activity/cell_patching.py b/fairgraph/openminds/v5/ephys/activity/cell_patching.py index 637a10dc..0a29c61f 100644 --- a/fairgraph/openminds/v5/ephys/activity/cell_patching.py +++ b/fairgraph/openminds/v5/ephys/activity/cell_patching.py @@ -19,7 +19,7 @@ class CellPatching(KGObject, OMCellPatching): type_ = "https://openminds.om-i.org/types/CellPatching" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v5/ephys/activity/electrode_placement.py b/fairgraph/openminds/v5/ephys/activity/electrode_placement.py index e2bd1fcc..d641d0ab 100644 --- a/fairgraph/openminds/v5/ephys/activity/electrode_placement.py +++ b/fairgraph/openminds/v5/ephys/activity/electrode_placement.py @@ -19,7 +19,7 @@ class ElectrodePlacement(KGObject, OMElectrodePlacement): type_ = "https://openminds.om-i.org/types/ElectrodePlacement" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v5/ephys/activity/recording_activity.py b/fairgraph/openminds/v5/ephys/activity/recording_activity.py index 103e79ef..8daefb8b 100644 --- a/fairgraph/openminds/v5/ephys/activity/recording_activity.py +++ b/fairgraph/openminds/v5/ephys/activity/recording_activity.py @@ -19,7 +19,7 @@ class RecordingActivity(KGObject, OMRecordingActivity): type_ = "https://openminds.om-i.org/types/RecordingActivity" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v5/ephys/device/electrode.py b/fairgraph/openminds/v5/ephys/device/electrode.py index c529c1a6..02b699c7 100644 --- a/fairgraph/openminds/v5/ephys/device/electrode.py +++ b/fairgraph/openminds/v5/ephys/device/electrode.py @@ -16,7 +16,7 @@ class Electrode(KGObject, OMElectrode): type_ = "https://openminds.om-i.org/types/Electrode" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/ephys/device/electrode_array.py b/fairgraph/openminds/v5/ephys/device/electrode_array.py index 12d0dfd0..3fb7522b 100644 --- a/fairgraph/openminds/v5/ephys/device/electrode_array.py +++ b/fairgraph/openminds/v5/ephys/device/electrode_array.py @@ -16,7 +16,7 @@ class ElectrodeArray(KGObject, OMElectrodeArray): type_ = "https://openminds.om-i.org/types/ElectrodeArray" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/ephys/device/electrode_array_usage.py b/fairgraph/openminds/v5/ephys/device/electrode_array_usage.py index 20cd090b..1f2e7129 100644 --- a/fairgraph/openminds/v5/ephys/device/electrode_array_usage.py +++ b/fairgraph/openminds/v5/ephys/device/electrode_array_usage.py @@ -16,7 +16,7 @@ class ElectrodeArrayUsage(KGObject, OMElectrodeArrayUsage): type_ = "https://openminds.om-i.org/types/ElectrodeArrayUsage" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/ephys/device/electrode_usage.py b/fairgraph/openminds/v5/ephys/device/electrode_usage.py index db0bb845..f8d2d7f4 100644 --- a/fairgraph/openminds/v5/ephys/device/electrode_usage.py +++ b/fairgraph/openminds/v5/ephys/device/electrode_usage.py @@ -16,7 +16,7 @@ class ElectrodeUsage(KGObject, OMElectrodeUsage): type_ = "https://openminds.om-i.org/types/ElectrodeUsage" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/ephys/device/pipette.py b/fairgraph/openminds/v5/ephys/device/pipette.py index 68eb06f4..e5500e97 100644 --- a/fairgraph/openminds/v5/ephys/device/pipette.py +++ b/fairgraph/openminds/v5/ephys/device/pipette.py @@ -16,7 +16,7 @@ class Pipette(KGObject, OMPipette): type_ = "https://openminds.om-i.org/types/Pipette" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/ephys/device/pipette_usage.py b/fairgraph/openminds/v5/ephys/device/pipette_usage.py index df70d9c6..c54f53c7 100644 --- a/fairgraph/openminds/v5/ephys/device/pipette_usage.py +++ b/fairgraph/openminds/v5/ephys/device/pipette_usage.py @@ -16,7 +16,7 @@ class PipetteUsage(KGObject, OMPipetteUsage): type_ = "https://openminds.om-i.org/types/PipetteUsage" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/neuroimaging/activity/dynamic_mri_acquisition.py b/fairgraph/openminds/v5/neuroimaging/activity/dynamic_mri_acquisition.py index d38001c1..95c8e4ed 100644 --- a/fairgraph/openminds/v5/neuroimaging/activity/dynamic_mri_acquisition.py +++ b/fairgraph/openminds/v5/neuroimaging/activity/dynamic_mri_acquisition.py @@ -19,7 +19,7 @@ class DynamicMRIAcquisition(KGObject, OMDynamicMRIAcquisition): type_ = "https://openminds.om-i.org/types/DynamicMRIAcquisition" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v5/neuroimaging/activity/static_mri_acquisition.py b/fairgraph/openminds/v5/neuroimaging/activity/static_mri_acquisition.py index 3e718b01..90a1203f 100644 --- a/fairgraph/openminds/v5/neuroimaging/activity/static_mri_acquisition.py +++ b/fairgraph/openminds/v5/neuroimaging/activity/static_mri_acquisition.py @@ -19,7 +19,7 @@ class StaticMRIAcquisition(KGObject, OMStaticMRIAcquisition): type_ = "https://openminds.om-i.org/types/StaticMRIAcquisition" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v5/neuroimaging/device/mri_coil.py b/fairgraph/openminds/v5/neuroimaging/device/mri_coil.py index d54095a8..b76ff6bd 100644 --- a/fairgraph/openminds/v5/neuroimaging/device/mri_coil.py +++ b/fairgraph/openminds/v5/neuroimaging/device/mri_coil.py @@ -16,7 +16,7 @@ class MRICoil(KGObject, OMMRICoil): type_ = "https://openminds.om-i.org/types/MRICoil" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/neuroimaging/device/mri_coil_usage.py b/fairgraph/openminds/v5/neuroimaging/device/mri_coil_usage.py index d64c3617..0fa1b0be 100644 --- a/fairgraph/openminds/v5/neuroimaging/device/mri_coil_usage.py +++ b/fairgraph/openminds/v5/neuroimaging/device/mri_coil_usage.py @@ -16,7 +16,7 @@ class MRICoilUsage(KGObject, OMMRICoilUsage): type_ = "https://openminds.om-i.org/types/MRICoilUsage" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/neuroimaging/device/mri_scanner.py b/fairgraph/openminds/v5/neuroimaging/device/mri_scanner.py index cd34d791..092e1538 100644 --- a/fairgraph/openminds/v5/neuroimaging/device/mri_scanner.py +++ b/fairgraph/openminds/v5/neuroimaging/device/mri_scanner.py @@ -16,7 +16,7 @@ class MRIScanner(KGObject, OMMRIScanner): type_ = "https://openminds.om-i.org/types/MRIScanner" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/neuroimaging/device/mri_scanner_usage.py b/fairgraph/openminds/v5/neuroimaging/device/mri_scanner_usage.py index e8a8d067..949f1376 100644 --- a/fairgraph/openminds/v5/neuroimaging/device/mri_scanner_usage.py +++ b/fairgraph/openminds/v5/neuroimaging/device/mri_scanner_usage.py @@ -19,7 +19,7 @@ class MRIScannerUsage(KGObject, OMMRIScannerUsage): type_ = "https://openminds.om-i.org/types/MRIScannerUsage" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/publications/book.py b/fairgraph/openminds/v5/publications/book.py index efdd7a4d..3b50032e 100644 --- a/fairgraph/openminds/v5/publications/book.py +++ b/fairgraph/openminds/v5/publications/book.py @@ -20,7 +20,7 @@ class Book(KGObject, OMBook): type_ = "https://openminds.om-i.org/types/Book" default_space = "livepapers" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/publications/chapter.py b/fairgraph/openminds/v5/publications/chapter.py index 34106947..b84cb2de 100644 --- a/fairgraph/openminds/v5/publications/chapter.py +++ b/fairgraph/openminds/v5/publications/chapter.py @@ -20,7 +20,7 @@ class Chapter(KGObject, OMChapter): type_ = "https://openminds.om-i.org/types/Chapter" default_space = "livepapers" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/publications/learning_resource.py b/fairgraph/openminds/v5/publications/learning_resource.py index a2f946ca..9df90435 100644 --- a/fairgraph/openminds/v5/publications/learning_resource.py +++ b/fairgraph/openminds/v5/publications/learning_resource.py @@ -20,7 +20,7 @@ class LearningResource(KGObject, OMLearningResource): type_ = "https://openminds.om-i.org/types/LearningResource" default_space = "livepapers" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("about", "name", "publication_date") diff --git a/fairgraph/openminds/v5/publications/live_paper.py b/fairgraph/openminds/v5/publications/live_paper.py index 874375a1..22a65015 100644 --- a/fairgraph/openminds/v5/publications/live_paper.py +++ b/fairgraph/openminds/v5/publications/live_paper.py @@ -19,7 +19,7 @@ class LivePaper(KGObject, OMLivePaper): type_ = "https://openminds.om-i.org/types/LivePaper" default_space = "livepapers" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/publications/live_paper_resource_item.py b/fairgraph/openminds/v5/publications/live_paper_resource_item.py index 31133124..b6280b1d 100644 --- a/fairgraph/openminds/v5/publications/live_paper_resource_item.py +++ b/fairgraph/openminds/v5/publications/live_paper_resource_item.py @@ -19,7 +19,7 @@ class LivePaperResourceItem(KGObject, OMLivePaperResourceItem): type_ = "https://openminds.om-i.org/types/LivePaperResourceItem" default_space = "livepapers" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/publications/live_paper_section.py b/fairgraph/openminds/v5/publications/live_paper_section.py index fa5a15fd..6d27a2e3 100644 --- a/fairgraph/openminds/v5/publications/live_paper_section.py +++ b/fairgraph/openminds/v5/publications/live_paper_section.py @@ -16,7 +16,7 @@ class LivePaperSection(KGObject, OMLivePaperSection): type_ = "https://openminds.om-i.org/types/LivePaperSection" default_space = "livepapers" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/publications/live_paper_version.py b/fairgraph/openminds/v5/publications/live_paper_version.py index d5e52e76..bb89d124 100644 --- a/fairgraph/openminds/v5/publications/live_paper_version.py +++ b/fairgraph/openminds/v5/publications/live_paper_version.py @@ -21,7 +21,7 @@ class LivePaperVersion(KGObject, OMLivePaperVersion): type_ = "https://openminds.om-i.org/types/LivePaperVersion" default_space = "livepapers" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/publications/periodical.py b/fairgraph/openminds/v5/publications/periodical.py index 628e1a43..5387dba8 100644 --- a/fairgraph/openminds/v5/publications/periodical.py +++ b/fairgraph/openminds/v5/publications/periodical.py @@ -16,7 +16,7 @@ class Periodical(KGObject, OMPeriodical): type_ = "https://openminds.om-i.org/types/Periodical" default_space = "livepapers" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/publications/publication_issue.py b/fairgraph/openminds/v5/publications/publication_issue.py index c0c87324..89ca4544 100644 --- a/fairgraph/openminds/v5/publications/publication_issue.py +++ b/fairgraph/openminds/v5/publications/publication_issue.py @@ -16,7 +16,7 @@ class PublicationIssue(KGObject, OMPublicationIssue): type_ = "https://openminds.om-i.org/types/PublicationIssue" default_space = "livepapers" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/publications/publication_volume.py b/fairgraph/openminds/v5/publications/publication_volume.py index 39a2f1b1..703b4c47 100644 --- a/fairgraph/openminds/v5/publications/publication_volume.py +++ b/fairgraph/openminds/v5/publications/publication_volume.py @@ -16,7 +16,7 @@ class PublicationVolume(KGObject, OMPublicationVolume): type_ = "https://openminds.om-i.org/types/PublicationVolume" default_space = "livepapers" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/publications/scholarly_article.py b/fairgraph/openminds/v5/publications/scholarly_article.py index 70c00bb4..e5c5697b 100644 --- a/fairgraph/openminds/v5/publications/scholarly_article.py +++ b/fairgraph/openminds/v5/publications/scholarly_article.py @@ -22,7 +22,7 @@ class ScholarlyArticle(KGObject, OMScholarlyArticle): type_ = "https://openminds.om-i.org/types/ScholarlyArticle" default_space = "livepapers" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/sands/atlas/anatomical_atlas.py b/fairgraph/openminds/v5/sands/atlas/anatomical_atlas.py index 868e076d..a65467ea 100644 --- a/fairgraph/openminds/v5/sands/atlas/anatomical_atlas.py +++ b/fairgraph/openminds/v5/sands/atlas/anatomical_atlas.py @@ -19,7 +19,7 @@ class AnatomicalAtlas(KGObject, OMAnatomicalAtlas): type_ = "https://openminds.om-i.org/types/AnatomicalAtlas" default_space = "atlas" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/sands/atlas/anatomical_atlas_version.py b/fairgraph/openminds/v5/sands/atlas/anatomical_atlas_version.py index bf5d7946..09f786ad 100644 --- a/fairgraph/openminds/v5/sands/atlas/anatomical_atlas_version.py +++ b/fairgraph/openminds/v5/sands/atlas/anatomical_atlas_version.py @@ -22,7 +22,7 @@ class AnatomicalAtlasVersion(KGObject, OMAnatomicalAtlasVersion): type_ = "https://openminds.om-i.org/types/AnatomicalAtlasVersion" default_space = "atlas" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/sands/atlas/atlas_annotation.py b/fairgraph/openminds/v5/sands/atlas/atlas_annotation.py index aa9837f7..89f4c7a3 100644 --- a/fairgraph/openminds/v5/sands/atlas/atlas_annotation.py +++ b/fairgraph/openminds/v5/sands/atlas/atlas_annotation.py @@ -15,7 +15,7 @@ class AtlasAnnotation(KGEmbedded, OMAtlasAnnotation): """ type_ = "https://openminds.om-i.org/types/AtlasAnnotation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("criteria_quality_type", "criteria_type", "type") diff --git a/fairgraph/openminds/v5/sands/atlas/common_coordinate_framework.py b/fairgraph/openminds/v5/sands/atlas/common_coordinate_framework.py index cf2cf298..c762c003 100644 --- a/fairgraph/openminds/v5/sands/atlas/common_coordinate_framework.py +++ b/fairgraph/openminds/v5/sands/atlas/common_coordinate_framework.py @@ -19,7 +19,7 @@ class CommonCoordinateFramework(KGObject, OMCommonCoordinateFramework): type_ = "https://openminds.om-i.org/types/CommonCoordinateFramework" default_space = "atlas" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/sands/atlas/common_coordinate_framework_version.py b/fairgraph/openminds/v5/sands/atlas/common_coordinate_framework_version.py index fbd36d18..06b49a86 100644 --- a/fairgraph/openminds/v5/sands/atlas/common_coordinate_framework_version.py +++ b/fairgraph/openminds/v5/sands/atlas/common_coordinate_framework_version.py @@ -22,7 +22,7 @@ class CommonCoordinateFrameworkVersion(KGObject, OMCommonCoordinateFrameworkVers type_ = "https://openminds.om-i.org/types/CommonCoordinateFrameworkVersion" default_space = "atlas" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "fullName" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/sands/atlas/parcellation_entity.py b/fairgraph/openminds/v5/sands/atlas/parcellation_entity.py index b859f055..4b3a7b39 100644 --- a/fairgraph/openminds/v5/sands/atlas/parcellation_entity.py +++ b/fairgraph/openminds/v5/sands/atlas/parcellation_entity.py @@ -16,7 +16,7 @@ class ParcellationEntity(KGObject, OMParcellationEntity): type_ = "https://openminds.om-i.org/types/ParcellationEntity" default_space = "atlas" - SORT_PRIORITY = ("lookupLabel", "name", "fullName", "shortName", "familyName", "abbreviation") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/sands/atlas/parcellation_entity_version.py b/fairgraph/openminds/v5/sands/atlas/parcellation_entity_version.py index e4c6dd5c..d4663df4 100644 --- a/fairgraph/openminds/v5/sands/atlas/parcellation_entity_version.py +++ b/fairgraph/openminds/v5/sands/atlas/parcellation_entity_version.py @@ -16,7 +16,7 @@ class ParcellationEntityVersion(KGObject, OMParcellationEntityVersion): type_ = "https://openminds.om-i.org/types/ParcellationEntityVersion" default_space = "atlas" - SORT_PRIORITY = ("lookupLabel", "name", "fullName", "shortName", "familyName", "abbreviation") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/sands/atlas/parcellation_terminology.py b/fairgraph/openminds/v5/sands/atlas/parcellation_terminology.py index 4dfae19e..456891cb 100644 --- a/fairgraph/openminds/v5/sands/atlas/parcellation_terminology.py +++ b/fairgraph/openminds/v5/sands/atlas/parcellation_terminology.py @@ -15,7 +15,7 @@ class ParcellationTerminology(KGEmbedded, OMParcellationTerminology): """ type_ = "https://openminds.om-i.org/types/ParcellationTerminology" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("has_entities",) diff --git a/fairgraph/openminds/v5/sands/atlas/parcellation_terminology_version.py b/fairgraph/openminds/v5/sands/atlas/parcellation_terminology_version.py index 564ff360..fa776bea 100644 --- a/fairgraph/openminds/v5/sands/atlas/parcellation_terminology_version.py +++ b/fairgraph/openminds/v5/sands/atlas/parcellation_terminology_version.py @@ -15,7 +15,7 @@ class ParcellationTerminologyVersion(KGEmbedded, OMParcellationTerminologyVersio """ type_ = "https://openminds.om-i.org/types/ParcellationTerminologyVersion" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("short_name", "version_identifier") diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/centroidal_pyramid.py b/fairgraph/openminds/v5/sands/mathematical_shape/centroidal_pyramid.py index 89292b83..f5949a9c 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/centroidal_pyramid.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/centroidal_pyramid.py @@ -15,7 +15,7 @@ class CentroidalPyramid(KGEmbedded, OMCentroidalPyramid): """ type_ = "https://openminds.om-i.org/types/CentroidalPyramid" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("apex_base_distance", "base_shape") diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/circle.py b/fairgraph/openminds/v5/sands/mathematical_shape/circle.py index 9d5f8a10..c6e0d82d 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/circle.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/circle.py @@ -15,7 +15,7 @@ class Circle(KGEmbedded, OMCircle): """ type_ = "https://openminds.om-i.org/types/Circle" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("radius",) diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/circular_sector.py b/fairgraph/openminds/v5/sands/mathematical_shape/circular_sector.py index 907ebaaa..aefbccc5 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/circular_sector.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/circular_sector.py @@ -15,7 +15,7 @@ class CircularSector(KGEmbedded, OMCircularSector): """ type_ = "https://openminds.om-i.org/types/CircularSector" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("central_angle", "radius") diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/cube.py b/fairgraph/openminds/v5/sands/mathematical_shape/cube.py index 59b3cfb6..977069cd 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/cube.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/cube.py @@ -15,7 +15,7 @@ class Cube(KGEmbedded, OMCube): """ type_ = "https://openminds.om-i.org/types/Cube" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("side_length",) diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/ellipse.py b/fairgraph/openminds/v5/sands/mathematical_shape/ellipse.py index a055f95f..1ae23026 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/ellipse.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/ellipse.py @@ -15,7 +15,7 @@ class Ellipse(KGEmbedded, OMEllipse): """ type_ = "https://openminds.om-i.org/types/Ellipse" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("diameters",) diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/ellipsoid.py b/fairgraph/openminds/v5/sands/mathematical_shape/ellipsoid.py index bf612268..6697985a 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/ellipsoid.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/ellipsoid.py @@ -15,7 +15,7 @@ class Ellipsoid(KGEmbedded, OMEllipsoid): """ type_ = "https://openminds.om-i.org/types/Ellipsoid" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("intermediate_diameter", "major_diameter", "minor_diameter") diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/equilateral_triangle.py b/fairgraph/openminds/v5/sands/mathematical_shape/equilateral_triangle.py index 49c5ef73..dbcb8605 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/equilateral_triangle.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/equilateral_triangle.py @@ -15,7 +15,7 @@ class EquilateralTriangle(KGEmbedded, OMEquilateralTriangle): """ type_ = "https://openminds.om-i.org/types/EquilateralTriangle" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("side_length",) diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/frustum.py b/fairgraph/openminds/v5/sands/mathematical_shape/frustum.py index d8c7af3e..88eb49b5 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/frustum.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/frustum.py @@ -18,7 +18,7 @@ class Frustum(KGEmbedded, OMFrustum): """ type_ = "https://openminds.om-i.org/types/Frustum" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("base_distance", "major_base_shape", "minor_base_scale") diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/isosceles_triangle.py b/fairgraph/openminds/v5/sands/mathematical_shape/isosceles_triangle.py index 7af0a359..26a19a6f 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/isosceles_triangle.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/isosceles_triangle.py @@ -15,7 +15,7 @@ class IsoscelesTriangle(KGEmbedded, OMIsoscelesTriangle): """ type_ = "https://openminds.om-i.org/types/IsoscelesTriangle" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("apex_angle", "leg_length") diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/kite.py b/fairgraph/openminds/v5/sands/mathematical_shape/kite.py index ee83f886..2d57d6a5 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/kite.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/kite.py @@ -15,7 +15,7 @@ class Kite(KGEmbedded, OMKite): """ type_ = "https://openminds.om-i.org/types/Kite" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("leg_lengths", "symmetry_diagonal_length") diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/parallelogram.py b/fairgraph/openminds/v5/sands/mathematical_shape/parallelogram.py index 7b8f26ec..510398a0 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/parallelogram.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/parallelogram.py @@ -15,7 +15,7 @@ class Parallelogram(KGEmbedded, OMParallelogram): """ type_ = "https://openminds.om-i.org/types/Parallelogram" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("base_distance", "base_length", "interior_angle") diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/rectangle.py b/fairgraph/openminds/v5/sands/mathematical_shape/rectangle.py index 27854900..9de07e05 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/rectangle.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/rectangle.py @@ -15,7 +15,7 @@ class Rectangle(KGEmbedded, OMRectangle): """ type_ = "https://openminds.om-i.org/types/Rectangle" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("major_side_length", "minor_side_length") diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/regular_polygon.py b/fairgraph/openminds/v5/sands/mathematical_shape/regular_polygon.py index a417f425..c0daa239 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/regular_polygon.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/regular_polygon.py @@ -15,7 +15,7 @@ class RegularPolygon(KGEmbedded, OMRegularPolygon): """ type_ = "https://openminds.om-i.org/types/RegularPolygon" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("circumradius", "number_of_sides") diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/rhombus.py b/fairgraph/openminds/v5/sands/mathematical_shape/rhombus.py index 4814c7f9..2ed1af4f 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/rhombus.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/rhombus.py @@ -15,7 +15,7 @@ class Rhombus(KGEmbedded, OMRhombus): """ type_ = "https://openminds.om-i.org/types/Rhombus" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("diagonal_lengths",) diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/right_cone.py b/fairgraph/openminds/v5/sands/mathematical_shape/right_cone.py index 3c3a25cc..7e37b955 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/right_cone.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/right_cone.py @@ -15,7 +15,7 @@ class RightCone(KGEmbedded, OMRightCone): """ type_ = "https://openminds.om-i.org/types/RightCone" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("apex_base_distance", "base_shape") diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/right_cylinder.py b/fairgraph/openminds/v5/sands/mathematical_shape/right_cylinder.py index 4f6089d8..54da965e 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/right_cylinder.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/right_cylinder.py @@ -15,7 +15,7 @@ class RightCylinder(KGEmbedded, OMRightCylinder): """ type_ = "https://openminds.om-i.org/types/RightCylinder" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("base_distance", "base_shape") diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/right_prism.py b/fairgraph/openminds/v5/sands/mathematical_shape/right_prism.py index 9a594e34..33be402e 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/right_prism.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/right_prism.py @@ -15,7 +15,7 @@ class RightPrism(KGEmbedded, OMRightPrism): """ type_ = "https://openminds.om-i.org/types/RightPrism" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("base_distance", "base_shape") diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/right_triangle.py b/fairgraph/openminds/v5/sands/mathematical_shape/right_triangle.py index d9eccfe7..bcdbd3e7 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/right_triangle.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/right_triangle.py @@ -15,7 +15,7 @@ class RightTriangle(KGEmbedded, OMRightTriangle): """ type_ = "https://openminds.om-i.org/types/RightTriangle" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("perpendicular_leg_lengths",) diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/sphere.py b/fairgraph/openminds/v5/sands/mathematical_shape/sphere.py index 9149a29b..ae31cb8e 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/sphere.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/sphere.py @@ -15,7 +15,7 @@ class Sphere(KGEmbedded, OMSphere): """ type_ = "https://openminds.om-i.org/types/Sphere" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("radius",) diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/spheroid.py b/fairgraph/openminds/v5/sands/mathematical_shape/spheroid.py index 695f698d..0662a29c 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/spheroid.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/spheroid.py @@ -15,7 +15,7 @@ class Spheroid(KGEmbedded, OMSpheroid): """ type_ = "https://openminds.om-i.org/types/Spheroid" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("equatorial_diameter", "polar_diameter") diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/square.py b/fairgraph/openminds/v5/sands/mathematical_shape/square.py index 077e94a5..b129fa4c 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/square.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/square.py @@ -15,7 +15,7 @@ class Square(KGEmbedded, OMSquare): """ type_ = "https://openminds.om-i.org/types/Square" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("side_length",) diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/trapezoid.py b/fairgraph/openminds/v5/sands/mathematical_shape/trapezoid.py index 453e3f3a..f656293b 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/trapezoid.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/trapezoid.py @@ -15,7 +15,7 @@ class Trapezoid(KGEmbedded, OMTrapezoid): """ type_ = "https://openminds.om-i.org/types/Trapezoid" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("base_distance", "base_lengths") diff --git a/fairgraph/openminds/v5/sands/mathematical_shape/triangle.py b/fairgraph/openminds/v5/sands/mathematical_shape/triangle.py index 7f7d0b7e..680a2200 100644 --- a/fairgraph/openminds/v5/sands/mathematical_shape/triangle.py +++ b/fairgraph/openminds/v5/sands/mathematical_shape/triangle.py @@ -15,7 +15,7 @@ class Triangle(KGEmbedded, OMTriangle): """ type_ = "https://openminds.om-i.org/types/Triangle" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("apex_angle", "leg_lengths") diff --git a/fairgraph/openminds/v5/sands/miscellaneous/anatomical_target_position.py b/fairgraph/openminds/v5/sands/miscellaneous/anatomical_target_position.py index 7f29db2e..101b98a4 100644 --- a/fairgraph/openminds/v5/sands/miscellaneous/anatomical_target_position.py +++ b/fairgraph/openminds/v5/sands/miscellaneous/anatomical_target_position.py @@ -15,7 +15,7 @@ class AnatomicalTargetPosition(KGEmbedded, OMAnatomicalTargetPosition): """ type_ = "https://openminds.om-i.org/types/AnatomicalTargetPosition" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("anatomical_targets", "target_identification_type") diff --git a/fairgraph/openminds/v5/sands/miscellaneous/coordinate_point.py b/fairgraph/openminds/v5/sands/miscellaneous/coordinate_point.py index 9bb02e07..3ca03b2c 100644 --- a/fairgraph/openminds/v5/sands/miscellaneous/coordinate_point.py +++ b/fairgraph/openminds/v5/sands/miscellaneous/coordinate_point.py @@ -15,7 +15,7 @@ class CoordinatePoint(KGEmbedded, OMCoordinatePoint): """ type_ = "https://openminds.om-i.org/types/CoordinatePoint" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("coordinate_framework", "coordinates") diff --git a/fairgraph/openminds/v5/sands/miscellaneous/qualitative_relation_assessment.py b/fairgraph/openminds/v5/sands/miscellaneous/qualitative_relation_assessment.py index 26c8ef76..b8d399ff 100644 --- a/fairgraph/openminds/v5/sands/miscellaneous/qualitative_relation_assessment.py +++ b/fairgraph/openminds/v5/sands/miscellaneous/qualitative_relation_assessment.py @@ -15,7 +15,7 @@ class QualitativeRelationAssessment(KGEmbedded, OMQualitativeRelationAssessment) """ type_ = "https://openminds.om-i.org/types/QualitativeRelationAssessment" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("in_relation_to", "qualitative_overlap") diff --git a/fairgraph/openminds/v5/sands/miscellaneous/quantitative_relation_assessment.py b/fairgraph/openminds/v5/sands/miscellaneous/quantitative_relation_assessment.py index baf92bc6..4c8efab6 100644 --- a/fairgraph/openminds/v5/sands/miscellaneous/quantitative_relation_assessment.py +++ b/fairgraph/openminds/v5/sands/miscellaneous/quantitative_relation_assessment.py @@ -15,7 +15,7 @@ class QuantitativeRelationAssessment(KGEmbedded, OMQuantitativeRelationAssessmen """ type_ = "https://openminds.om-i.org/types/QuantitativeRelationAssessment" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("in_relation_to", "quantitative_overlap") diff --git a/fairgraph/openminds/v5/sands/miscellaneous/single_color.py b/fairgraph/openminds/v5/sands/miscellaneous/single_color.py index 0574ecda..a0364695 100644 --- a/fairgraph/openminds/v5/sands/miscellaneous/single_color.py +++ b/fairgraph/openminds/v5/sands/miscellaneous/single_color.py @@ -16,7 +16,7 @@ class SingleColor(KGObject, OMSingleColor): type_ = "https://openminds.om-i.org/types/SingleColor" default_space = "atlas" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("value",) diff --git a/fairgraph/openminds/v5/sands/miscellaneous/viewer_specification.py b/fairgraph/openminds/v5/sands/miscellaneous/viewer_specification.py index 361a625d..fc9b1115 100644 --- a/fairgraph/openminds/v5/sands/miscellaneous/viewer_specification.py +++ b/fairgraph/openminds/v5/sands/miscellaneous/viewer_specification.py @@ -15,7 +15,7 @@ class ViewerSpecification(KGEmbedded, OMViewerSpecification): """ type_ = "https://openminds.om-i.org/types/ViewerSpecification" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("anchor_points",) diff --git a/fairgraph/openminds/v5/sands/non_atlas/custom_anatomical_entity.py b/fairgraph/openminds/v5/sands/non_atlas/custom_anatomical_entity.py index 93746ba0..b85a3b00 100644 --- a/fairgraph/openminds/v5/sands/non_atlas/custom_anatomical_entity.py +++ b/fairgraph/openminds/v5/sands/non_atlas/custom_anatomical_entity.py @@ -16,7 +16,7 @@ class CustomAnatomicalEntity(KGObject, OMCustomAnatomicalEntity): type_ = "https://openminds.om-i.org/types/CustomAnatomicalEntity" default_space = "spatial" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/sands/non_atlas/custom_annotation.py b/fairgraph/openminds/v5/sands/non_atlas/custom_annotation.py index 26961fdb..828343e9 100644 --- a/fairgraph/openminds/v5/sands/non_atlas/custom_annotation.py +++ b/fairgraph/openminds/v5/sands/non_atlas/custom_annotation.py @@ -15,7 +15,7 @@ class CustomAnnotation(KGEmbedded, OMCustomAnnotation): """ type_ = "https://openminds.om-i.org/types/CustomAnnotation" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = None # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("coordinate_framework", "criteria_quality_type", "criteria_type", "type") diff --git a/fairgraph/openminds/v5/sands/non_atlas/custom_coordinate_framework.py b/fairgraph/openminds/v5/sands/non_atlas/custom_coordinate_framework.py index 5613556e..372a248d 100644 --- a/fairgraph/openminds/v5/sands/non_atlas/custom_coordinate_framework.py +++ b/fairgraph/openminds/v5/sands/non_atlas/custom_coordinate_framework.py @@ -16,7 +16,7 @@ class CustomCoordinateFramework(KGObject, OMCustomCoordinateFramework): type_ = "https://openminds.om-i.org/types/CustomCoordinateFramework" default_space = "spatial" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/specimen_prep/activity/cranial_window_preparation.py b/fairgraph/openminds/v5/specimen_prep/activity/cranial_window_preparation.py index 5acb58a1..d61dd8f5 100644 --- a/fairgraph/openminds/v5/specimen_prep/activity/cranial_window_preparation.py +++ b/fairgraph/openminds/v5/specimen_prep/activity/cranial_window_preparation.py @@ -19,7 +19,7 @@ class CranialWindowPreparation(KGObject, OMCranialWindowPreparation): type_ = "https://openminds.om-i.org/types/CranialWindowPreparation" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v5/specimen_prep/activity/tissue_culture_preparation.py b/fairgraph/openminds/v5/specimen_prep/activity/tissue_culture_preparation.py index b0fe3df4..9573604a 100644 --- a/fairgraph/openminds/v5/specimen_prep/activity/tissue_culture_preparation.py +++ b/fairgraph/openminds/v5/specimen_prep/activity/tissue_culture_preparation.py @@ -19,7 +19,7 @@ class TissueCulturePreparation(KGObject, OMTissueCulturePreparation): type_ = "https://openminds.om-i.org/types/TissueCulturePreparation" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v5/specimen_prep/activity/tissue_sample_slicing.py b/fairgraph/openminds/v5/specimen_prep/activity/tissue_sample_slicing.py index f11fcaef..735cc990 100644 --- a/fairgraph/openminds/v5/specimen_prep/activity/tissue_sample_slicing.py +++ b/fairgraph/openminds/v5/specimen_prep/activity/tissue_sample_slicing.py @@ -19,7 +19,7 @@ class TissueSampleSlicing(KGObject, OMTissueSampleSlicing): type_ = "https://openminds.om-i.org/types/TissueSampleSlicing" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v5/specimen_prep/device/slicing_device.py b/fairgraph/openminds/v5/specimen_prep/device/slicing_device.py index c18f2e83..e762730b 100644 --- a/fairgraph/openminds/v5/specimen_prep/device/slicing_device.py +++ b/fairgraph/openminds/v5/specimen_prep/device/slicing_device.py @@ -16,7 +16,7 @@ class SlicingDevice(KGObject, OMSlicingDevice): type_ = "https://openminds.om-i.org/types/SlicingDevice" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "name" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/specimen_prep/device/slicing_device_usage.py b/fairgraph/openminds/v5/specimen_prep/device/slicing_device_usage.py index ee436a7b..1fb1df1f 100644 --- a/fairgraph/openminds/v5/specimen_prep/device/slicing_device_usage.py +++ b/fairgraph/openminds/v5/specimen_prep/device/slicing_device_usage.py @@ -16,7 +16,7 @@ class SlicingDeviceUsage(KGObject, OMSlicingDeviceUsage): type_ = "https://openminds.om-i.org/types/SlicingDeviceUsage" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/openminds/v5/stimulation/activity/stimulation_activity.py b/fairgraph/openminds/v5/stimulation/activity/stimulation_activity.py index 779490d4..9973487d 100644 --- a/fairgraph/openminds/v5/stimulation/activity/stimulation_activity.py +++ b/fairgraph/openminds/v5/stimulation/activity/stimulation_activity.py @@ -19,7 +19,7 @@ class StimulationActivity(KGObject, OMStimulationActivity): type_ = "https://openminds.om-i.org/types/StimulationActivity" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [] existence_query_properties = ("lookup_label",) diff --git a/fairgraph/openminds/v5/stimulation/stimulus/ephys_stimulus.py b/fairgraph/openminds/v5/stimulation/stimulus/ephys_stimulus.py index 98665b09..2867cce4 100644 --- a/fairgraph/openminds/v5/stimulation/stimulus/ephys_stimulus.py +++ b/fairgraph/openminds/v5/stimulation/stimulus/ephys_stimulus.py @@ -16,7 +16,7 @@ class EphysStimulus(KGObject, OMEphysStimulus): type_ = "https://openminds.om-i.org/types/EphysStimulus" default_space = "in-depth" - SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") + SORT_PROPERTY = "lookupLabel" # forward properties are defined in the parent class (in openMINDS-Python) reverse_properties = [ Property( diff --git a/fairgraph/queries.py b/fairgraph/queries.py index 6ac992fa..6ec6c692 100644 --- a/fairgraph/queries.py +++ b/fairgraph/queries.py @@ -368,37 +368,16 @@ def serialize(self) -> Dict[str, Any]: return query -#: Order, most preferred first, in which a generated query picks its single sort key. -#: The names are the camelCase schema names used as ``QueryProperty.name`` (e.g. the Python -#: attribute ``lookup_label`` is the schema name ``lookupLabel``). ``name`` is preferred because -#: its values are human-readable and sort meaningfully; ``lookupLabel`` is deliberately last -#: because it embeds atlas/project prefixes, camel-case and sometimes DOIs, so sorting by it -#: groups by origin scheme first and looks cluttered. ``synonyms`` is excluded: it is -#: list-valued and not a sensible sort key. -#: -#: This is the default priority. Generated openMINDS classes carry their own ``SORT_PRIORITY`` -#: class attribute (see the builder's ``DEFAULT_SORT_PRIORITY`` / ``SORT_PRIORITY_EXCEPTIONS``), -#: and a few classes override it — e.g. ``ParcellationEntity`` and ``ParcellationEntityVersion`` -#: put ``lookupLabel`` first so that terms from the same atlas stay together. -#: -#: The KG API allows ``"sort": true`` on only one property, and only at the root level, so -#: exactly one property is chosen and it is always a top-level property. -SORT_PRIORITY = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") - - -def choose_sort_property(query_properties, priority=SORT_PRIORITY): - """ - Return the single top-level ``QueryProperty`` to sort a generated query by, or ``None``. - - The first top-level property whose ``name`` appears in ``priority`` (in priority order) is - chosen; this satisfies the KG's constraint of exactly one ``"sort": true`` at the root level. - ``priority`` defaults to the module-level :data:`SORT_PRIORITY`. If no sortable property is - present, returns ``None`` so no sort is requested. - """ - for sort_name in priority: - for prop in query_properties: - if prop.name == sort_name: - return prop +#: A generated query sorts on exactly one top-level property. Which property to use is decided +#: once, at build time: the generated openMINDS classes carry a ``SORT_PROPERTY`` class attribute +#: (see the builder's DEFAULT_SORT_PRIORITY / SORT_PRIORITY_EXCEPTIONS in update_openminds.py) +#: holding the camelCase schema name of the property to sort by, or ``None``. The Knowledge Graph +#: API allows ``"sort": true`` on only one property, and only at the root level. +def find_sort_property(query_properties, name): + """Return the top-level ``QueryProperty`` whose ``name`` matches, or ``None``.""" + for prop in query_properties: + if prop.name == name: + return prop return None diff --git a/test/test_queries.py b/test/test_queries.py index f12b2816..e65a1be7 100644 --- a/test/test_queries.py +++ b/test/test_queries.py @@ -525,11 +525,10 @@ def test_generate_query_single_root_level_sort_key(mock_client): """Generated queries carry at most one 'sort': true, on a root-level property only. The KG query API allows sorting on exactly one property, at the root level. This pins - that constraint and the deliberate priority order in which the sort property is chosen. - Most classes use the default priority (SORT_PRIORITY in fairgraph/queries.py), but a few - classes override it via a per-class SORT_PRIORITY attribute (see the builder's - SORT_PRIORITY_EXCEPTIONS); ParcellationEntity sorts by lookup_label so that terms from the - same atlas stay together. + that constraint. Which property is used is decided at build time and baked into each + generated class's SORT_PROPERTY attribute (see the builder's DEFAULT_SORT_PRIORITY / + SORT_PRIORITY_EXCEPTIONS); ParcellationEntity sorts by lookup_label so that terms from + the same atlas stay together. """ import fairgraph.openminds.v4.core as v4core import fairgraph.openminds.v4.sands as v4sands @@ -575,30 +574,28 @@ def test_generate_query_no_sort_when_no_name_like_property(mock_client): def test_per_class_sort_priority_override(): - """The generated SORT_PRIORITY class attribute pins the deliberate per-class overrides. + """The generated SORT_PROPERTY class attribute pins the build-time per-class decision. - ParcellationEntity(-Version) prefer lookup_label so that terms from the same atlas stay - together, unlike every other class which uses the default priority. This guards against - the builder regeneration silently reverting the override (see SORT_PRIORITY_EXCEPTIONS in - builder/update_openminds.py). + ParcellationEntity(-Version) sort by lookup_label so that terms from the same atlas stay + together, unlike every other class which sorts by name. This guards against the builder + regeneration silently reverting the override (see SORT_PRIORITY_EXCEPTIONS in + builder/update_openminds.py). SORT_PROPERTY is a single camelCase property name (or None), + decided once at build time, not a priority list. """ import fairgraph.openminds.v4.sands as v4sands import fairgraph.openminds.v5.sands as v5sands import fairgraph.openminds.v4.ephys as v4ephys - from fairgraph.queries import SORT_PRIORITY - - default = ("name", "fullName", "shortName", "familyName", "abbreviation", "lookupLabel") - override = ("lookupLabel", "name", "fullName", "shortName", "familyName", "abbreviation") - - assert v4sands.ParcellationEntity.SORT_PRIORITY == override - assert v4sands.ParcellationEntityVersion.SORT_PRIORITY == override - assert v5sands.ParcellationEntity.SORT_PRIORITY == override - assert v5sands.ParcellationEntityVersion.SORT_PRIORITY == override - # a class without an override still uses the default - assert v4ephys.Electrode.SORT_PRIORITY == default - # and the module default matches - assert SORT_PRIORITY == default - assert SORT_PRIORITY + import fairgraph.openminds.v4.core as v4core + + assert v4sands.ParcellationEntity.SORT_PROPERTY == "lookupLabel" + assert v4sands.ParcellationEntityVersion.SORT_PROPERTY == "lookupLabel" + assert v5sands.ParcellationEntity.SORT_PROPERTY == "lookupLabel" + assert v5sands.ParcellationEntityVersion.SORT_PROPERTY == "lookupLabel" + # a class without an override uses the default: name first if present + assert v4ephys.Electrode.SORT_PROPERTY == "name" + # classes without a name-like property sort on their next-best property or None + assert v4core.Organization.SORT_PROPERTY == "fullName" + assert v4core.Person.SORT_PROPERTY == "familyName" @skip_if_no_connection