I walked a little more about my studies and found that the Protege (software I developed my ontology generates interfaces java implementation), the truth is I implement these classes with properties (specializations, generalizations, etc.)?
carefully. 2013/8/15 Márcio Vinicius <[email protected]> > Someone else could help me? > > > 2013/8/13 Márcio Vinicius <[email protected]> > >> Now I understand better. >> >> An example of how I am adding to the database: >> >> See the file Controller.java (http://fallante.com.br/jena) method >> addNurse on line 51. >> >> I do not know if I'm doing the right way, but when necessary add triple >> feature + id, property and value (line 54). >> >> am I correct? >> >> carefully. >> thank you >> >> >> 2013/8/13 Joshua TAYLOR <[email protected]> >> >>> 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/ >>> >> >> >> >> -- >> *Márcio Vinícius Oliveira Sena* >> Bacharelando em Sistemas de Informação - UFG >> Desenvolvedor Front-end no Laboratório de Tecnologia e Mídias >> Educacionais - Labtime/UFG >> Gerente de Projeto e Desenvolvedor Front-end >> @marciosena17 <http://twitter.com/marciosena17> >> >> > > > -- > *Márcio Vinícius Oliveira Sena* > Bacharelando em Sistemas de Informação - UFG > Desenvolvedor Front-end no Laboratório de Tecnologia e Mídias Educacionais > - Labtime/UFG > Gerente de Projeto e Desenvolvedor Front-end > @marciosena17 <http://twitter.com/marciosena17> > > -- *Márcio Vinícius Oliveira Sena* Bacharelando em Sistemas de Informação - UFG Desenvolvedor Front-end no Laboratório de Tecnologia e Mídias Educacionais - Labtime/UFG Gerente de Projeto e Desenvolvedor Front-end @marciosena17 <http://twitter.com/marciosena17>
