On Tue, Aug 13, 2013 at 4:11 PM, Márcio Vinicius <[email protected]> wrote: > 2 - The SchemaGen generates a java class from a file. Owl among the > resources are on the line 280 "valueSystolic01" (MonitorSinalVital.java) > > from what I understand this would be an individual and not a resource.
OK, so it's not a property (you'd mentioned "Property + id", so I wasn't sure what the resource was supposed to be). Even if it's an individual, I wouldn't go and modify that Java file. Rather, I'd do something more like: OntModel myModel = ...; Individual vs01 = MonitorSinalVital.inModel( myModel ).as( Individual.class ); I haven't tested that code, but something along those lines should work. Note, even though you can get the Individuals, OntProperties, and OntClasses from the vocabulary class, using those constants won't get your model (in this case `myModel`) the axioms from the original OWL ontology. Your model will still need to load the ontology if you want to do any reasoning. The schemagen classes *only* provide a convenient way to get the Resources/Individuals/OntProperties/... that you need without specifying the namespace, etc. -- Joshua Taylor, http://www.cs.rpi.edu/~tayloj/
