Return-Path: Delivered-To: apmail-incubator-jena-users-archive@minotaur.apache.org Received: (qmail 22959 invoked from network); 9 Dec 2010 15:58:21 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Dec 2010 15:58:21 -0000 Received: (qmail 35982 invoked by uid 500); 9 Dec 2010 15:58:21 -0000 Delivered-To: apmail-incubator-jena-users-archive@incubator.apache.org Received: (qmail 35957 invoked by uid 500); 9 Dec 2010 15:58:21 -0000 Mailing-List: contact jena-users-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jena-users@incubator.apache.org Delivered-To: mailing list jena-users@incubator.apache.org Received: (qmail 35949 invoked by uid 99); 9 Dec 2010 15:58:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Dec 2010 15:58:20 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bimargulies@gmail.com designates 209.85.214.52 as permitted sender) Received: from [209.85.214.52] (HELO mail-bw0-f52.google.com) (209.85.214.52) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Dec 2010 15:58:12 +0000 Received: by bwz4 with SMTP id 4so2819901bwz.25 for ; Thu, 09 Dec 2010 07:57:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=eBf6mYl/B8OzB1SsedYpsLFUnVwfH+7dt6l8ZgWngrY=; b=I2wVFpcH0hv59oiSJcbgLfOR+lsGFpJgbL7vPEbP0YFfDLi1E34aToo/43EGfB/I2L 8FAcdMHQoIJzbKxoP7fwnzn+qJTWdWKSPfLE1r0/hpun/QFFgFO7EMKE/ZZvVi9MOO1I Q72ewdG1bP2r8Y4Vbc6BQH3aImP8MF14HHziM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=wza4CSCibWr0evoBLrk/dZg/iDL+HyLjUG4FxR/jAOKbGfoLheNj7GcZsBcfAd4o+X OOUaFyG/Wrvc4C+lVykz7fwgq7e6Snk66qBlwSoWbpyys1+8SVKKnDy8c8NXruRHCXeW tmkKb8lkNlOP9pnPTAZjc6a+1VgOg2X7hg91o= MIME-Version: 1.0 Received: by 10.204.52.75 with SMTP id h11mr3495855bkg.67.1291910272243; Thu, 09 Dec 2010 07:57:52 -0800 (PST) Received: by 10.204.45.66 with HTTP; Thu, 9 Dec 2010 07:57:52 -0800 (PST) Date: Thu, 9 Dec 2010 10:57:52 -0500 Message-ID: Subject: Creating and working with RDF where I have an ontology From: Benson Margulies To: jena-users@incubator.apache.org Content-Type: text/plain; charset=UTF-8 X-Virus-Checked: Checked by ClamAV on apache.org This is a better-explained variation on a question I sent our earlier today. I built an ontology with Protege that defines some classes. I pushed the ontology into Jena schemagen to get some symbolic names for my URIs. I create an ontology model, model = ModelFactory.createOntologyModel(); Note the last of any base uri that names my ontology. and then I make calls like: entityRef = model.createIndividual(entityUri, oclass); entityRef.addLiteral(Rex.hasEntityDetectionSource, source); entityRef.addLiteral(Rex.hasNormalizedText, normalizedText); entityRef.addLiteral(Rex.hasOriginalText, rawText); I write this out ops.getModel().write(baos, "RDF/XML-ABBREV"); Now I want to read it in and look at it. All variations on OntModel.read() that I've tried result in a model with no individuals. I can think of a number of ways in which the above might be defective, but I suspect that the readers of this list will have a brief ROTFL moment and tell me what very basic thing I've misunderstood.