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 2AD7862A6 for ; Wed, 22 Jun 2011 15:46:52 +0000 (UTC) Received: (qmail 10106 invoked by uid 500); 22 Jun 2011 15:46:52 -0000 Delivered-To: apmail-incubator-clerezza-dev-archive@incubator.apache.org Received: (qmail 10071 invoked by uid 500); 22 Jun 2011 15:46:52 -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 10057 invoked by uid 99); 22 Jun 2011 15:46:52 -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 15:46:52 +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 15:46:44 +0000 Received: by iym10 with SMTP id 10so838625iym.6 for ; Wed, 22 Jun 2011 08:46:23 -0700 (PDT) MIME-Version: 1.0 Received: by 10.231.208.142 with SMTP id gc14mr729001ibb.115.1308757583543; Wed, 22 Jun 2011 08:46:23 -0700 (PDT) Sender: reto@trialox.org Received: by 10.231.10.66 with HTTP; Wed, 22 Jun 2011 08:46:23 -0700 (PDT) X-Originating-IP: [194.230.155.30] In-Reply-To: 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 17:46:23 +0200 X-Google-Sender-Auth: 4edDpR1gP9VDDZFwfJOAcg2J90w Message-ID: Subject: Re: EzGraph was: apply-method for language From: Reto Bachmann-Gmuer To: Henry Story Cc: clerezza-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=0016e6d27485dd3deb04a64ededc X-Virus-Checked: Checked by ClamAV on apache.org --0016e6d27485dd3deb04a64ededc Content-Type: text/plain; charset=UTF-8 On Wed, Jun 22, 2011 at 5:38 PM, Henry Story wrote: > > On 22 Jun 2011, at 17:23, Reto Bachmann-Gmuer wrote: > > To make debugging easier it woul be good to have tests of smaller sizes > pass. So I recommend that before writing a test for an 18 triple-graph write > a couple of test with only between 1 and 3 triples. > > > yes, that's just what I was doing now, and am having trouble there. > > But at least we can see that the notation looks good. > I though I try with what I thought to be the easiest possible case: private val miniGraph: Graph = { val henry = new UriRef("http://bblfish.net/#hjs") val reto = new UriRef("https://farewellutopia.com/user/me#me") val gr = new SimpleMGraph gr.add(new TripleImpl(reto,FOAF.knows, henry)) gr.getGraph } @Test def miniUsingAsciiArrows { import org.apache.clerezza.rdf.scala.utils.EasyGraph._ val ez = new EasyGraph() // example using arrows ( "https://farewellutopia.com/user/me#me".uri -- FOAF.knows --> " http://bblfish.net/#hjs".uri ) Assert.assertEquals("Both graphs should have the same size",largerGraph.size, ez.size) Assert.assertEquals("Both graphs should contain exactly the same triples",miniGraph, ez.getGraph) } But this doesn't even compile, how is one supposed to write this single-triple graph with ez-graph? Cheers, Reto > > Henry > > > Social Web Architect > http://bblfish.net/ > > --0016e6d27485dd3deb04a64ededc--