@Override
 public void execute(String mimeType, GraphPropertyWorkData data, Authorizations authorizations)
     throws Exception {
   if (RdfOntology.MIME_TYPE_TEXT_RDF.equals(mimeType)) {
     addRdfGraphPropertyWorkerToWhiteList(
         (Vertex) data.getElement(), data.getVisibility(), authorizations);
   }
 }
  @Override
  public void execute(InputStream in, GraphPropertyWorkData data) throws Exception {
    BufferedImage originalImage = ImageIO.read(in);
    Vertex artifactVertex = (Vertex) data.getElement();
    BufferedImage bImage =
        artifactThumbnailRepository.getTransformedImage(
            originalImage, artifactVertex, data.getProperty().getKey());
    List<ArtifactDetectedObject> detectedObjects = detectObjects(bImage);

    Metadata metadata = data.createPropertyMetadata();
    saveDetectedObjects((Vertex) data.getElement(), metadata, detectedObjects, data.getPriority());
  }