Examples of OWLClassAssertionAxiom


Examples of org.semanticweb.owlapi.model.OWLClassAssertionAxiom

    public Set<Set<OWLAxiom>> getInconsistencyExplanations(int maxExplanations) {
      return getUnsatisfiableExplanations( factory.getOWLThing(), maxExplanations );
    }
   
    public Set<OWLAxiom> getInstanceExplanation(OWLIndividual ind, OWLClassExpression cls) {
      OWLClassAssertionAxiom classAssertion = factory.getOWLClassAssertionAxiom( cls, ind );
      return getEntailmentExplanation( classAssertion );
    }
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLClassAssertionAxiom

      OWLClassAssertionAxiom classAssertion = factory.getOWLClassAssertionAxiom( cls, ind );
      return getEntailmentExplanation( classAssertion );
    }
   
    public Set<Set<OWLAxiom>> getInstanceExplanations(OWLIndividual ind, OWLClassExpression cls) {
      OWLClassAssertionAxiom classAssertion = factory.getOWLClassAssertionAxiom( cls, ind );
      return getEntailmentExplanations( classAssertion );
    }
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLClassAssertionAxiom

      OWLClassAssertionAxiom classAssertion = factory.getOWLClassAssertionAxiom( cls, ind );
      return getEntailmentExplanations( classAssertion );
    }
   
    public Set<Set<OWLAxiom>> getInstanceExplanations(OWLIndividual ind, OWLClassExpression cls, int maxExplanations) {
      OWLClassAssertionAxiom classAssertion = factory.getOWLClassAssertionAxiom( cls, ind );
      return getEntailmentExplanations( classAssertion, maxExplanations );
    }
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLClassAssertionAxiom

        String rule = "PREFIX var http://kres.iksproject.eu/rules# ."
                      + "PREFIX dbs http://andriry.altervista.org/tesiSpecialistica/dbs_l1.owl# ."
                      + "PREFIX lmm http://www.ontologydesignpatterns.org/ont/lmm/LMM_L1.owl# ."
                      + "rule1[dbs:Table(?x) -> lmm:Meaning(?x)]";
        OWLNamedIndividual ontoind = factory.getOWLNamedIndividual(IRI.create(ID + "MyRuleX"));
        OWLClassAssertionAxiom classAssertion = factory.getOWLClassAssertionAxiom(ontocls, ontoind);
        owlmanager.addAxiom(owlmodel, classAssertion);
        OWLDataProperty dataprop = factory.getOWLDataProperty(IRI.create(ID + "hasDescription"));
        OWLDataPropertyAssertionAxiom dataPropAssertion = factory.getOWLDataPropertyAssertionAxiom(dataprop,
            ontoind, "My comment to the rule X");
        owlmanager.addAxiom(owlmodel, dataPropAssertion);
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLClassAssertionAxiom

       if(((ruleName!=null)||!ruleName.isEmpty())&&((ruleBodyHead!=null)||!ruleBodyHead.isEmpty())){
         if(!owlmodel.containsAxiom(factory.getOWLClassAssertionAxiom(ontocls, ontoind))){
      
            //Add the rule istance
            OWLClassAssertionAxiom classAssertion = factory.getOWLClassAssertionAxiom(ontocls,ontoind);
            owlmanager.addAxiom(owlmodel, classAssertion);
            //Add the rule Body and Head
            OWLDataPropertyAssertionAxiom dataPropAssertion = factory.getOWLDataPropertyAssertionAxiom(bodyhead, ontoind, ruleBodyHead);
            owlmanager.addAxiom(owlmodel, dataPropAssertion);
   
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLClassAssertionAxiom

      
       if(((ruleName!=null)&&!ruleName.toString().isEmpty())&&((ruleBodyHead!=null)&&!ruleBodyHead.isEmpty())){
         if(!owlmodel.containsAxiom(factory.getOWLClassAssertionAxiom(ontocls, ontoind))){
      
              //Add the rule istance
              OWLClassAssertionAxiom classAssertion = factory.getOWLClassAssertionAxiom(ontocls,ontoind);
              owlmanager.addAxiom(owlmodel, classAssertion);
              //Add the rule Body and Head
              OWLDataPropertyAssertionAxiom dataPropAssertion = factory.getOWLDataPropertyAssertionAxiom(bodyhead, ontoind, ruleBodyHead);
              owlmanager.addAxiom(owlmodel, dataPropAssertion);
             
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLClassAssertionAxiom

    OWLNamedIndividual ontoind = factory.getOWLNamedIndividual(IRI.create(owlID+ruleName));
    if(((ruleName!=null)||!ruleName.isEmpty())&&((ruleBodyHead!=null)||!ruleBodyHead.isEmpty())){
       if(!owlmodel.containsAxiom(factory.getOWLClassAssertionAxiom(ontocls, ontoind))){
      
            //Add the rule istance
            OWLClassAssertionAxiom classAssertion = factory.getOWLClassAssertionAxiom(ontocls,ontoind);
            owlmanager.addAxiom(owlmodel, classAssertion);
            //Add the rule Body and Head
            OWLDataPropertyAssertionAxiom dataPropAssertion = factory.getOWLDataPropertyAssertionAxiom(bodyhead, ontoind, ruleBodyHead);
            owlmanager.addAxiom(owlmodel, dataPropAssertion);
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLClassAssertionAxiom

    OWLNamedIndividual ontoind = factory.getOWLNamedIndividual(ruleName);
    if(((ruleName!=null)&&!ruleName.toString().isEmpty())&&((ruleBodyHead!=null)&&!ruleBodyHead.isEmpty())){
       if(!owlmodel.containsAxiom(factory.getOWLClassAssertionAxiom(ontocls, ontoind))){

            //Add the rule istance
            OWLClassAssertionAxiom classAssertion = factory.getOWLClassAssertionAxiom(ontocls,ontoind);
            owlmanager.addAxiom(owlmodel, classAssertion);
            //Add the rule Body and Head
            OWLDataPropertyAssertionAxiom dataPropAssertion = factory.getOWLDataPropertyAssertionAxiom(bodyhead, ontoind, ruleBodyHead);
            owlmanager.addAxiom(owlmodel, dataPropAssertion);
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLClassAssertionAxiom

       if (((recipeName != null) || !recipeName.toString().isEmpty()) && ((rules != null) || !rules.isEmpty())) {
           if (!owlmodel.containsAxiom(factory.getOWLClassAssertionAxiom(ontocls, ontoind))) {

               //Add the rule istance
               OWLClassAssertionAxiom classAssertion = factory.getOWLClassAssertionAxiom(ontocls, ontoind);
               owlmanager.addAxiom(owlmodel, classAssertion);

               //start and end
               OWLNamedIndividual ind = factory.getOWLNamedIndividual(rules.firstElement());
               if (owlmodel.containsAxiom(factory.getOWLClassAssertionAxiom(kresrule, ind))) {
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLClassAssertionAxiom

        if ((recipeName != null || !recipeName.isEmpty())) {
            if (!owlmodel.containsAxiom(factory.getOWLClassAssertionAxiom(ontocls, ontoind))) {

                //Add the rule istance
                OWLClassAssertionAxiom classAssertion = factory.getOWLClassAssertionAxiom(ontocls, ontoind);
                owlmanager.addAxiom(owlmodel, classAssertion);

                //Add description
                if ((recipeDescription != null) || !recipeDescription.isEmpty()) {
                    //Add the rule description
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.