eclipse / lyo.designer

lyo.designer
Eclipse Public License 2.0
11 stars 10 forks source link

Support for SHACL shapes. #3

Open yashkhatri opened 6 years ago

yashkhatri commented 6 years ago

Lyo Designer currently supports only OSLC Resource Shapes. The idea is to enhance it to support SHACL Shapes as well.

This will be done one step at a time.

  1. Enhance underlying EMF meta-model and GUI to support SHACL shapes.
  2. Enhance Code Generator to support creation of SHACL shapes.
  3. Enhance export functionality to support SHACL shapes.
jamsden commented 6 years ago

I wonder if we should explore the relationship between SHACL and Resource Shapes, given the investment OSLC has on ResourceShapes. Is it possible to transform existing resource shapes into SHACL? Could this be used to normalize these two constraint languages in eclipse/Lyo so that we have two syntactical representations of the same constraints?

jadelkhoury commented 6 years ago

We already support SHACL annotations. Jena-model-helper can marshal/unmarhsal with either OSLC and SHACL annotations. We can produce either shape from either annotations. The upcoming export functionality will allow user to choose whether to export OSLC or shacl Shapes.

So we already have it all in the SDK libraries. Now we want to support the graphical modeling of shacl, plus generation of shacl annotations.

jadelkhoury commented 6 years ago

But it would be good to “formalize” this transformation we have implemented. Something for the Core TC once we have something to show?

jadelkhoury commented 6 years ago

@yash! Once this is feature is in place, I think a blog to demonstrate the use of Lyo for a broader non-OSLC community could be valuable. (How to model, generate domains, marshal, etc)

yashkhatri commented 6 years ago

@jadelkhoury Yes, writing a blog is already in my ToDo list.