Return-Path: X-Original-To: apmail-incubator-clerezza-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-clerezza-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 A785E6A5E for ; Wed, 22 Jun 2011 13:29:26 +0000 (UTC) Received: (qmail 95514 invoked by uid 500); 22 Jun 2011 13:29:26 -0000 Delivered-To: apmail-incubator-clerezza-dev-archive@incubator.apache.org Received: (qmail 95450 invoked by uid 500); 22 Jun 2011 13:29:26 -0000 Mailing-List: contact clerezza-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: clerezza-dev@incubator.apache.org Delivered-To: mailing list clerezza-dev@incubator.apache.org Received: (qmail 95442 invoked by uid 99); 22 Jun 2011 13:29:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2011 13:29:26 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.210.175] (HELO mail-iy0-f175.google.com) (209.85.210.175) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2011 13:29:18 +0000 Received: by iym10 with SMTP id 10so713872iym.6 for ; Wed, 22 Jun 2011 06:28:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.81.204 with SMTP id y12mr612423ibk.165.1308749336900; Wed, 22 Jun 2011 06:28:56 -0700 (PDT) Sender: reto@trialox.org Received: by 10.231.10.66 with HTTP; Wed, 22 Jun 2011 06:28:56 -0700 (PDT) X-Originating-IP: [212.55.219.194] In-Reply-To: <4DC07487-F3D8-4FA4-8D90-8B9AF3BECE41@bblfish.net> References: <48FC2998-ABC0-4A1A-A9EB-17F05A27A86B@bblfish.net> <2D390009-1D29-40C1-A636-CD8FB0D1B57B@bblfish.net> <4DC07487-F3D8-4FA4-8D90-8B9AF3BECE41@bblfish.net> Date: Wed, 22 Jun 2011 15:28:56 +0200 X-Google-Sender-Auth: ABWwbx-usQg-m0tfiTFpUkR79wM Message-ID: Subject: Re: apply-method for language From: Reto Bachmann-Gmuer To: Henry Story Cc: clerezza-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=000e0cd6b40c53762104a64cf3d4 X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd6b40c53762104a64cf3d4 Content-Type: text/plain; charset=UTF-8 On Wed, Jun 22, 2011 at 3:11 PM, Henry Story wrote: > > On 22 Jun 2011, at 13:20, Reto Bachmann-Gmuer wrote: > > > > On Tue, Jun 21, 2011 at 3:01 PM, Henry Story wrote: > >> >> On 21 Jun 2011, at 08:23, Reto Bachmann-Gmuer wrote: >> >> Do you think you have some time today to demonstrate how things work in >> the unit tests? Afaict the examples you wrote in the comments, e.g. the one >> with (FOAF.knows)(g.bnode(FOAF.name)("Danny Ayers"('en))) cannot work. >> >> >> I'll start doing that now. >> > > Let me know if you need some help. It would be great if we could close that > issue today or tomorrow. > > > I simplified the EasyGraph, added an initial LangId class just to get > going, and filled in the unit tests. They should > work but don't . I need to write a couple of things, so I checked it in, in > case you can see what the problem may be. > I'll look at it. > > Some ideas: one could rename EasyGraph(Node) to EzGraph(Node). Then it > contains the z of Clerezza (and of Zorro too ;-) > I have removed the "Builder" in "LiteralBuilder" The Literal is not a > Builder. It's just that Scala makes it easy to map between literals. > It's an thing that returns a typedLiteral when adding a type, a plain literal when adding a language and which dynamically convert to xsd:string typedLiteral, don't see wha's wrong with "builder". > > "an english string" :en "an english string"@en > The new syntax is with a ":"-method on the new Language class? > > is both correct in rdf semantics and available in n3. In any case it is a > good way to think of the meaning of @ or ^^ > They are maps from strings to literals. That is indeed how they are defined > in the RDF Semantics spec. > Right, that's why there is this dynamic conversion from String to LiteralBuilder. Because you can apply a language or a type to a String and then it becomes a literal (or a UriRef for that mather, with the .uri method). Cheers, Reto > > Henry > > > Henry > > > > Cheers, > Reto > >> >> Henry >> >> Social Web Architect >> http://bblfish.net/ >> >> > > Social Web Architect > http://bblfish.net/ > > --000e0cd6b40c53762104a64cf3d4--