kbss-cvut / s-pipes

Tool for execution of RDF-based pipelines.
GNU Lesser General Public License v3.0
4 stars 5 forks source link

Validation error should have in result-set primitive types resolved #267

Closed palagdan closed 2 weeks ago

palagdan commented 3 weeks ago

Resolves #265

palagdan commented 3 weeks ago

@blcham I replaced String with RDFNode in the evidences map, which resolved the primitive type issue. Output now: Screenshot from 2024-08-21 14-15-15 If I understand correctly, I need to add @type to the evidence columns.

palagdan commented 3 weeks ago

@blcham When I try to add @type to the evidence columns, I receive evidence columns with a "s-pipes" prefix. I have tried various solutions, but I am unable to remove this prefix. But the overall result looks fine for me. Screenshot from 2024-08-22 10-21-05

palagdan commented 3 weeks ago

@blcham When I remove prefix I receive this json-ld. It happens when I add types to the variables: Screenshot from 2024-08-22 14-14-10

blcham commented 2 weeks ago

Inputs of last 2 steps of conversion to JSON-LD

1. Frameing expanded JSON-LD

blcham commented 2 weeks ago

@palagdan message above is what i needed before from you to play with it in JSON-LD playground -- i.e. the frame and the input. Hopefully, I have fixed the issue. Note how it works in https://tinyurl.com/4e6t9yum and how I fixed it in the following two commits:

blcham commented 2 weeks ago

@palagdan one more thing is missing. Could you do a test for getFramedAndCompactedJsonLd() ?

The test should be simple, just testing evidences or possibly something like message using structure of object that the method returns. We can use example above to test it or example from hello world -- i believe it could be done in < 15 mins.

In test called something like testGetFramedAndCompactedJsonLdReturnsFramedOrderedEvidences() I would assume what the structure of JSON object from the debugger: image

blcham commented 2 weeks ago

@palagdan please before merging this ticket also improve documentation of https://github.com/kbss-cvut/s-pipes/blob/main/doc/examples/constraint-validation/constraint-validation.md: