Examples of asOWLNamedIndividual()


Examples of org.semanticweb.owlapi.model.OWLIndividual.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.OWLIndividual.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.OWLIndividual.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.OWLNamedIndividual.asOWLNamedIndividual()

                mock(OWLAnnotationProperty.class));
        when(entityChecker.getOWLAnnotationProperty("rdfs:comment"))
                .thenReturn(dataFactory.getRDFSComment());
        OWLNamedIndividual ind = mock(OWLNamedIndividual.class);
        when(entityChecker.getOWLIndividual("ind")).thenReturn(ind);
        when(ind.asOWLNamedIndividual()).thenReturn(ind);
        parser = new ParserWrapper();
    }

    @Test
    public void unknownClassNameShouldCauseException() {
View Full Code Here

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

          continue;
        if( Individual.DL.getOWLIndividual().equals( s ) )
          satisfied.add( SyntaxConstraint.DL );
        else
          throw new IllegalArgumentException( format(
              "Unexpected species ( %s ) for test case %s", s.asOWLNamedIndividual().getIRI()
                  .toURI().toASCIIString(), i.getIRI() ) );
      }
    }

    semantics = EnumSet.noneOf( Semantics.class );
View Full Code Here

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

      for( OWLIndividual s : notspecies ) {
        if( Individual.DL.getOWLIndividual().equals( s ) )
          notsatisfied.add( SyntaxConstraint.DL );
        else
          throw new IllegalArgumentException( format(
              "Unexpected species ( %s ) for test case %s", s.asOWLNamedIndividual().getIRI()
                  .toURI().toASCIIString(), i.getIRI() ) );
      }
    }

    notsemantics = EnumSet.noneOf( Semantics.class );
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
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.