antonycc / libschemaorg

A Java library of the Schema.org ontology built using OWL to Java and the OWL definition from Schema.org.
Mozilla Public License 2.0
1 stars 0 forks source link

CreativeWork > HowTo > Recipe #1

Open belaborbely-jyu opened 1 year ago

belaborbely-jyu commented 1 year ago

I am just wondering, why there is no class for Recipe? Could you explain it? I have to me get familiar with OWL to Java.

antonycc commented 1 year ago

Yes, Béla. Recipe exists in the OWL schema but I do not generate all the classes by default. This is to reduce build time and help me deal with edge cases as they come up.

There is a build file in the module regenerate-lib which includes a specific list of classes and property types. All these classes and classes they need are included. If you rebuild the project with Recipe added to the list between lines 71 and 77 of this file you should see a Java class for Recipe generated: (https://github.com/antonycc/libschemaorg/blob/main/regenerate-lib/build.gradle.kts)

Thanks,

Antony,