Re: Tyro question on PB and RDF+XML

From: Jon Crump <jjcrump_at_myuw.net>
Date: Fri, 3 Mar 2006 12:10:08 -0800 (PST)

Ryan,

Thanks for responding so quickly. On the one hand I'm delighted that you
were unable to reproduce my results. This means I'm not crazy and that
both files are 'valid' RDF (apart from the abuse of dublin core). On the
other hand, it means that my Piggy-Bank is broken somehow. :-(

> I'm afraid I wasn't able to reproduce your results. Putting your RDF in
> two different files and sic'ing PB on both, I got results in both cases.
> Which version of PB are you using? I'm using a nightly build of 2.1.2
> from Jan. 18, 2006. Did you see anything in the Javascript console
> and/or Java console?
>
> As an aside, it's dc:creator, not dc:author.
>
> -- Ryan Lee ryanlee_at_w3.org

I can't help thinking the problem is related to my earlier query of Mon,
20 Feb "bibtex2rdf and PB questions." As stated there, I'm using a
recently updated iBook (G4 OS 10.4.3) with the new version of FF
(Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.1)
Gecko/20060111 Firefox/1.5.0.1) and the new version of PB (2.1.1). The
console output from that error is appended to that message. I still have
no satisfactory explanation for that problem. With respect to the current
problem

When I point PB at the first file "copticJohn.rdf":

<?xml version="1.0" encoding="ISO-8859-1"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
         xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
         xmlns:foaf="http://xmlns.com/foaf/0.1/"
         xmlns:dc="http://purl.org/dc/elements/1.1/"
         xmlns:eta="http://electronic.text.archive/cartah#">

         <rdf:Description
rdf:about="http://depts.washington.edu/cartah/text_archive/coptic/meta_pag.shtml">
                 <rdf:type
rdf:resource="http://electronic.text.archive/cartah#Etext"/>
                 <rdfs:label>Coptic John</rdfs:label>
                 <dc:title>Coptic Gospel of John: The Logos Hymn
(1:1-14)</dc:title>
                 <dc:link
rdf:resource="http://depts.washington.edu/cartah/text_archive/coptic/coptjohn.shtml"
/>
                 <dc:date>1911-1924</dc:date>
                 <dc:author>Unknown</dc:author>
                 <dc:editor>Lance Jenott</dc:editor>
                 <dc:responsibility>CARTAH</dc:responsibility>
                 <dc:publisher>The Clarendon Press</dc:publisher>
                 <dc:rights>Copyright © 2003 University of Washington. All
Rights Reserved.</dc:rights>
                 <eta:ID>BS2000 1911</eta:ID>
         </rdf:Description>

</rdf:RDF>

The response from the java console is as follows:

MRJ Plugin for Mac OS X v1.0.1
[starting up Java Applet Security _at_ Fri Mar 03 11:20:46 PST 2006]
11:22:04.308 [Velocity ] VM #addNarrowingButton: error : too few
arguments to macro. Wanted 3 got 0 (0ms)
11:22:04.360 [Velocity ] VM #addBroadeningButton: error : too few
arguments to macro. Wanted 3 got 0 (52ms)
11:22:04.398 [Velocity ] VM #addTextSearchButton: error : too few
arguments to macro. Wanted 1 got 0 (38ms)
java.lang.RuntimeException: Error loading data from URL:
file:/Users/jjc/Desktop/SimileTestingRoundII/copticJohn.rdf Failed to read
data from 'file:/Users/jjc/Desktop/SimileTestingRoundII/copticJohn.rdf'
         at
edu.mit.simile.SimileUtilities.loadDataFromConnection(SimileUtilities.java:193)
         at
edu.mit.simile.piggyBank.TemporaryProfile.loadFile(TemporaryProfile.java:482)
         at
edu.mit.simile.piggyBank.TemporaryProfile.load(TemporaryProfile.java:343)
         at
edu.mit.simile.piggyBank.TemporaryProfile$LoadingThread.run(TemporaryProfile.java:140)
11:22:05.051 [...oraryProfile] java.lang.RuntimeException: Error loading
data from URL: file:/Users/jjc/Desktop/SimileTestingRoundII/copticJohn.rdf
Failed to read data from
'file:/Users/jjc/Desktop/SimileTestingRoundII/copticJohn.rdf' (653ms)

Not very informative is it? When parsing the second file
(copticJohn1.rdf):

<rdf:RDF xmlns="http://purl.org/dc/elements/1.1/"
     xmlns:eta="http://electronic.text.archive/cartah#"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
     xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#">

     <eta:Etext
rdf:about="http://depts.washington.edu/cartah/text_archive/coptic/meta_pag.shtml">
         <eta:ID>BS2000 1911</eta:ID>
         <author>Unknown</author>
         <date>1911-1924</date>
         <editor>Lance Jenott</editor>
         <link
rdf:resource="http://depts.washington.edu/cartah/text_archive/coptic/coptjohn.shtml"/>
         <publisher>The Clarendon Press</publisher>
         <responsibility>CARTAH</responsibility>
         <rights>Copyright: 2003 University of Washington. All Rights
Reserved.</rights>
         <title>Coptic Gospel of John: The Logos Hymn (1:1-14)</title>
         <rdfs:label>Coptic John</rdfs:label>
     </eta:Etext>
</rdf:RDF>

I get the expected result and the response from the console is merely:

11:34:36.400 [...orpus.Corpus] Warning: Internal error:
java.io.FileNotFoundException: /Users/jjc/Library/Application
Support/Firefox/Profiles/nel8zymd.default/piggy-bank/temporary-sources/model1141413391181/database/namespaces.dat
(No such file or directory) on null at [-1,-1] (751349ms)
11:34:36.403 [...oraryProfile] java.io.IOException:
java.io.FileNotFoundException: /Users/jjc/Library/Application
Support/Firefox/Profiles/nel8zymd.default/piggy-bank/temporary-sources/model1141413391181/database/namespaces.dat
(No such file or directory) (3ms)

As to the javascript console, I get the following errors whenever I start
FF regardless of what PB is doing:

Error: Warning: unrecognized command line flag -psn_0_29360129
Source File:
file:///Applications/InternetApps/Firefox.app/Contents/MacOS/components/nsBrowserContentHandler.js
Line: 518
Error: Selector expected. Ruleset ignored due to bad selector.
Source File:
http://www.google.com/firefox?client=firefox-a&rls=org.mozilla:en-US:official
Line: 3
Error: Unexpected end of file while searching for closing } of invalid
rule set.
Source File:
http://www.google.com/firefox?client=firefox-a&rls=org.mozilla:en-US:official
Line: 4

I get no further errors, warnings or messages from the javascript console
when PB attemts to parse these two files.

It is also the case that when I use the same version of PB on a windowsXP
box, both files are parsed successfully. It's clear that there is
something wrong with my installation of PB, or FF, or both on my iBook. If
my experimentation is going to continue, I guess I'm going to have to
grasp the nettle firmly and use subversion to download and build the most
recent version of PB. I hope you won't mind further naive questions on
that score as well.

If the console reports included above do give you any inkling as to what
the problem is, please let me know.

Many thanks, and the usual kudos to the assembled wise heads.

Jon
__________
J.J. Crump
Dept. of History 353560
University of Washington
Seattle, WA. 98195
Received on Fri Mar 03 2006 - 20:08:34 EST

This archive was generated by hypermail 2.3.0 : Thu Aug 09 2012 - 16:39:18 EDT