GithubHelp home page GithubHelp logo

OCCI extension (occie) to ecore about ecore HOT 4 CLOSED

occiware avatar occiware commented on June 22, 2024
OCCI extension (occie) to ecore

from ecore.

Comments (4)

philippemerle avatar philippemerle commented on June 22, 2024

Hi Mehdi,

I ran the latest cloud designer.
I created an OCCI extension following new -> Cloud Designer -> OCCI extension
I run Cloud Designer -> Generate EMF Tooling.
extension.ecore and extension.genmodel are generated.
I have tested various cases and it always worked.
Expect one case that failed: if the extension has an empty scheme then the generator produces an exception :(

So check that your extension has a correct scheme, e.g., http://extension#

from ecore.

philippemerle avatar philippemerle commented on June 22, 2024

Need to add a new OCL constraint checking that scheme are well-formed, e.g., not empty string, well-formed URI, etc.
This requires to update the OCCI metamodel, i.e., module https://github.com/occiware/ecore/tree/master/clouddesigner/org.occiware.clouddesigner.occi/

from ecore.

mehdiAhmed avatar mehdiAhmed commented on June 22, 2024

Thanks Philippe,

My scheme is not empty.
<occi:Extension xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:occi="http://schemas.ogf.org/occi" name="simulation" scheme="http://occiware.org/simulation#">
And Generate EMF Tooling does not work. Maybe there are a bug in Studio for Linux !

from ecore.

philippemerle avatar philippemerle commented on June 22, 2024

Hi Mehdi,
I tried to generate Ecore for your simulation.occie then I saw that this extension violates OCL constraints related to Category.scheme. Then I corrected schemes (see commits ce18779).
Now I could generate the .ecore for your simulation.occie.
Coud you try too?

from ecore.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.