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

DanNet resources on the web #13

Closed
simongray opened this issue Aug 31, 2021 · 8 comments
Closed

DanNet resources on the web #13

simongray opened this issue Aug 31, 2021 · 8 comments
Labels
enhancement New feature or request

Comments

@simongray
Copy link
Member

simongray commented Aug 31, 2021

The DanNet-specific resources/entities should be resolvable via their URI.

Navigating to the URI should result in some form of content negotiation and the return of either a data structure (JSON, EDEN, TTL) or perhaps a basic HTML web page. The data comes directly from an instance of a TDB graph. This is in line with recommendations for linked data.

The new DanNet OWL schema should also resolve. This is a more specific case (effectively just serving static data).

@simongray simongray added the enhancement New feature or request label Aug 31, 2021
@simongray
Copy link
Member Author

Basic rate limiting should also be in place so that the website does not become a public API for any external client website, but not much that it limits the individual user.

simongray added a commit that referenced this issue Nov 4, 2021
- schema downloads
- DanNet entity views
- support external entities too
- nice appearance
- responsive design
@simongray
Copy link
Member Author

simongray commented Nov 15, 2021

As of c66a246 there is a unfinished search endpoint, translations for everything except the UI and the GWA relations, and an unused autocompletion endpoint.

Now it seems possible that the project could benefit from being turned into a SPA, since the autocompletion )and probably several future features) will require some JS anyway and my prior SPA-making experience will make this process a lot smoother. However, this does entail setting up shadow-cljs for the project, maybe setting up frontend routing, converting the Hiccup in use to real reagent components, making more API-endpoints + extending the functionality of existing ones... so not a small task.

It's probably an advantage in the long run, especially considering the fact that I will eventually have to make an editor as well to replace the obsolete Python one.

@simongray
Copy link
Member Author

The basic web app architecture has been document at https://github.com/kuhumcst/DanNet/blob/master/doc/web.md

@simongray
Copy link
Member Author

Currently waiting for a reply from the representative from DSL that Sanni has out me in touch with.

@simongray
Copy link
Member Author

Awaiting KU-IT for domain transfer. Hopefully it works out this time.

simongray added a commit that referenced this issue Dec 13, 2022
- basic Docker Compose setup
- instructions for building a JAR in README
- use TDB2 by default + reuse persisted data
- add a log entry whenever the database is rebuilt
- database name hash based on input files and bootstrap code
@simongray
Copy link
Member Author

simongray commented Dec 13, 2022

As of 0780566 the basic Docker setup seems to use ~1.4GB when relatively idle. I need to look into whether 2GB is enough for rebuilding the database. Still needs Caddy, but I'm sure that won't add much.

In any case, sounds like maybe 3GB is needed for the virtual server to ensure that it keeps running smoothly, although it would be fantastic if it could run on only 2GB.

simongray added a commit that referenced this issue Dec 14, 2022
@simongray
Copy link
Member Author

Attempting to run a rebuild using a 2GB limit results in a lot of swapping, so the limit for the Java process unfortunately still needs to be set at 3GB. This would mean that idle period require ~2GB and the occasional rebuilds maybe ~4GB of memory from the server.

simongray added a commit that referenced this issue Dec 14, 2022
simongray added a commit that referenced this issue Dec 14, 2022
simongray added a commit that referenced this issue Dec 14, 2022
@simongray
Copy link
Member Author

Currently waiting for KU-IT to create a server. Closing this issue for now, since the basic setup is done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant