Return-Path: X-Original-To: apmail-any23-dev-archive@www.apache.org Delivered-To: apmail-any23-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2581BE619 for ; Tue, 5 Feb 2013 00:24:13 +0000 (UTC) Received: (qmail 2312 invoked by uid 500); 5 Feb 2013 00:24:13 -0000 Delivered-To: apmail-any23-dev-archive@any23.apache.org Received: (qmail 2238 invoked by uid 500); 5 Feb 2013 00:24:12 -0000 Mailing-List: contact dev-help@any23.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@any23.apache.org Delivered-To: mailing list dev@any23.apache.org Received: (qmail 2090 invoked by uid 99); 5 Feb 2013 00:24:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Feb 2013 00:24:12 +0000 Date: Tue, 5 Feb 2013 00:24:12 +0000 (UTC) From: "Peter Ansell (JIRA)" To: dev@any23.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ANY23-144) Implement comprehensive naming of o.a.a.api.vocab classes MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ANY23-144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13570790#comment-13570790 ] Peter Ansell commented on ANY23-144: ------------------------------------ My preference is for all uppercase vocabulary class names if the commonly used prefix is an acronym, and camel-case where it is not, however, in some cases that distinction is not necessarily clear. That is mostly based on positive experiences with the Sesame vocabulary classes, where you can use RDF.TYPE etc. The any23 vocabulary design requires access to entire vocabularies, which isn't a design constraint currently for the Sesame vocabulary classes, so there may end up being some difference still. The current Any23 pattern has access to vocabulary properties using DOAP.getInstance().PROPERTY, which tends to result in DOAP.getInstance() being stored in a private static final variable inside of each of the relevant extractors. The static final variable in the current extractors tends not to be named in upper-case to follow the java convention for static final variables. Instead they are named in hungarian case, with a "v" prefix to indicate they are vocabularies. To clear up the naming I would prefer if we avoided the getInstance() pattern. We might be able to convert the vocabularies into an extensible enumeration pattern with direct access to fields along with an interface to access the entire vocabulary using a base implementation. Then we could legitimately get access to the vocabulary properties programmatically as we currently can, and we could still have RDF.TYPE like access to the properties without storing them in a local private field to get around the getInstance() call. > Implement comprehensive naming of o.a.a.api.vocab classes > ---------------------------------------------------------- > > Key: ANY23-144 > URL: https://issues.apache.org/jira/browse/ANY23-144 > Project: Apache Any23 > Issue Type: Improvement > Components: api > Affects Versions: 0.7.0 > Reporter: Lewis John McGibbney > Assignee: Lewis John McGibbney > Priority: Minor > Fix For: 0.8.0 > > Attachments: ANY23-144.patch > > > As Simo pointed out we currently have a rather naff naming convention for all classes contained within the above package. > This issue should address that and rename all classes. > Thread for reference > http://s.apache.org/XTk -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira