Examples of asOWLNamedIndividual()


Examples of org.semanticweb.owlapi.model.OWLObject.asOWLNamedIndividual()

                        checkScores(iri)[1]++;
                    }
                    // The axiom object gets a +1 in its library score.
                    ind = axiom.getObject();
                    if (!ind.isAnonymous()) {
                        iri = ind.asOWLNamedIndividual().getIRI();
                        checkScores(iri)[0]++;
                    }
                }

            }
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLObject.asOWLNamedIndividual()

            @Override
            public void visit(OWLClassAssertionAxiom axiom) {
                OWLIndividual ind = axiom.getIndividual();
                // Do not accept anonymous registry items.
                if (ind.isAnonymous()) return;
                IRI iri = ind.asOWLNamedIndividual().getIRI();
                int[] scores = checkScores(iri);
                OWLClassExpression type = axiom.getClassExpression();
                // If the type is stated to be a library, increase its library score.
                if (cRegistryLibrary.equals(type)) {
                    scores[0]++;
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLObject.asOWLNamedIndividual()

                if (hasOntology.equals(prop)) {
                    IRI iri;
                    // The axiom subject gets a +1 in its library score.
                    OWLIndividual ind = axiom.getSubject();
                    if (!ind.isAnonymous()) {
                        iri = ind.asOWLNamedIndividual().getIRI();
                        checkScores(iri)[0]++;
                    }
                    // The axiom object gets a +1 in its ontology score.
                    ind = axiom.getObject();
                    if (!ind.isAnonymous()) {
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLObject.asOWLNamedIndividual()

                        checkScores(iri)[0]++;
                    }
                    // The axiom object gets a +1 in its ontology score.
                    ind = axiom.getObject();
                    if (!ind.isAnonymous()) {
                        iri = ind.asOWLNamedIndividual().getIRI();
                        checkScores(iri)[1]++;
                    }
                } else if (isOntologyOf.equals(prop)) {
                    IRI iri;
                    // The axiom subject gets a +1 in its ontology score.
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLObject.asOWLNamedIndividual()

                } else if (isOntologyOf.equals(prop)) {
                    IRI iri;
                    // The axiom subject gets a +1 in its ontology score.
                    OWLIndividual ind = axiom.getSubject();
                    if (!ind.isAnonymous()) {
                        iri = ind.asOWLNamedIndividual().getIRI();
                        checkScores(iri)[1]++;
                    }
                    // The axiom object gets a +1 in its library score.
                    ind = axiom.getObject();
                    if (!ind.isAnonymous()) {
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLObject.asOWLNamedIndividual()

                        checkScores(iri)[1]++;
                    }
                    // The axiom object gets a +1 in its library score.
                    ind = axiom.getObject();
                    if (!ind.isAnonymous()) {
                        iri = ind.asOWLNamedIndividual().getIRI();
                        checkScores(iri)[0]++;
                    }
                }

            }
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.