Hi Johannes,

did you try to call the constructor defined in UnnamedStreamPipesEntity (just 
call the empty contructor with super() in all constructors of DataLakeMeasure)?

Dominik

-----Original Message-----
From: Johannes Tex <[email protected]> 
Sent: Friday, March 6, 2020 2:00 PM
To: [email protected]
Subject: [Help wanted] Jslod Serialization

Hello everyone,

the REST endpoint for receiving the information about the stored data in the 
data lake ("../datalake/info") is currently serializing the class 
'DataLakeMeasure' (org.apache.streampipes.rest.impl.datalake.DataLakeMeasure) 
in JSON, but it should be JSONLD.

I tried to change the serialization, but it does not work. I always get the 
error:
 "No identifier was found for 
[org.apache.streampipes.model.datalake.DataLakeMeasure@3165a907]!  The instance 
should implement Identifiable, have one or more properties annotated with 
@RdfId, or have an id function provided to the mapper.". 
The 'DataLakeMeasure' extends the 'UnnamedStreamPipesEntity' 
(org.apache.streampipes.model.base.UnnamedStreamPipesEntity), which has a 
propertety annotated with @RdfId.

Someone has an idea, what could be the problem? See Branch [STREAMPIPES-79]


Regards
Johannes


Reply via email to