<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic AI custom model does not appear in digital workspace in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/ai-custom-model-does-not-appear-in-digital-workspace/m-p/85373#M25918</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello guys,&lt;BR /&gt;&lt;BR /&gt;I'm trying to create my own AI model by&lt;BR /&gt;&lt;A href="https://docs.alfresco.com/intelligence/concepts/custom-config-textract.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/intelligence/concepts/custom-config-textract.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I followed the documentation and checked it several times,&amp;nbsp;created a custom AI ​​content model, model context, property mapping, updated the share-config-custom.xml and digital worspace json file. No error in logs.&lt;BR /&gt;&lt;BR /&gt;Unfortunately, the digital workspace does not display custom metadata. I must have missed something. Could you give me some advice?&lt;BR /&gt;&lt;BR /&gt;I want to extract text from pdf invoices&amp;nbsp;using AWS textract.&amp;nbsp;I've started default recognition (e.g AI Text Lines, AI Dates aspects working) and try to add a custom model.&lt;BR /&gt;&lt;BR /&gt;1) My custom model&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;model name="my:contentModel" xmlns="http://www.alfresco.org/model/dictionary/1.0"&amp;gt;
    &amp;lt;description&amp;gt;Custom Content Model for Artificial Intelligence extension&amp;lt;/description&amp;gt;
    &amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;

    &amp;lt;imports&amp;gt;
        &amp;lt;import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" /&amp;gt;
        &amp;lt;import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" /&amp;gt;
        &amp;lt;import uri="http://www.alfresco.org/model/site/1.0" prefix="st" /&amp;gt;
        &amp;lt;import uri="http://www.alfresco.org/model/system/1.0" prefix="sys" /&amp;gt;
        &amp;lt;import uri="http://www.alfresco.org/model/ai/1.0" prefix="ai"/&amp;gt;
    &amp;lt;/imports&amp;gt;

    &amp;lt;namespaces&amp;gt;
        &amp;lt;namespace uri="http://mymodel.org" prefix="my" /&amp;gt;
    &amp;lt;/namespaces&amp;gt;

    &amp;lt;aspects&amp;gt;
        &amp;lt;aspect name="my:invoice"&amp;gt;
           &amp;lt;title&amp;gt;Invoice Info&amp;lt;/title&amp;gt;
           &amp;lt;parent&amp;gt;ai:textract&amp;lt;/parent&amp;gt;
           &amp;lt;properties&amp;gt;
               &amp;lt;property name="my:varsymbol"&amp;gt;
                   &amp;lt;title&amp;gt;Variabilni symbol&amp;lt;/title&amp;gt;
                   &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;
		   &amp;lt;multiple&amp;gt;true&amp;lt;/multiple&amp;gt;
                   &amp;lt;index enabled="true" /&amp;gt;
               &amp;lt;/property&amp;gt;
               &amp;lt;property name="my:splatnost"&amp;gt;
                   &amp;lt;title&amp;gt;Datum splatnosti&amp;lt;/title&amp;gt;
                   &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;
                   &amp;lt;multiple&amp;gt;true&amp;lt;/multiple&amp;gt;
                   &amp;lt;index enabled="true" /&amp;gt;
               &amp;lt;/property&amp;gt;
	       &amp;lt;property name="my:ico"&amp;gt;
                   &amp;lt;title&amp;gt;ICO&amp;lt;/title&amp;gt;
                   &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;
                   &amp;lt;multiple&amp;gt;true&amp;lt;/multiple&amp;gt;
                   &amp;lt;index enabled="true" /&amp;gt;
               &amp;lt;/property&amp;gt;
               &amp;lt;property name="my:dic"&amp;gt;
                   &amp;lt;title&amp;gt;DIC&amp;lt;/title&amp;gt;
                   &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;
                   &amp;lt;multiple&amp;gt;true&amp;lt;/multiple&amp;gt;
                   &amp;lt;index enabled="true" /&amp;gt;
               &amp;lt;/property&amp;gt;
           &amp;lt;/properties&amp;gt;
        &amp;lt;/aspect&amp;gt;
    &amp;lt;/aspects&amp;gt;
