eclipse-lyo / lyo

Eclipse Lyo, a Java SDK for OSLC-based tool integration
https://oslc.github.io/developing-oslc-applications/eclipse_lyo/eclipse-lyo.html
Eclipse Public License 2.0
15 stars 16 forks source link

Cannot link to blank nodes #155

Open berezovskyi opened 6 years ago

berezovskyi commented 6 years ago

Lyo allows resources to the serialised as blank nodes if null URI is passed the ctor. There might be a need to link to the still. Turtle and other formats allow to reference blank nodes by their IDs:

image

However, there is no way to create a Link to a resource instance w/o an about URI that would later be resolved to a blank node reference at the marshalling stage by the JMH. Here is the expected behaviour:

_:f10d8ddad853 a :clear;
      :prop "value" .

:res1 a :resource;
  :clear _:f10d8ddad853 .

Here is the actual behaviour:

[ a :clear;
    :prop "value" ] .

:res1 a :resource .
berezovskyi commented 6 years ago

cc @jadelkhoury @jamsden @yashkhatri