Giter VIP home page Giter VIP logo

code-generation's Introduction

code-generation's People

Contributors

csnyulas avatar ignazio1977 avatar jvendetti avatar matthewhorridge avatar sesuncedu avatar stdotjohn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

code-generation's Issues

code generation is not generating data and object properties whose domain is a composition of multiple classes

Hi,

I am using the code generation feature to deploy my ontology in the java runtime.
I realized that the properties which have a domain composed by multiple classes with the OR statement are not being generated in the java interfaces as properties. It applies for both data and object properties.
Please see the picture below:
image
image
image

When the range is composed with several classes it works fine. The problem only occurs when the domain is composed by several classes, as showed in the pics.

What can I do instead of modifying the code manually to add the properties?

P.S: I am using Protégé version 5.2, but I've used 5.5 as well and the problem occurs too.

Many thanks in advance.

Using the generated java code

I'm trying to use the generated java code by this plugin in protége. However, compilation fails with the following error in various functions of the created Factory. For a protege class called Binding:

screenshot_1

The same happens for all getWrappedIndividual calls.

Multi-layered Inheritance of labels from multiple classes

Hi, I'm facing the following issue and am not quite sure whether it's an issue of the Protege Java Code Generation plugin or of my model. Would be very happy about feedback on this.

I have a class A which is subClassOf the classes B and C. B and C both are in the domain of several (distinct) ObjectProperties. Class D is a SubClass of A.

When exporting I expected the class D to have methods for all objectProperties that either A,B,C is part of the domain. The problem here is that Class D only gets methods for the properties of B(and NOT C). Still class A has all properties from both B and C. Thus the problem only seems to occur in the second generation inheritance.

I hope my description makes sense and was not too confusing.

Attached there is a txt file containing the problematic ontology in ttl format. I hope you get the idea.
problem.txt

Can't wait for feedback, thanks a lot

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.