Examples of applyChanges()


Examples of org.semanticweb.owlapitools.builders.BuilderSameIndividual.applyChanges()

        BuilderSameIndividual builder = new BuilderSameIndividual(df)
                .withItems(inds).withAnnotations(annotations);
        OWLAxiom expected = df.getOWLSameIndividualAxiom(inds, annotations);
        OWLOntology o = m.createOntology();
        // when
        builder.applyChanges(o);
        // then
        assertTrue(o.containsAxiom(expected));
    }

    @Test
View Full Code Here

Examples of org.semanticweb.owlapitools.builders.BuilderSubAnnotationPropertyOf.applyChanges()

                .withAnnotations(annotations);
        OWLAxiom expected = df.getOWLSubAnnotationPropertyOfAxiom(ap,
                df.getRDFSLabel(), annotations);
        OWLOntology o = m.createOntology();
        // when
        builder.applyChanges(o);
        // then
        assertTrue(o.containsAxiom(expected));
    }

    @Test
View Full Code Here

Examples of org.semanticweb.owlapitools.builders.BuilderSubClass.applyChanges()

                .withSup(df.getOWLThing());
        OWLAxiom expected = df.getOWLSubClassOfAxiom(ce, df.getOWLThing(),
                annotations);
        OWLOntology o = m.createOntology();
        // when
        builder.applyChanges(o);
        // then
        assertTrue(o.containsAxiom(expected));
    }

    @Test
View Full Code Here

Examples of org.semanticweb.owlapitools.builders.BuilderSubDataProperty.applyChanges()

                .withSub(dp).withSup(df.getOWLTopDataProperty());
        OWLAxiom expected = df.getOWLSubDataPropertyOfAxiom(dp,
                df.getOWLTopDataProperty());
        OWLOntology o = m.createOntology();
        // when
        builder.applyChanges(o);
        // then
        assertTrue(o.containsAxiom(expected));
    }

    @Test
View Full Code Here

Examples of org.semanticweb.owlapitools.builders.BuilderSubObjectProperty.applyChanges()

                .withAnnotations(annotations);
        OWLAxiom expected = df.getOWLSubObjectPropertyOfAxiom(op,
                df.getOWLTopObjectProperty(), annotations);
        OWLOntology o = m.createOntology();
        // when
        builder.applyChanges(o);
        // then
        assertTrue(o.containsAxiom(expected));
    }

    @Test
View Full Code Here

Examples of org.semanticweb.owlapitools.builders.BuilderSymmetricObjectProperty.applyChanges()

                df).withProperty(op).withAnnotations(annotations);
        OWLAxiom expected = df.getOWLSymmetricObjectPropertyAxiom(op,
                annotations);
        OWLOntology o = m.createOntology();
        // when
        builder.applyChanges(o);
        // then
        assertTrue(o.containsAxiom(expected));
    }

    @Test
View Full Code Here

Examples of org.semanticweb.owlapitools.builders.BuilderTransitiveObjectProperty.applyChanges()

                df).withProperty(op).withAnnotations(annotations);
        OWLAxiom expected = df.getOWLTransitiveObjectPropertyAxiom(op,
                annotations);
        OWLOntology o = m.createOntology();
        // when
        builder.applyChanges(o);
        // then
        assertTrue(o.containsAxiom(expected));
    }
}
View Full Code Here

Examples of org.uengine.processmanager.ProcessManagerBean.applyChanges()

      //TODO: because of Oracle's max size of varchar
      fault.setDetails(null);
      //
     
      instance.fireFault(tracingTag, fault);
      pmb.applyChanges();

    }catch(Exception e){
      if(pmb!=null)
        try {
          pmb.cancelChanges();
View Full Code Here

Examples of org.uengine.processmanager.ProcessManagerRemote.applyChanges()

      if (tx != null)
        tx.begin();

      responseEndPoint = workflowService.workItemAccept(instanceId, tracingTag, endpoint, pm);
      pm.applyChanges();

      if (tx != null && tx.getStatus() != Status.STATUS_NO_TRANSACTION)
        tx.commit();

    } catch (Exception e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.