BlueBrain / nexus

Blue Brain Nexus - A knowledge graph for data-driven science
https://bluebrainnexus.io/
Apache License 2.0
280 stars 74 forks source link

Creating a resource POST with reserved Json-LD key @reverse might fail #93

Open umbreak opened 6 years ago

umbreak commented 6 years ago

From nexus-kg created by umbreak : BlueBrain/nexus-kg#411

When a payload is posted with the special key @resverse on the @context object and without an @id, the graph.primaryNode call might detect a "wrong" primaryNode.

Note that the logic in graph.primaryNode itself is not wrong, because if when designing the the resource one decide to add the @reverse key on a property embedded to the "primary" one, it is effectively saying that the primaryNode becomes that property.

I is an edge case, but we have to find out what to do with it. For schemas posted against the platform without @id, is not an edge case.

This was already discussed in #405

mdupont commented 5 years ago

I think #405 is not the real PR you wanted to link to, there is nothing related to the current issue

umbreak commented 5 years ago

For now this JsonLD 1.1 feature is not supported and we should state that on the documentation. Keep it open for when JsonLD-Java supports that feature.

adulbrich commented 3 years ago

@umbreak is it now supported?