- From: Steven Chang <steven.chang@corp.go.com>
- Date: Mon, 1 May 2000 20:37:17 -0700
- 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 UTC