Informatievlaanderen / VSDS-LDESServer4J

Linked Data Event Streams Server for Java
https://informatievlaanderen.github.io/VSDS-LDESServer4J
European Union Public License 1.2
9 stars 8 forks source link

With customized version path, instead of the `dcterms:isVersionOf`, Getting Member id could not be extracted from model #1115

Closed xdxxxdx closed 6 months ago

xdxxxdx commented 7 months ago

Prerequisites: LDES Server snapshot 2.7.0. Scenario:

  1. Post stream to the API endpoint with a customized versionOfPath insteand of dcterms:isVersionOf
    
    @prefix ldes:    <https://w3id.org/ldes#> .
    @prefix tree:    <https://w3id.org/tree#>.
    @prefix sh:      <http://www.w3.org/ns/shacl#> .
    @prefix unece:   <https://vocabulary.uncefact.org/> .

a ldes:EventStream ; tree:shape [ a sh:NodeShape ] ; ldes:timestampPath unece:occurrenceDateTime ; ldes:versionOfPath unece:elementVersionId .


2. configure a view to that stream
3. Post member to the stream

**Current result:**
Member id could not be extracted from model
With the mix members algorithm,  the member is retrieved with hardcode.
https://github.com/Informatievlaanderen/VSDS-LDESServer4J/blob/265bf1fe6614203d01f69c8a00d46601e7d67610/ldes-server-port-ingest-rest/src/main/java/be/vlaanderen/informatievlaanderen/ldes/server/ingest/rest/converters/MemberConverter.java#L32

I think we should make it configurable with the stream configuration. 
`  ldes:timestampPath xx:xxxxx ;`
Tomvbe commented 6 months ago

Fix was merged last week by @jobulcke