Lorenz, using rules in my project is mandatory part so need to stick with
it.

On Wed, Feb 15, 2017 at 4:50 PM, Chris Dollin <chris.dol...@epimorphics.com>
wrote:

> On 15 February 2017 at 13:06, tina sani <tinamadri...@gmail.com> wrote:
>
> > Hello Lorenz, so no way to remove or replace these classes?
> > setOntClass also not working, I have tried it.
> >
>
> If you don't want inference to add back the statements
> you have deleted
>
> Then don't use inference to add the statements in
> the first place
>
> Then you can add and remove statements as you like
>
> Chris
>
>
> > On Wed, Feb 15, 2017 at 3:50 PM, Lorenz Buehmann <
> > buehm...@informatik.uni-leipzig.de> wrote:
> >
> > > In general, you cannot remove inferred statements - those are given by
> > > data + rules.
> > >
> > > Indeed, you can remove statements on a materialized inferred model, but
> > > implicitly the class assertion does still exist.
> > >
> > >
> > > On 15.02.2017 13:11, tina sani wrote:
> > > > For example, I have added some classes for an individual using rules.
> > > > emplyee 1 is type of Manager, Programmer, Worker.
> > > >
> > > > Can I replace these classes with one class like
> > > > if (empl1.hasOntclass(manager) && (emp1.hasOntClass(programmer) &
> > > > (emp1.hasOntClass(worker)  then emp1 should be type of one class
> > Employee
> > > > and replace/remove these three classes.?
> > > >
> > > > There is one method, I dont know if it is suitable here to apply?
> > > >
> > > > Individual.removeOntClass(Resource)
> > > > <https://jena.apache.org/documentation/javadoc/jena/
> > > org/apache/jena/ontology/Individual.html#removeOntClass-org.apache.
> > > jena.rdf.model.Resource->
> > > >
> > >
> > >
> >
>

Reply via email to