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

[Kristina, Mutti] Web Back End - Django, API and Databases #120

Closed
3 tasks done
kristinatrajkovski opened this issue Apr 14, 2024 · 8 comments
Closed
3 tasks done
Assignees
Labels
ASAP urgent, should be done within a day or so back end related to the app's functions, storage, features priority: high
Milestone

Comments

@kristinatrajkovski
Copy link
Contributor

kristinatrajkovski commented Apr 14, 2024

We will be working on Web Back End at least for the week of April 15th. The important thing is to fully understand what features our requested API can and should provide, research the allowed environment which includes Django, and create at least a minor prototype of the API itself.

  • Research Django
  • Research Wikidata and its Queries
  • Create an example API

Deadline: Tuesday, April 16th
Estimated effort: 3-4 hours

Reviewers: @ceylingebes @Taha-Topaloglu

@kristinatrajkovski kristinatrajkovski added priority: high ASAP urgent, should be done within a day or so back end related to the app's functions, storage, features labels Apr 14, 2024
@kristinatrajkovski kristinatrajkovski added this to the Milestone 2 milestone Apr 14, 2024
@kristinatrajkovski
Copy link
Contributor Author

I have created a query in SPARQL which retrieves title, description, longitude, and latitude of some locations in Istanbul (note that we definitely need much more information). I have also integrated it into a django project just to see how it would work. Please check 26c58aa for the current results.

@kristinatrajkovski
Copy link
Contributor Author

Very large update can be seen at 3dc83eb . Now we can make single-word searches and display various data (name, description, coordinates, inception, 5 nearby places, 5 places from the same period).

@Mutti499
Copy link
Contributor

  • New fields named image url and Wikipedia article link added to return values.
  • New filter added according to the style of the architecture.
  • Private database searches are implemented according to the class diagrams

Last 2 features need improvement and testing

@Mutti499
Copy link
Contributor

We have some problems:

  • Null checker needs to be added
  • We are getting error in .../results/... sub url needs to be fixed immediately

@Mutti499
Copy link
Contributor

Problems solved and pull request is opened. Waiting review from our friends.

Last commit: 7e374c2

@poyrazogluyigit
Copy link
Contributor

Does the API return a fixed number of results? Been trying with different inputs and I always get (at most) 10 results.

@kristinatrajkovski
Copy link
Contributor Author

Yes the current limit is set as 10. When makig the API I just thought that would be a reasonable amount of choices we can offer to a user. If you want to decrease or increase that number for any reason let us know.

@kristinatrajkovski
Copy link
Contributor Author

Closing as it is considered done after reviewer comments and the pull request merged. Will open other issues as necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ASAP urgent, should be done within a day or so back end related to the app's functions, storage, features priority: high
Projects
None yet
Development

No branches or pull requests

3 participants