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

Broken vocabulary activity diagram #609

Closed
ledsoft opened this issue Mar 4, 2025 · 3 comments
Closed

Broken vocabulary activity diagram #609

ledsoft opened this issue Mar 4, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@ledsoft
Copy link
Contributor

ledsoft commented Mar 4, 2025

Popis problému

The diagram of activity in vocabulary detail does not show anything in the development version.

Image

Závažnost problému

  1. je to vážný problém
@ledsoft ledsoft added the bug Something isn't working label Mar 4, 2025
@lukaskabc
Copy link
Collaborator

I think that the change in the activity streams URI caused this.

count: "http://www.w3.org/ns/activitystreams#totalItems",

Backend sends something like:

{
  "@context": {
    "date": {
      "@id": "http://onto.fel.cvut.cz/ontologies/slovník/agendový/popis-dat/pojem/má-datum-a-čas-modifikace",
      "@type": "http://www.w3.org/2001/XMLSchema#date"
    },
    "types": "@type",
    "count": "https://www.w3.org/ns/activitystreams#totalItems"
  },
  "@graph": [
    {
      "@id": "_:552577931",
      "types": [
        "http://onto.fel.cvut.cz/ontologies/slovník/agendový/popis-dat/pojem/vytvoření-entity"
      ],
      "date": "2021-05-10",
      "count": 2
    },
    ...
  ]
}

Currently, this results in the count being undefined.
Changing the line to count: "https://www.w3.org/ns/activitystreams#totalItems", resolves the issue.

However, I don't know if the URI will always be HTTPS, so it's easy to fix, or it can be returned from BE as HTTP as well.

@ledsoft
Copy link
Contributor Author

ledsoft commented Mar 4, 2025

Thanks for investigating. I'll think about it a bit.

@ledsoft
Copy link
Contributor Author

ledsoft commented Mar 5, 2025

Fixed by updating the URI for now, created a follow-up ticket (#610) for unification of backend and frontend ontology handling.

@ledsoft ledsoft closed this as completed Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants