Interactions-HSG / yggdrasil

A framework for programming distributed hypermedia environments for autonomous agents.
https://interactions-hsg.github.io/yggdrasil/
Apache License 2.0
7 stars 8 forks source link

Yggdradil Update: HMAS Ontology, refactor, updated dependencies & build tools and various smaller changes #50

Closed KaiTries closed 3 weeks ago

KaiTries commented 1 month ago

Main changes:

KaiTries commented 1 month ago

TO-DOs before merge:

KaiTries commented 4 weeks ago

TD ontology wraps Thing Descriptions in ResourceProfiles to more closely represent the resources.

danaivach commented 4 weeks ago

@KaiTries, I observe the following issue:

Agent bodies are initialized as CArtAgO artifacts, but focusing on them leads to a NullPointerException and a 500 server error.

Probable Reason In CartagoVerticle.focus(), the body artifact name is passed as artifactName (e.g. artifactName = agent0, given that bodies are named based on the X-Agent-LocalName header value).

However, in Workspace.makeAgentBodyArtifact() (cartago 3.2), body artifacts are initialized with names in the form "body_" + body.getAgentId().getAgentName() (e.g, body_https://wiser-solid-xi.interactions.ics.unisg.ch/agent0/profile/card#me, given that agents are named based on the X-Agent-WebID).

Therefore, the body artifact cannot be found in the workspace due to name mismatch (probably line 349).

To reproduce

KaiTries commented 3 weeks ago

Thanks for the detailed report @danaivach. This issue went under the radar because we only tested for focusing on workspaces and artifacts.