Closed christopher-johnson closed 6 years ago
It seems that this could be related to reading method for the PreferAudit
graph. I notice that the AS message also does not include actor
.
Even though the audit triples are created in the <http://www.trellisldp.org/ns/trellis#PreferAudit>
graph, a request with the ?ext=audit
does not return them (which I guess is the right way to do this, though the documentation suggests alternatively Prefer: return=representation; include="http://www.trellisldp.org/ns/trellis#PreferAudit"
If the fetchAuditQuads
method cannot collect any data using ext=audit
, then the message values would be empty.
Edit: I just pulled the latest master and noticed that you have already looked at this: https://github.com/trellis-ldp/trellis/commit/f21b9e558bcd546c9b96fae5f5dd602edb3b7e35
Now, I can get the triples using Prefer: return=representation; include="http://www.trellisldp.org/ns/trellis#PreferAudit"
. AFAIK, the event issue remains, however.
@christopher-johnson I noticed this last week as I began writing integration tests for the event stream. Technically, this is a duplicate of issue #56, though your description here is very useful. I definitely have this on my radar and I have a plan for addressing it, though I'd like to have #54 merged first. The key things are that the actor and the event types are not present in the event stream and they absolutely should be.
I am working on a new camel-kafka-elasticsearch integration and have noticed a possible issue related with the triplestore resource service event implementation. For some reason (as yet unknown) the event type (e.g. https://www.w3.org/ns/activitystreams#Create) is empty.
Here is an example AS message sourced from Kafka for reference:
The target types are populated. The triple is created. Could have a simple explanation, I will keep looking at it.