&amp;lt;/model&amp;gt;&lt;/PRE&gt;&lt;P&gt;2) AI property mapping&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
   "keyValueMapping":[
      {
         "aiTextract":[
            {
               "key":"Variabilni symbol:",
               "aspect":"my:invoice",
               "property":"my:varsymbol"
            },
            {
               "key":"Datum splatnosti:",
               "aspect":"my:invoice",
               "property":"my:splatnost"
            },
  	    {
               "key":"ICO:",
               "aspect":"my:invoice",
               "property":"my:ico"
            },
            {
               "key":"DIC:",
               "aspect":"my:invoice",
               "property":"my:dic"
            }
         ]
      }
   ]
}&lt;/PRE&gt;&lt;P&gt;3) Update app.extension.json for digital workspace&lt;/P&gt;&lt;PRE&gt;"content-metadata-presets": [
      {
        "id": "app.content.metadata.custom",
        "custom": [
          {
            "id": "ai.metadata.features",
            "title": "AI Data",
            "items": [
              {
                "id": "ai:products",
                "aspect": "ai:products",
                "properties": "*"
              },
              {
                "id": "ai:dates",
                "aspect": "ai:dates",
                "properties": "*"
              },
...
	      {
                "id": "my:invoice",
                "aspect": "my:invoice",
                "properties": "*"
              }
...
            ]
          },&lt;/PRE&gt;&lt;P&gt;3) Update share-config-custom.xml&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;alfresco-config&amp;gt;
    &amp;lt;config evaluator="string-compare" condition="DocumentLibrary"&amp;gt;
        &amp;lt;!-- Aspects that a user can see --&amp;gt;
        &amp;lt;aspects&amp;gt;
            &amp;lt;visible&amp;gt;
                &amp;lt;aspect name="my:invoice"/&amp;gt;
            &amp;lt;/visible&amp;gt;
        &amp;lt;/aspects&amp;gt;
    &amp;lt;/config&amp;gt;
&amp;lt;/alfresco-config&amp;gt;&lt;/PRE&gt;&lt;P&gt;4) add rule and aspect to folder&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rule.png" style="width: 829px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/577i44EB485A88B17528/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;And this is the result:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="node.jpg" style="width: 937px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/580i56CCBCCBD5221F63/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="workspace.jpg" style="width: 345px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/579i44046F30ED1504E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Apr 2020 10:16:25 GMT</pubDate>
    <dc:creator>miroslav</dc:creator>
    <dc:date>2020-04-20T10:16:25Z</dc:date>
    <item>
      <title>AI custom model does not appear in digital workspace</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/ai-custom-model-does-not-appear-in-digital-workspace/m-p/85373#M25918</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello guys,&lt;BR /&gt;&lt;BR /&gt;I'm trying to create my own AI model by&lt;BR /&gt;&lt;A href="https://docs.alfresco.com/intelligence/concepts/custom-config-textract.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/intelligence/concepts/custom-config-textract.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I followed the documentation and checked it several times,&amp;nbsp;created a custom AI ​​content model, model context, property mapping, updated the share-config-custom.xml and digital worspace json file. No error in logs.&lt;BR /&gt;&lt;BR /&gt;Unfortunately, the digital workspace does not display custom metadata. I must have missed something. Could you give me some advice?&lt;BR /&gt;&lt;BR /&gt;I want to extract text from pdf invoices&amp;nbsp;using AWS textract.&amp;nbsp;I've started default recognition (e.g AI Text Lines, AI Dates aspects working) and try to add a custom model.&lt;BR /&gt;&lt;BR /&gt;1) My custom model&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;model name="my:contentModel" xmlns="http://www.alfresco.org/model/dictionary/1.0"&amp;gt;
    &amp;lt;description&amp;gt;Custom Content Model for Artificial Intelligence extension&amp;lt;/description&amp;gt;
    &amp;lt;version&amp;gt;1.0&amp;lt;/version&amp;gt;

    &amp;lt;imports&amp;gt;
        &amp;lt;import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" /&amp;gt;
        &amp;lt;import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" /&amp;gt;
        &amp;lt;import uri="http://www.alfresco.org/model/site/1.0" prefix="st" /&amp;gt;
        &amp;lt;import uri="http://www.alfresco.org/model/system/1.0" prefix="sys" /&amp;gt;
        &amp;lt;import uri="http://www.alfresco.org/model/ai/1.0" prefix="ai"/&amp;gt;
    &amp;lt;/imports&amp;gt;

    &amp;lt;namespaces&amp;gt;
        &amp;lt;namespace uri="http://mymodel.org" prefix="my" /&amp;gt;
    &amp;lt;/namespaces&amp;gt;

    &amp;lt;aspects&amp;gt;
        &amp;lt;aspect name="my:invoice"&amp;gt;
           &amp;lt;title&amp;gt;Invoice Info&amp;lt;/title&amp;gt;
           &amp;lt;parent&amp;gt;ai:textract&amp;lt;/parent&amp;gt;
           &amp;lt;properties&amp;gt;
               &amp;lt;property name="my:varsymbol"&amp;gt;
                   &amp;lt;title&amp;gt;Variabilni symbol&amp;lt;/title&amp;gt;
                   &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;
		   &amp;lt;multiple&amp;gt;true&amp;lt;/multiple&amp;gt;
                   &amp;lt;index enabled="true" /&amp;gt;
               &amp;lt;/property&amp;gt;
               &amp;lt;property name="my:splatnost"&amp;gt;
                   &amp;lt;title&amp;gt;Datum splatnosti&amp;lt;/title&amp;gt;
                   &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;
                   &amp;lt;multiple&amp;gt;true&amp;lt;/multiple&amp;gt;
                   &amp;lt;index enabled="true" /&amp;gt;
               &amp;lt;/property&amp;gt;
	       &amp;lt;property name="my:ico"&amp;gt;
                   &amp;lt;title&amp;gt;ICO&amp;lt;/title&amp;gt;
                   &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;
                   &amp;lt;multiple&amp;gt;true&amp;lt;/multiple&amp;gt;
                   &amp;lt;index enabled="true" /&amp;gt;
               &amp;lt;/property&amp;gt;
               &amp;lt;property name="my:dic"&amp;gt;
                   &amp;lt;title&amp;gt;DIC&amp;lt;/title&amp;gt;
                   &amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;
                   &amp;lt;multiple&amp;gt;true&amp;lt;/multiple&amp;gt;
                   &amp;lt;index enabled="true" /&amp;gt;
               &amp;lt;/property&amp;gt;
           &amp;lt;/properties&amp;gt;
        &amp;lt;/aspect&amp;gt;
    &amp;lt;/aspects&amp;gt;
&amp;lt;/model&amp;gt;&lt;/PRE&gt;&lt;P&gt;2) AI property mapping&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{
   "keyValueMapping":[
      {
         "aiTextract":[
            {
               "key":"Variabilni symbol:",
               "aspect":"my:invoice",
               "property":"my:varsymbol"
            },
            {
               "key":"Datum splatnosti:",
               "aspect":"my:invoice",
               "property":"my:splatnost"
            },
  	    {
               "key":"ICO:",
               "aspect":"my:invoice",
               "property":"my:ico"
            },
            {
               "key":"DIC:",
               "aspect":"my:invoice",
               "property":"my:dic"
            }
         ]
      }
   ]
}&lt;/PRE&gt;&lt;P&gt;3) Update app.extension.json for digital workspace&lt;/P&gt;&lt;PRE&gt;"content-metadata-presets": [
      {
        "id": "app.content.metadata.custom",
        "custom": [
          {
            "id": "ai.metadata.features",
            "title": "AI Data",
            "items": [
              {
                "id": "ai:products",
                "aspect": "ai:products",
                "properties": "*"
              },
              {
                "id": "ai:dates",
                "aspect": "ai:dates",
                "properties": "*"
              },
...
	      {
                "id": "my:invoice",
                "aspect": "my:invoice",
                "properties": "*"
              }
...
            ]
          },&lt;/PRE&gt;&lt;P&gt;3) Update share-config-custom.xml&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;alfresco-config&amp;gt;
    &amp;lt;config evaluator="string-compare" condition="DocumentLibrary"&amp;gt;
        &amp;lt;!-- Aspects that a user can see --&amp;gt;
        &amp;lt;aspects&amp;gt;
            &amp;lt;visible&amp;gt;
                &amp;lt;aspect name="my:invoice"/&amp;gt;
            &amp;lt;/visible&amp;gt;
        &amp;lt;/aspects&amp;gt;
    &amp;lt;/config&amp;gt;
&amp;lt;/alfresco-config&amp;gt;&lt;/PRE&gt;&lt;P&gt;4) add rule and aspect to folder&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rule.png" style="width: 829px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/577i44EB485A88B17528/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;And this is the result:&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="node.jpg" style="width: 937px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/580i56CCBCCBD5221F63/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="workspace.jpg" style="width: 345px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/579i44046F30ED1504E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 10:16:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/ai-custom-model-does-not-appear-in-digital-workspace/m-p/85373#M25918</guid>
      <dc:creator>miroslav</dc:creator>
      <dc:date>2020-04-20T10:16:25Z</dc:date>
    </item>
  </channel>
</rss>

