<?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>question Do traits still use the legacy API? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Do-traits-still-use-the-legacy-API/m-p/206889#M168850</link>
    <description>&lt;P&gt;I'm looking at the documentation for HDP 2.6.1 and from what I can see, traits still use the legacy API rather than v2. Am I reading the documentation correctly?&lt;/P&gt;&lt;P&gt;In section '&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.1/bk_data-governance/content/atlas_types.html"&gt;Atlas types&lt;/A&gt;' it states that composite metatypes are "Class, Struct, Trait".&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;PRE&gt;POST v2/types/classificationdef 

POST /v2/types/structdef &lt;/PRE&gt;&lt;P&gt;But v2 REST API doesn't have anything for 'trait'&lt;/P&gt;&lt;P&gt;In section '&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.1/bk_data-governance/content/atlas_catalog_metadata_traits.html"&gt;Cataloging Atlas Metadata: Traits and Business Taxonomy&lt;/A&gt;' we have:&lt;/P&gt;&lt;PRE&gt;POST &lt;A href="http://&amp;lt;atlas-server-host:port&amp;gt;/api/atlas/types" target="_blank"&gt;http://&amp;lt;atlas-server-host:port&amp;gt;/api/atlas/types&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;So this is using the legacy API.  Is this right? Will this change with future Atlas releases?&lt;/P&gt;&lt;P&gt;Also, can someone provide a business use case for using classifications, structs and traits. I'm getting muddled between the circumstances I would use each.  Many thanks!&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2017 02:00:25 GMT</pubDate>
    <dc:creator>laura_ngo</dc:creator>
    <dc:date>2017-06-13T02:00:25Z</dc:date>
    <item>
      <title>Do traits still use the legacy API?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Do-traits-still-use-the-legacy-API/m-p/206889#M168850</link>
      <description>&lt;P&gt;I'm looking at the documentation for HDP 2.6.1 and from what I can see, traits still use the legacy API rather than v2. Am I reading the documentation correctly?&lt;/P&gt;&lt;P&gt;In section '&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.1/bk_data-governance/content/atlas_types.html"&gt;Atlas types&lt;/A&gt;' it states that composite metatypes are "Class, Struct, Trait".&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;PRE&gt;POST v2/types/classificationdef 

POST /v2/types/structdef &lt;/PRE&gt;&lt;P&gt;But v2 REST API doesn't have anything for 'trait'&lt;/P&gt;&lt;P&gt;In section '&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.1/bk_data-governance/content/atlas_catalog_metadata_traits.html"&gt;Cataloging Atlas Metadata: Traits and Business Taxonomy&lt;/A&gt;' we have:&lt;/P&gt;&lt;PRE&gt;POST &lt;A href="http://&amp;lt;atlas-server-host:port&amp;gt;/api/atlas/types" target="_blank"&gt;http://&amp;lt;atlas-server-host:port&amp;gt;/api/atlas/types&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;So this is using the legacy API.  Is this right? Will this change with future Atlas releases?&lt;/P&gt;&lt;P&gt;Also, can someone provide a business use case for using classifications, structs and traits. I'm getting muddled between the circumstances I would use each.  Many thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 02:00:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Do-traits-still-use-the-legacy-API/m-p/206889#M168850</guid>
      <dc:creator>laura_ngo</dc:creator>
      <dc:date>2017-06-13T02:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Do traits still use the legacy API?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Do-traits-still-use-the-legacy-API/m-p/206890#M168851</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/3758/laurango.html" nodeid="3758"&gt;@Laura Ngo&lt;/A&gt;, &lt;/P&gt;&lt;P&gt;The documentation for '&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.1/bk_data-governance/content/atlas_types.html"&gt;Atlas types&lt;/A&gt;' is still not updated with v2 types. It should ideally be -  "Composite metatypes – Entity, Struct and Classification"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Struct Type:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You cannot create instances for Struct types as they do not have an identity of their own (it doesn't have a GUID), it always exists with an entity. e.g. entity attribute can be of type struct.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Classification type: &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Each classification instance is associated with an entity. The v2 type name for "trait" is "classification" and it is derived from Struct. e.g. Associate tag/classification to an entity. &lt;/P&gt;&lt;P&gt;Checkout &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.1/bk_data-governance/content/ch_working_with_atlas_tags.html"&gt;Working with Atlas Tags&lt;/A&gt; to know more about how you can assign tag/classification to an entity.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 02:38:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Do-traits-still-use-the-legacy-API/m-p/206890#M168851</guid>
      <dc:creator>ssubramanian</dc:creator>
      <dc:date>2017-06-13T02:38:43Z</dc:date>
    </item>
  </channel>
</rss>

