Examples of containsEntityInSignature()


Examples of org.semanticweb.owlapi.model.OWLOntology.containsEntityInSignature()

        OWLAnnotationProperty ap = AnnotationProperty(IRI("http://www.w3.org/2004/02/skos/core#broader"));
        OWLClass c = Class(IRI("http://www.w3.org/2004/02/skos/core#Concept"));
        OWLClass term = Class(IRI("http://schema.wolterskluwer.de/TaxonomyTerm"));
        assertTrue(ontology.containsAxiom(ClassAssertion(c, i)));
        assertTrue(ontology.containsAxiom(ClassAssertion(term, i)));
        assertTrue(ontology.containsEntityInSignature(ap));
    }

    @Test
    public void shouldRoundTripAxiomAnnotation() throws Exception {
        String input = "@prefix : <urn:fm2#> .\n"
View Full Code Here

Examples of org.semanticweb.owlapi.model.OWLOntology.containsEntityInSignature()

                        .create(new File(ontologyDirectory, "core.ttl"))));
        OWLOntology topLevelImport = m
                .loadOntologyFromOntologyDocument(new File(ontologyDirectory,
                        "subjects.ttl"));
        assertTrue("Individuals about Bob are missing...",
                topLevelImport.containsEntityInSignature(bobsIndividual,
                        INCLUDED));
    }
}
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.