Search in sources :

Example 1 with OWLClassImpl

use of uk.ac.manchester.cs.owl.owlapi.OWLClassImpl in project webprotege by protegeproject.

the class EntityTagsRepository_TestCase method setUp.

@Before
public void setUp() throws Exception {
    Morphia morphia = createMorphia();
    mongoClient = createMongoClient();
    Datastore datastore = morphia.createDatastore(mongoClient, getTestDbName());
    repository = new EntityTagsRepository(datastore);
    repository.ensureIndexes();
    entity = new OWLClassImpl(IRI.create("http://stuff.com/entities/A"));
    tagIdA = TagId.getId("12345678-1234-1234-1234-123456789abc");
    tagIdB = TagId.getId("12345678-5678-5678-5678-123456789abc");
    projectId = ProjectId.get(UUID);
    List<TagId> tags = Arrays.asList(tagIdA, tagIdB);
    entityTags = new EntityTags(projectId, entity, tags);
}
Also used : MongoTestUtils.createMorphia(edu.stanford.bmir.protege.web.server.persistence.MongoTestUtils.createMorphia) Morphia(org.mongodb.morphia.Morphia) Datastore(org.mongodb.morphia.Datastore) OWLClassImpl(uk.ac.manchester.cs.owl.owlapi.OWLClassImpl) TagId(edu.stanford.bmir.protege.web.shared.tag.TagId) Before(org.junit.Before)

Aggregations

MongoTestUtils.createMorphia (edu.stanford.bmir.protege.web.server.persistence.MongoTestUtils.createMorphia)1 TagId (edu.stanford.bmir.protege.web.shared.tag.TagId)1 Before (org.junit.Before)1 Datastore (org.mongodb.morphia.Datastore)1 Morphia (org.mongodb.morphia.Morphia)1 OWLClassImpl (uk.ac.manchester.cs.owl.owlapi.OWLClassImpl)1