Plug-in for the Protege Desktop ontology editor for generating Java code from an OWL ontology.
More information is available on the Protege wiki:
http://protegewiki.stanford.edu/wiki/Protege-OWL_Code_Generator
Generate Java code from an OWL ontology from within the Protege Desktop editing environment.
Plug-in for the Protege Desktop ontology editor for generating Java code from an OWL ontology.
More information is available on the Protege wiki:
http://protegewiki.stanford.edu/wiki/Protege-OWL_Code_Generator
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:
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.
The constructors of domain classes get generated using the arguments (OWLOntology ontology, IRI iri) instead of (CodeGenerationInference inference, IRI iri) leading to compilation errors when calling the constructor of WrappedIndividualImpl using these arguments.
When using ReasonerBasedInference, the creation of a new domain object fails as the reasoner does not recognize the new object as a member of the specified OWLClass (e.g. in context of createWrappedIndividual(String, OWLClass, Class) of the FactoryHelper class).
Generate Java code for what purpose? Just random Java code or does is it meant to do something?
If the class name contains any invalid characters like a colon, the code generated is invalid.
For example, see here: https://gist.github.com/AmitaChauhan/507020fd120ef4da8b95df21b5f3d243
The Block
entity is renamed to :Block
and this causes the generation of file named :Block.java
with the class :Block
in it.
In particular to set the code-generator dependency that is necessary to run the generated code.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.