/** * Gets a global data factory that can be used to create OWL API objects. * * @return An OWLDataFactory that can be used for creating OWL API objects. */ public static OWLDataFactory getOWLDataFactory() { return new OWLDataFactoryImpl(); }
/** * Gets a global data factory that can be used to create OWL API objects. * * @return An OWLDataFactory that can be used for creating OWL API objects. */ public static OWLDataFactory getOWLDataFactory() { return new OWLDataFactoryImpl(); }
/** * Gets a global data factory that can be used to create OWL API objects. * * @return An OWLDataFactory that can be used for creating OWL API objects. */ public static OWLDataFactory getOWLDataFactory() { return new OWLDataFactoryImpl(); }
/** * Gets a global data factory that can be used to create OWL API objects. * * @return An OWLDataFactory that can be used for creating OWL API objects. */ public static OWLDataFactory getOWLDataFactory() { return new OWLDataFactoryImpl(); }
@Override public OWLDataFactory get() { return new OWLDataFactoryImpl(); } }
@Override public OWLAxiom getNNF() { return accept(new NNF(new OWLDataFactoryImpl())); } }
@Override public OWLAxiom getNNF() { return accept(new NNF(new OWLDataFactoryImpl())); } }
@Provides @ProjectSingleton OWLDataFactory providesDataFactory() { return new OWLDataFactoryImpl(); }
@Override public OWLAxiom getNNF() { return accept(new NNF(new OWLDataFactoryImpl())); } }
@Override public OWLAxiom getNNF() { return accept(new NNF(new OWLDataFactoryImpl())); } }
@Override public OWLClassExpression getNNF() { NNF nnf = new NNF(new OWLDataFactoryImpl()); return accept(nnf.getClassVisitor()); }
@Override public OWLClassExpression getNNF() { NNF nnf = new NNF(new OWLDataFactoryImpl()); return accept(nnf.getClassVisitor()); }
@Override public OWLAxiom getNNF() { NNF con = new NNF(new OWLDataFactoryImpl()); OWLAxiom nnf = accept(con); return verifyNotNull(nnf); } }
@Override public OWLClassExpression getComplementNNF() { NNF nnf = new NNF(new OWLDataFactoryImpl()); return new OWLObjectComplementOfImpl(this).accept(nnf); }
@Override public OWLClassExpression getNNF() { NNF nnf = new NNF(new OWLDataFactoryImpl()); return accept(nnf.getClassVisitor()); }
@Override public OWLClassExpression getComplementNNF() { NNF nnf = new NNF(new OWLDataFactoryImpl()); return new OWLObjectComplementOfImpl(this).accept(nnf.getClassVisitor()); }
@Override public OWLClassExpression getComplementNNF() { NNF nnf = new NNF(new OWLDataFactoryImpl()); return new OWLObjectComplementOfImpl(this).accept(nnf.getClassVisitor()); }
private int getCorrectUndClassified(AbstractReasonerComponent rs, OWLClassExpression concept, Set<OWLIndividual> testUnd) { OWLDataFactory df = new OWLDataFactoryImpl(); OWLObjectComplementOf complementOfConcept = df.getOWLObjectComplementOf(concept); int nOfUnc=0; for (OWLIndividual ind:testUnd){ if ((!rs.hasType(concept, ind)) && !(rs.hasType(complementOfConcept, ind))) nOfUnc++; } return nOfUnc; }
private static Morphia getMorphia() { return new MorphiaProvider( new UserIdConverter(), new OWLEntityConverter(new OWLDataFactoryImpl()), new ProjectIdConverter(), new ThreadIdConverter(), new CommentIdConverter(), new CollectionIdConverter(), new FormIdConverter(), new TagIdConverter(), new ColorConverter()).get(); }
@Before public void setUp() throws Exception { reasoner = new OWLAPIReasoner(); reasoner.setSources(new OWLAPIOntology(OWLManager.createOWLOntologyManager().loadOntologyFromOntologyDocument( new File("src/test/resources/org/dllearner/utilities/property_hierarchy.ttl")))); reasoner.init(); df = new OWLDataFactoryImpl(); pm = new DefaultPrefixManager(); pm.setDefaultPrefix("http://www.dl-learner.org/test/hierarchy/properties#"); }