Return-Path: X-Original-To: apmail-incubator-jena-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-jena-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4148A7B29 for ; Mon, 21 Nov 2011 08:55:30 +0000 (UTC) Received: (qmail 65190 invoked by uid 500); 21 Nov 2011 08:55:30 -0000 Delivered-To: apmail-incubator-jena-dev-archive@incubator.apache.org Received: (qmail 65150 invoked by uid 500); 21 Nov 2011 08:55:29 -0000 Mailing-List: contact jena-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jena-dev@incubator.apache.org Delivered-To: mailing list jena-dev@incubator.apache.org Received: (qmail 65142 invoked by uid 99); 21 Nov 2011 08:55:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Nov 2011 08:55:29 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dave.e.reynolds@gmail.com designates 74.125.82.43 as permitted sender) Received: from [74.125.82.43] (HELO mail-ww0-f43.google.com) (74.125.82.43) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Nov 2011 08:55:21 +0000 Received: by wwp14 with SMTP id 14so9825212wwp.0 for ; Mon, 21 Nov 2011 00:55:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; bh=Wydt4NhKGi6fNqAEXMdW/3A7fQR+yopTUYsspFGkMfg=; b=YnAMyGZmeDlKY9Ecds762EYOEXXOnhEPm0NhLNRHz/EucRRaPu1/g5baXvZt7R44dL 6qH1C5XGXRSB4N5BzO9eitT5UAs77ImLE8/XBn9zq4nq7BnalNKEWnLLY0VGdfTNKVk3 KSRhSvnTnzyh60Vsju4Y0XDpidf1HABPnXUhE= Received: by 10.227.198.76 with SMTP id en12mr839180wbb.14.1321865700226; Mon, 21 Nov 2011 00:55:00 -0800 (PST) Received: from [192.168.1.51] (82-69-1-248.dsl.in-addr.zen.co.uk. [82.69.1.248]) by mx.google.com with ESMTPS id ep16sm11945199wbb.21.2011.11.21.00.54.56 (version=SSLv3 cipher=OTHER); Mon, 21 Nov 2011 00:54:57 -0800 (PST) Subject: Re: Example code From: Dave Reynolds To: jena-dev@incubator.apache.org In-Reply-To: <4EC94FDA.70406@epimorphics.com> References: <4EC94FDA.70406@epimorphics.com> Content-Type: text/plain; charset="UTF-8" Date: Mon, 21 Nov 2011 08:54:55 +0000 Message-ID: <1321865695.2634.5.camel@dave-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Content-Transfer-Encoding: 7bit On Sun, 2011-11-20 at 19:07 +0000, Ian Dickinson wrote: > There are various bits of example code referenced from the current > documentation. There's more that I would like to add to support some of > the new content. What we don't have, at the moment, is a place to put it > (Paolo's github notwithstanding [1] :) > > Proposal: create an svn module > > https://svn.apache.org/repos/asf/incubator/jena/Jena2/Examples/ > > (with standard trunk/, tags/, branches/ layout). Use maven for > dependencies. For each example, e.g. the Ont API class hierarchy > example, create a Java package: > > org.apache.jena.example.class_hierarchy > > in src/main/java, and put necessary resources (*.rdf, assembler configs, > etc), in src/main/resources/example/class_hierarchy > > Optionally, we could group examples together by theme: > > org.apache.jena.example.ontology.class_hierarchy > > but personally I'm in favour of a flat structure so that users can see > all of the examples at one level. > > There should be some level of README documentation about each example in > the examples package somewhere. > > Distribution could either be by just letting users check out the code > from svn or the git mirror (we could provide detailed instructions on > the web site), or we could add an assembly to zip up the contents of the > examples module. > > Comments? Seems like a good plan. I'd be in favour of letting users check it out to begin with (creating an assembly and zip may set a high expectation of level of packaging than we want). Dave