*I am sending again because the email is coming back saying it is spam.*

Joshua TAYLOR thank you for your help, the example is the same that the
said Ralph.

In my case I have a learning object that has a Name property, but jena is
allowing me to put multiple names. I think the error is not the Jena
because in no time I used my ontology in the application(Jena could not
guess). I'm doing the following:

public void store (Model model, boolean clear) {
     model.write (System.out);
     Dataset dataset = TDBFactory.createDataset (Constants.DIRECTORY);
     Model dataset.getDefaultModel tdb = ();
     tdb.add (model);
     tdb.close ();
     dataset.close ();
}

When I do a search I have the following data:

www.fallante.com.br/jena/select.rdf


Translate pt-Br to english:


ObjetoAprendizagem = learning object
Idioma = language
possuiNome = hasName

graciously


2013/10/2 Ralph Perniciaro <[email protected]>

> OntModelSpec.OWL_MEM_RDFS_INF
>
>
> On Wed, Oct 2, 2013 at 10:50 AM, Diogo FC Patrao <[email protected]
> >wrote:
>
> > your jena model specify which kind of inference?
> >
> > Dfcp
> > Em 02/10/2013 12:48, "Ralph Perniciaro" <[email protected]
> >
> > escreveu:
> >
> > > I believe that I have the same issue.  If I create an ontology in
> protege
> > > and define an entity to have a property called title and specify that
> it
> > > should have exactly 1 title.  If I load the model into Jena and then
> > create
> > > an individual of my entity type, I can add more than 1 title to the
> > > individual.  I was going to add my own checks to prevent this, unless
> > > someone can explain how Jena can enforce cardinality rules.
> > >
> > >
> > > On Wed, Oct 2, 2013 at 9:20 AM, Márcio Vinicius <
> > [email protected]
> > > >wrote:
> > >
> > > > Hello, I am developing an application with Jena and I have some
> doubts.
> > > >
> > > > 1 - I created an ontology in Protege
> > > > 2 - I created an application Jena (TDB) that kept the data in the
> > > database.
> > > > I'm using JenaBeans to assist me in the get and set.
> > > >
> > > > Problem: I can put several names on an object should have only one
> > name.
> > > I
> > > > do not know WHERE to put the application ontology to prevent this
> from
> > > > occurring.
> > > >
> > > > graciously
> > > >
> > > > --
> > > > *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>

Reply via email to