Examples of OWLDataPropertyAssertionAxiom


Examples of org.semanticweb.owlapi.model.OWLDataPropertyAssertionAxiom

                   return (ok);

               }

               //Add the sequence string
               OWLDataPropertyAssertionAxiom dataPropAssertion = factory.getOWLDataPropertyAssertionAxiom(sequence, ontoind, rules.toString().replace("[", "").replace("]", ""));
               owlmanager.addAxiom(owlmodel, dataPropAssertion);

               //Add description
               if ((recipeDescription != null) || !recipeDescription.isEmpty()) {
                   //Add the rule description
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLDataPropertyAssertionAxiom

        boolean ok = false;

        OWLClass ontocls = factory.getOWLClass(IRI.create(owlIDrmi + "Recipe"));
        OWLNamedIndividual ontoind = factory.getOWLNamedIndividual(IRI.create(owlID + recipeName));
        OWLDataProperty description = factory.getOWLDataProperty(IRI.create(owlIDrmi + "hasDescription"));
        OWLDataPropertyAssertionAxiom dataPropAssertion;


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

Examples of org.semanticweb.owlapi.model.OWLDataPropertyAssertionAxiom

        boolean ok = false;

        OWLClass ontocls = factory.getOWLClass(IRI.create(owlIDrmi + "Recipe"));
        OWLNamedIndividual ontoind = factory.getOWLNamedIndividual(recipeIRI);
        OWLDataProperty description = factory.getOWLDataProperty(IRI.create(owlIDrmi + "hasDescription"));
        OWLDataPropertyAssertionAxiom dataPropAssertion;

        if ((recipeIRI != null)) {
            if (!owlmodel.containsAxiom(factory.getOWLClassAssertionAxiom(ontocls, ontoind))) {

                //Add the rule istance
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLDataPropertyAssertionAxiom

                   ok = false;
                   return (ok);
               }

               //Add the sequence string
               OWLDataPropertyAssertionAxiom dataPropAssertion = factory.getOWLDataPropertyAssertionAxiom(sequence, ontoind, rules.toString().replace("[", "").replace("]", ""));
               owlmanager.addAxiom(owlmodel, dataPropAssertion);

               //Add description
               if ((recipeDescription != null) || !recipeDescription.isEmpty()) {
                   //Add the rule description
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLDataPropertyAssertionAxiom

                        ok = false;
                        return (ok);
                    }

                    //Add the sequence string
                    OWLDataPropertyAssertionAxiom dataPropAssertion = factory.getOWLDataPropertyAssertionAxiom(sequence, ontoind, rules.toString().replace("[", "").replace("]", ""));
                    owlmanager.addAxiom(owlmodel, dataPropAssertion);

                    //Add description
                    if ((recipeDescription != null))
                        if (!recipeDescription.isEmpty()) {
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLDataPropertyAssertionAxiom

                        ok = false;
                        return (ok);
                    }

                    //Add the sequence string
                    OWLDataPropertyAssertionAxiom dataPropAssertion = factory.getOWLDataPropertyAssertionAxiom(sequence, ontoind, rules.toString().replace("[", "").replace("]", ""));
                    owlmanager.addAxiom(owlmodel, dataPropAssertion);

                    //Add description
                    if ((recipeDescription != null))
                        if (!recipeDescription.isEmpty()) {
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLDataPropertyAssertionAxiom

        String owlIDrmi = "http://incubator.apache.org/stanbol/ontology/rmi.owl#";

        OWLClass ontocls = factory.getOWLClass(IRI.create(owlIDrmi + "Recipe"));
        OWLNamedIndividual ontoind = factory.getOWLNamedIndividual(recipeIRI);
        OWLDataProperty description = factory.getOWLDataProperty(IRI.create(owlIDrmi + "hasDescription"));
        OWLDataPropertyAssertionAxiom dataPropAssertion;

        if ((recipeIRI != null)) {
            if (!owlmodel.containsAxiom(factory.getOWLClassAssertionAxiom(ontocls, ontoind))) {

                // Add the recipe istance
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLDataPropertyAssertionAxiom

      
            //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);

            if((ruleDescription!=null))
                if(!ruleDescription.isEmpty()){
                //Add the rule description
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLDataPropertyAssertionAxiom

            //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);

            if((ruleDescription!=null))
                if(!ruleDescription.isEmpty()){
                //Add the rule description
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLDataPropertyAssertionAxiom

                      + "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);
        dataprop = factory.getOWLDataProperty(IRI.create(ID + "hasBodyAndHead"));
        dataPropAssertion = factory.getOWLDataPropertyAssertionAxiom(dataprop, ontoind, rule);
        owlmanager.addAxiom(owlmodel, dataPropAssertion);
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.