Examples of OWLClassAssertionAxiom


Examples of org.semanticweb.owlapi.model.OWLClassAssertionAxiom

        if ((recipeIRI != null)) {
            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

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.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.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 ((recipeIRI != null)) {
            if (!owlmodel.containsAxiom(factory.getOWLClassAssertionAxiom(ontocls, ontoind))) {

                // Add the recipe 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

Examples of org.semanticweb.owlapi.model.OWLClassAssertionAxiom

                OWLDeclarationAxiom daxiomop = factory.getOWLDeclarationAxiom(op); //obj prop
                OWLDeclarationAxiom daxiomdp = factory.getOWLDeclarationAxiom(dp); //data prop
                OWLDeclarationAxiom daxiomsub = factory.getOWLDeclarationAxiom(sub); //subject
                OWLDeclarationAxiom daxiomobj = factory.getOWLDeclarationAxiom(obj); //object

                OWLClassAssertionAxiom axiomsub = factory.getOWLClassAssertionAxiom(cls,sub); //Istanza
                OWLClassAssertionAxiom axiomobj = factory.getOWLClassAssertionAxiom(cls,obj); //Istanza
                OWLObjectPropertyAssertionAxiom axiomop = factory.getOWLObjectPropertyAssertionAxiom(op, sub, obj); //Obj prop tra individui
                OWLDataPropertyAssertionAxiom axiomvalue = factory.getOWLDataPropertyAssertionAxiom(dp, obj,literal1); //Dataprop all'istanza;
                OWLAnnotationAssertionAxiom axioman = factory.getOWLAnnotationAssertionAxiom(cls.getIRI(), oav); //Annotazione

                mgr.addAxiom(ont,daxiomcls);
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLClassAssertionAxiom

                OWLDeclarationAxiom daxiomop = factory.getOWLDeclarationAxiom(op); //obj prop
                OWLDeclarationAxiom daxiomdp = factory.getOWLDeclarationAxiom(dp); //data prop
                OWLDeclarationAxiom daxiomsub = factory.getOWLDeclarationAxiom(sub); //subject
                OWLDeclarationAxiom daxiomobj = factory.getOWLDeclarationAxiom(obj); //object

                OWLClassAssertionAxiom axiomsub = factory.getOWLClassAssertionAxiom(cls,sub); //Istanza
                OWLClassAssertionAxiom axiomobj = factory.getOWLClassAssertionAxiom(cls,obj); //Istanza
                OWLObjectPropertyAssertionAxiom axiomop = factory.getOWLObjectPropertyAssertionAxiom(op, sub, obj); //Obj prop tra individui
                OWLDataPropertyAssertionAxiom axiomvalue = factory.getOWLDataPropertyAssertionAxiom(dp, sub,literal1); //Dataprop all'istanza;
                OWLAnnotationAssertionAxiom axioman = factory.getOWLAnnotationAssertionAxiom(cls.getIRI(), oav); //Annotazione

                mgr.addAxiom(ont,daxiomcls);
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.