@Override public void prepare(GraphPropertyWorkerPrepareData workerPrepareData) throws Exception { super.prepare(workerPrepareData); defaultRegionCode = (String) workerPrepareData.getConfiguration().get(DEFAULT_REGION_CODE); if (defaultRegionCode == null) { defaultRegionCode = DEFAULT_DEFAULT_REGION_CODE; } publicEntityType = getOntologyRepository().getRequiredConceptIRIByIntent(PHONE_NUMBER_CONCEPT_INTENT, PUBLIC); }
@Inject public VertexUploadImage( final Graph graph, final OntologyRepository ontologyRepository, final WorkQueueRepository workQueueRepository, final VisibilityTranslator visibilityTranslator, final WorkspaceRepository workspaceRepository ) { this.graph = graph; this.ontologyRepository = ontologyRepository; this.workQueueRepository = workQueueRepository; this.visibilityTranslator = visibilityTranslator; this.workspaceRepository = workspaceRepository; this.conceptIri = ontologyRepository.getRequiredConceptIRIByIntent("entityImage", PUBLIC); this.entityHasImageIri = ontologyRepository.getRequiredRelationshipIRIByIntent("entityHasImage", PUBLIC); this.yAxisFlippedIri = ontologyRepository.getRequiredPropertyIRIByIntent("media.yAxisFlipped", PUBLIC); this.clockwiseRotationIri = ontologyRepository.getRequiredPropertyIRIByIntent("media.clockwiseRotation", PUBLIC); }
configuration.put("ontology.intent.relationship.artifactHasEntity", "http://visallo.org/test#artifactHasEntity"); when(ontologyRepository.getRequiredConceptIRIByIntent("location", PUBLIC)).thenReturn("http://visallo.org/test#location"); when(ontologyRepository.getRequiredConceptIRIByIntent("organization", PUBLIC)).thenReturn("http://visallo.org/test#organization"); when(ontologyRepository.getRequiredConceptIRIByIntent("person", PUBLIC)).thenReturn("http://visallo.org/test#person"); when(ontologyRepository.getRequiredConceptIRIByIntent("phoneNumber", PUBLIC)).thenReturn("http://visallo.org/test#phoneNumber"); when(ontologyRepository.getRequiredRelationshipIRIByIntent("artifactHasEntity", PUBLIC)).thenReturn("http://visallo.org/test#artifactHasEntity");
configuration.put("ontology.intent.relationship.artifactHasEntity", "http://visallo.org/test#artifactHasEntity"); when(ontologyRepository.getRequiredConceptIRIByIntent("location")).thenReturn("http://visallo.org/test#location"); when(ontologyRepository.getRequiredConceptIRIByIntent("organization")).thenReturn("http://visallo.org/test#organization"); when(ontologyRepository.getRequiredConceptIRIByIntent("person")).thenReturn("http://visallo.org/test#person"); when(ontologyRepository.getRequiredConceptIRIByIntent("phoneNumber")).thenReturn("http://visallo.org/test#phoneNumber"); when(ontologyRepository.getRequiredRelationshipIRIByIntent("artifactHasEntity")).thenReturn("http://visallo.org/test#artifactHasEntity");