W3C home > Mailing lists > Public > www-rdf-interest@w3.org > May 2000

[www-rdf-interest] <none>

From: Steven Chang <steven.chang@corp.go.com>
Date: Mon, 1 May 2000 20:37:17 -0700
Message-ID: <9DFABE67AC49D2119BCE00A0C9D3367D02C59787@dime.infoseek.com>
To: "'melnik@db.stanford.edu'" <melnik@db.stanford.edu>
Cc: "'www-rdf-interest@w3.org'" <www-rdf-interest@w3.org>
Hi melnik,

I downloaded rdf-api-2000-04-13.jar.  I ran some
of test according to the README.  It is working.
However, I tried it with 

	java org.w3c.rdf.examples.ParseAndSerialize
http://dmoz.org/rdf/structure.example.txt > out

	Warning: using the default XML parser AElfred
(com.microstar.xml.SAXDriver).
	Override for IBM xml4j is: java
-Dorg.xml.sax.parser=com.ibm.xml.parser.SAXDriverorg.w3c.rdf.SiRPAC

	SERIALIZED MODEL:

	TRIPLES:

	Exception in thread "main" java.lang.NullPointerException
        at
org.w3c.rdf.implementation.model.ModelImpl.getDigestBytes(ModelImpl.java:343
)
        at org.w3c.tools.crypt.DigestUtil.toHexString(DigestUtil.java:118)
        at
org.w3c.rdf.util.RDFDigestUtil.modelDigestToURI(RDFDigestUtil.java:27)
        at
org.w3c.rdf.implementation.model.ModelImpl.getURI(ModelImpl.java:331)
        at
org.w3c.rdf.examples.ParseAndSerialize.main(ParseAndSerialize.java:33)


As you can see, it causes the exception.  I also try
it with http://dmoz.org/rdf/content.example.txt with
similar result.

Also, is there a way to parse the dmoz file which is 
current at about 400-500 meg?  I tried it with 
http://dmoz.org/rdf/content.rdf.gz file (of cause, it was
unzip first) which ran out of mem before it can produce
the output.

Any idea?

--steven
Received on Monday, 1 May 2000 23:43:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:51:43 GMT