In rdfAlchemy in the commands.py file there is a section of commands that was launched for this very purpose. You didn’t use it at that time, but this is exactly what you asked about how to create skyth python from an ontology.
In fact, he uses pasteurized "commands." If you go to the rdfalchemy subdirectory and type:
paster rdfSubject -h
you must see:
Usage: /home/phil/venv/some_path/bin/paster rdfSubject [options] paster rdfalchemy.commands Create an rdfSubject subclass with descriptors from an RDF Schema will set the rdf_type Descriptors will be created 1. rdfs:domain and rdfs:range are respected 2. rdfSingle is used for properties that are * owl:InverseFunctionalProperty * owl:FunctionalProperty 3. rdfList or rdfContainer is used if the proper range is set 4. rdfMultiple is used for all others The resulting .py file is ment to be a skeleton for the developers confvience. Do not expect to be able to use the raw results. Create an rdfSubject subclass with descriptors from an RDF Schema Options: -h,
source share