You can configure the data to extract using a folder rule in Alfresco Share, and view the data returned by Amazon AI Services (via the AI Transform Engine) in Alfresco Digital Workspace.
Set up a folder rule
You can use the Intelligence Services components by setting up a folder rule and adding text and images to that folder.
-
In Alfresco Share create a test folder.
-
Select the folder and click Manage Rules to create a folder rule.
-
Click Create Rules.
-
Enter a name and a description (optional) for the rule.
-
Select when the rule is triggered.
Choose Items are created or enter this folder, and (optionally) Items are updated. Use the + and - icons to add and remove extra criteria.
-
Select when the rule is applied.
Add Content of type or sub-type is Content, as shown.
-
Select a rule action to perform.
-
First, select Add aspect, then add one or more AI aspects. Use the + and - icons to add and remove extra aspects.
For example, you can add AI Labels, AI Organizations, AI People, and AI Places.
To extract data using Amazon Rekognition, select AI Labels.
To extract data using Amazon Comprehend, select the remaining AI aspects.
-
Select Request AI renditions.
-
-
(Optional) Select options Rule applies to subfolders and also apply when Items are updated.
This will apply the rule to your test folder and all its subfolders.
-
Click Create to save the rule.
At this point, your rule has been applied to request the AI renditions and add the selected AI aspects.
See the Content Services documentation, Folder rules to find out more about applying folder rules.
-
Next, upload content to your test folder.
For example, choose a text file and a PNG or JPG image.
-
Wait for the renditions to complete.
As an administrator, you can view the logs for the repository, Transform Router, AI Engine, and ActiveMQ/Amazon MQ to monitor the progress.
See Troubleshoot Intelligence Services for more.
-
Next, view the AI properties in Alfresco Digital Workspace.
View AI properties
You can view the Intelligence Services properties in Alfresco Digital Workspace.
This example shows you how to view these properties in Digital Workspace.
-
Launch Alfresco Digital Workspace.
-
Locate the demo folder or subfolder, if the folder rule also applies to subfolders, as created in Set up a folder rule.
-
Select a file that you uploaded, and click the information icon.
The Info Drawer shows the AI properties that were extracted by the AI Engine, and saved as AI Data. These are populated by the aspects defined when you created the folder rule in Share.
-
Click Less information to show AI Data under the Properties tab, if you can’t see it.
-
Expand the AI Data panel to see all the properties that have been added.
Searching for content in ADW
You can search for content that matches one of the AI aspects, perform a wildcard search (using an asterisk, wildcar*), or phrase match (using double-quotes, “This Phrase”).
-
To search for a place in an AI aspect, type
schema:place:<place-name>
in the search field and press Enter.The search results are displayed.
Similarly, if you uploaded test images, you can search for
schema:label:<label>
.