From 7f2054ec2050cc3fbecc26117605b540a09d7371 Mon Sep 17 00:00:00 2001 From: Pedro Limeres <113518495+plg22@users.noreply.github.com> Date: Fri, 23 Feb 2024 13:38:02 +0100 Subject: [PATCH 1/2] Fixed error position DB --- docs/src/06_runtime_view.adoc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/src/06_runtime_view.adoc b/docs/src/06_runtime_view.adoc index 326d569..cc8c3f7 100644 --- a/docs/src/06_runtime_view.adoc +++ b/docs/src/06_runtime_view.adoc @@ -11,7 +11,10 @@ Sequence diagram for showing the process of a user logging in: [plantuml,"Login diagram",png] ---- actor User +collections FrontEnd +collections UsersService database DB + User -> FrontEnd: Request login FrontEnd -> UsersService: loginUser() UsersService -> DB: checkUserData() @@ -27,7 +30,10 @@ Sequence diagram for showing the process of a user creating an account: [plantuml,"Sign Up diagram",png] ---- actor User +collections FrontEnd +collections UsersService database DB + User -> FrontEnd: Request sign up FrontEnd -> UsersService: registerUser() UsersService -> DB: checkCredentialsExist() From d5925d5aad144d3243604f21d0bd76ce9964fc56 Mon Sep 17 00:00:00 2001 From: Pedro Limeres <113518495+plg22@users.noreply.github.com> Date: Sat, 24 Feb 2024 12:26:25 +0100 Subject: [PATCH 2/2] New retrieval diagram --- docs/src/06_runtime_view.adoc | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/docs/src/06_runtime_view.adoc b/docs/src/06_runtime_view.adoc index cc8c3f7..388cbae 100644 --- a/docs/src/06_runtime_view.adoc +++ b/docs/src/06_runtime_view.adoc @@ -44,4 +44,24 @@ UsersService -> UsersService: signUp() UsersService -> FrontEnd: Redirect to login page ---- -=== +=== Data retrieval from WikiData + +Sequence diagram for the process of retrieving data from WikiData + +[plantuml,"WikiData diagram",png] +---- +actor User +collections FrontEnd +collections QuestionGenerator +database Wikidata + +User -> FrontEnd: Request a game +FrontEnd -> QuestionGenerator: createGame() +QuestionGenerator-> Wikidata: Sparql query +Wikidata-> QuestionGenerator : entitites data +QuestionGenerator-> QuestionGenerator: fillQuestionStack() +QuestionGenerator-> QuestionGenerator: popGameQuestions() +QuestionGenerator-> FrontEnd: Send game +FrontEnd -> User: Question 1 +User-> FrontEnd: Answer 1 +---- \ No newline at end of file