Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 677A4200CF3 for ; Wed, 13 Sep 2017 11:17:56 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 65E481609CA; Wed, 13 Sep 2017 09:17:56 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 845021609C9 for ; Wed, 13 Sep 2017 11:17:55 +0200 (CEST) Received: (qmail 67112 invoked by uid 500); 13 Sep 2017 09:17:54 -0000 Mailing-List: contact dev-help@atlas.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@atlas.apache.org Delivered-To: mailing list dev@atlas.apache.org Received: (qmail 67100 invoked by uid 99); 13 Sep 2017 09:17:54 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Sep 2017 09:17:54 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id BED7A1A23CF for ; Wed, 13 Sep 2017 09:17:53 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.249 X-Spam-Level: *** X-Spam-Status: No, score=3.249 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, KAM_LAZY_DOMAIN_SECURITY=1, KAM_LOTSOFHASH=0.25, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 0tqH9U0g5xI5 for ; Wed, 13 Sep 2017 09:17:51 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 3EE5460D2C for ; Wed, 13 Sep 2017 09:17:51 +0000 (UTC) Received: from reviews.apache.org (unknown [10.41.0.12]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 8C0C6E010F; Wed, 13 Sep 2017 09:17:50 +0000 (UTC) Received: from reviews-vm2.apache.org (localhost [IPv6:::1]) by reviews.apache.org (ASF Mail Server at reviews-vm2.apache.org) with ESMTP id A2FE7C40096; Wed, 13 Sep 2017 09:17:48 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============6215767972638050291==" MIME-Version: 1.0 Subject: Re: Review Request 62244: ATLAS2058 Add description to attributedefs and relationship enddefs From: Madhan Neethiraj To: Madhan Neethiraj Cc: atlas , David Radley , Sarath Subramanian Date: Wed, 13 Sep 2017 09:17:48 -0000 Message-ID: <20170913091748.50237.88286@reviews-vm2.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: Madhan Neethiraj X-ReviewGroup: atlas X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/62244/ X-Sender: Madhan Neethiraj References: <20170912181528.46133.97426@reviews-vm2.apache.org> In-Reply-To: <20170912181528.46133.97426@reviews-vm2.apache.org> Reply-To: Madhan Neethiraj X-ReviewRequest-Repository: atlas archived-at: Wed, 13 Sep 2017 09:17:56 -0000 --===============6215767972638050291== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On Sept. 12, 2017, 6:15 p.m., Sarath Subramanian wrote: > > intg/src/main/java/org/apache/atlas/model/typedef/AtlasStructDef.java > > Lines 275 (patched) > > > > > > can we include descriptions for existing attributes and relationshipEndDefs for out of the box models as part of this JIRA? > > David Radley wrote: > I think it is better to separate the putting values into the models into separate Jiras. We can then use those Jiras to review the description content rather than the mechanism to introduce description. > > Madhan Neethiraj wrote: > I agree. However, I would suggest adding 'Map aliases' field to struct-def and attribute-def - to enable alternate names for these to be stored along with entity-def, classification-def and attribute-def. This should be a trivial update and can be taken up along with addition of 'description' field. > > David Radley wrote: > I am unsure what the keys and values might be for the aliases map you are proposing. Are you thinking that the aliases would be instance aliases or type aliases? > > We are thinking of adding external type identifications (ExternalTypeIdDefs) as a new array associated with attributes, structures (and the otehr defs). We are thinking the elements would be specified in the typeDefs in the form: > > ExternalTypeIdDefs [ > { "scheme":"O-DEF", > "value":"123-456", > "description":"Relational Database", > "ResponsibleOrg":"Open Group", > "ReferenceDocumentationURL":"http://xxx.yyy.zzz" > }, > { > ... > } > ] > > Scheme and value would be manditory. > > One way to handle type aliases would be using the above mechanism: > { "scheme":"alias", > "value":"RDB", > "description":"short hand relational database key for consumer A", > "ResponsibleOrg":"Consumer A organisation", > "ReferenceDocumentationURL":"http://aaa.bbb.bbb" > }, > > or > > { "scheme":"alias", > "value":"RDB" > }, > > > This would allow these external type identifier metadata values to be visible in the json models. > > I was thinking of doing this piece separately in another Jira. The addition of the code as-is in the Jira will in enable me to add desciptions to the attributes / relationship ends in the new models. For the existing Hadoop models - it might be worth having someone more expert in Hadoop filling in those descriptions. > > David Radley wrote: > One other thought - if the aliases map are for instances - I wonder if they could be indexed. I assume they could be specified in a search query. We discussed about an entity-type or an attribute in Atlas being referred with a different name in other meta-data standards. The 'alias' field I suggested above is to capture these names along with entity-def/attribute-def in Atlas. I assume it will be enough to capure only the name used in other standards; if more richer information is available, how likely it is to be able to capture all the details available in various standards? To keep it simple, we can start with only capturing the names used in other meta-data standards. - Madhan ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/62244/#review185223 ----------------------------------------------------------- On Sept. 12, 2017, 5:13 p.m., David Radley wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/62244/ > ----------------------------------------------------------- > > (Updated Sept. 12, 2017, 5:13 p.m.) > > > Review request for atlas and Madhan Neethiraj. > > > Repository: atlas > > > Description > ------- > > ATLAS2058 Add description to attributedefs and relationship enddefs > > > Diffs > ----- > > intg/src/main/java/org/apache/atlas/model/typedef/AtlasRelationshipEndDef.java 01e5ce738e8a5310cee928560364d4a38f5c6e18 > intg/src/main/java/org/apache/atlas/model/typedef/AtlasStructDef.java 3a5c43ac7e6d0a7f683c24d13d6c841de4d66a14 > repository/src/main/java/org/apache/atlas/repository/store/graph/v1/AtlasStructDefStoreV1.java c3c42be86d8c9fd282fdc1428c8fd78e338a3cfb > > > Diff: https://reviews.apache.org/r/62244/diff/1/ > > > Testing > ------- > > Create an entity attribute, relationship attribute and a relationship end with a description and then issue getTypeDefs to check they are there. > > > Thanks, > > David Radley > > --===============6215767972638050291==--