LBRON-1364 smart search annotation datamodel#97
Open
tdn wants to merge 3 commits intodevelopmentfrom
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
To align with the way we store annotations (and reviews) in the HVT (see https://github.com/lblod/frontend-decide-human-validator and https://github.com/lblod/annotation-review-service), we choose to use the Web Annotation Ontology: http://www.w3.org/ns/oa#
In the HVT, oa:Annotation is used in 2 forms:
Each annotation has a target, which in the HVT was limited to resources of class oa:SpecificResource. To accommodate other annotations/reviews though, we need to allow other resource types as target as well. Therefore, we introduce a parent class ext:AnnotationTarget, whch oa:SpecificResource can extend.
For the smart search (UC2), we need to store two types of user feedback:
To do this, we introduce two new classes to the model that extend ext:AnnotationTarget : schema:Answer and schema:Quotation .
The model for annotations is summarized in the following diagram:

notes:
possibly, the LLM should be referenced through prov:wasAssociatedWith ?agent as in https://github.com/lblod/annotation-review-service/blob/master/controllers/annotations.ts#L357 . However, we need to confirm that the question-answering service has the correct agent URI