Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Intermediate templates #10

Open
Sebastiano-G opened this issue Dec 19, 2023 · 0 comments
Open

Intermediate templates #10

Sebastiano-G opened this issue Dec 19, 2023 · 0 comments

Comments

@Sebastiano-G
Copy link
Collaborator

To satisfy the constraints of complex models while preserving the usability and user-friendliness of the product, Template creators should be allowed to define multiple linked Templates (referring to different classes) to be associated with a single Web form. In other words, the end-user should be able to generate multiple Records (with different Classes) by filling a single form.

For instance, let's consider the following example about the modelling of provenance information with CIDOC-CRM:

<https://example.com/work/663763> a crm:E22_Man-made-object ;
     crm:P24i_changed_ownership_through <https://example.com/acquisition/22734637> ;
     crm:P24i_changed_ownership_through <https://example.com/acquisition/22734638> ;
     crm:P24i_changed_ownership_through <https://example.com/acquisition/22734639> .

<https://example.com/acquisition/22734637> a crm:E8_Acquisition ;
    crm:P22_transferred_title_to <https://example.com/person/223> ;
    crm:P4_has_time-span <https://example.com/acquisition_timespan/0466456> .

<https://example.com/acquisition_timespan/0466456> a crm:E52_Time-Span ;
	crm:P81a_end_of_the_begin "1640-01-01"^^xsd:date ;
	crm:p81b_begin_of_the_end "1862-12-31"^^xsd:date .

Instead of filling in three different forms (Man-made-object; Acquisition; Time-Span), the end-user will need to select the Man-made-object Template, fill in a "Time-span of the Acquisition" input field, and save the data. The system will automatically process it and generate three separate Records (one for each class).

Sebastiano-G added a commit that referenced this issue Feb 7, 2024
Introduced front-end functions to manage subforms while creating a record (not finished yet) + fixed minor issues related to the new fields with regard to template creation and back-end management
Sebastiano-G added a commit that referenced this issue Feb 12, 2024
Updated back-end management for Intermediate Templates inputs: mechanism for creating multiple Records (+ related named graphs) based on different Templates; made them available for corrections and reviews; fixed some DOM-related script. Final visualizations (Explore section) is not available yet.
Created an option to make fields hidden. Related mapping behaviours are still to be defined.
Sebastiano-G added a commit that referenced this issue Feb 14, 2024
#11 : introduced a mechanism to retrieve and save previously added hidden triples while updating a named graph;
#10 : introduced the possibility to integrate advanced field types (e.g. Textbox > entity; SKOS vocabularies; etc.) within subrecord forms. Automatic suggestions' visualisation should be improved (i.e., needs to be properly placed within the corresponding section). Moreover, two novel functions have been introduced to either remove entire subrecords or modify them (the latter function is not over yet: advanced fields require further attention)
Sebastiano-G added a commit that referenced this issue Feb 19, 2024
#11 : removed hidden triples from published records' visualization (app.py); fixed the script for retrieving previously added hidden triples (queries.py, mapping.py); introduced a control algorithm to avoid templates' issues, e.g.: fields can't be both hidden and mandatory (main.js, template.html).
#10 : improved graphical visualisation (main.css, main.js); fixed the function for handling multiple inner sub-records
Sebastiano-G added a commit that referenced this issue Feb 22, 2024
#10 : The recursion function dedicated to managing the subrecords produced (mapping.py) has been optimized to make any contributions faster and to reduce the number of steps required. On the Record creation page, it is now possible to select subrecords already created for the same OWL class, including subrecords not yet saved and created on the same page (main.js)
#7 Fixed problems with homonyms and creation of previously deleted templates. The feature will need to be updated when multiple classes for templates are introduced.
Sebastiano-G added a commit that referenced this issue Feb 28, 2024
Mapping.py functions have been rewritten to ensure efficient handling of newly created subrecords. Recursion has been improved by a new way of expressing subrecord links in the front-end environment. Main.js was modified for this purpose and to correct the function dedicated to editing subrecords.
It is now possible to reuse a subrecord entity within the same record form.
Sebastiano-G added a commit that referenced this issue Mar 28, 2024
#13 : providing users with the opportunity to select a main language when inserting a primary key label
#10 : currently adapting the entire Intermediate Templates mechanism to newly introduced features
Sebastiano-G added a commit that referenced this issue May 10, 2024
The Knowledge Extraction feature has been partially updated to include its usage inside sub-Templates
Sebastiano-G added a commit that referenced this issue May 17, 2024
The Knowledge Extraction feature has been adapted to the Intermediate Template structures. It becomes possible to extract Key Entities to enrich subrecords' description. Modify.html and review.html are not ready yet.
Sebastiano-G added a commit that referenced this issue Jun 11, 2024
#10 : Knowledge Extraction min fix
#6 : Template creation form has been updated. It is now possible to specify multiple classes for the same template. Consequently, data retrieval functions have been adapted to this new feature.
Sebastiano-G added a commit that referenced this issue Jul 9, 2024
template creators can now associate multiple templates with the same input field. End-users have to choose one of them through a select (dropdown) element.
Sebastiano-G added a commit that referenced this issue Aug 5, 2024
#10 : modify.html bugs have been fixed;
#13 : Record's main language is not set to the Label main language;
#14 : term.html now available for any URI (not URL)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant