REcommend ME


Featured Links

Exception in thread

When you run the and onwards in the Jena examples, you get the following error:

ERROR [main] ( - file:///C:/Users/Ravi/Desktop/Jena-examples/(line 4 column 60): {E201} rdf:about not allowed as attribute here.
ERROR [main] ( - file:///C:/Users/Ravi/Desktop/Jena-examples/(line 5 column 15): The prefix "vcard" for element "vcard:fn" is not bound.
Exception in thread "main" com.hp.hpl.jena.shared.JenaException: org.xml.sax.SAXParseException: The prefix "vcard" for element "vcard:fn" is not bound.
at com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler.fatalError(
at com.hp.hpl.jena.rdf.arp.impl.ARPSaxErrorHandler.fatalError(
at com.hp.hpl.jena.rdf.arp.impl.XMLHandler.warning(
at com.hp.hpl.jena.rdf.arp.impl.XMLHandler.fatalError(
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLNamespaceBinder.handleStartElement(Unknown Source)
at org.apache.xerces.impl.XMLNamespaceBinder.startElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at com.hp.hpl.jena.rdf.arp.impl.RDFXMLParser.parse(

This is very wierd, but the rdf (vc-db-1.rdf), which I obtained from the internet, seems to contain two different instances for vcard: viz, “vcard” and “vCard”. The namespace for “vCard” seems to be defined but “vcard” not defined. So, the solution might be just name all vcards consistently to a single name such as “vcard”.

And later I found that vc-db-1.rdf obtained from vc-db-1.rdf was not correct, and that file that the example needs is located in directory doc/tutorial/RDQL folder. Thanks to we8ver

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • Facebook
  • Google Bookmarks
  • Blogplay
  • PDF

7 comments to org.xml.sax.SAXParseException: The prefix “vcard” for element “vcard:fn” is not bound.

  • Normally I don’t learn post on blogs, however I wish to say that this write-up very pressured me to check out and do so! Your writing style has been amazed me. Thanks, very great post.

  • Ahaa, its fastidious dialogue about this post here at this weblog, I have read all
    that, so at this time me also commenting at this place.

  • Jewel Cole is a freelance writer for a retailer company.
    So does how you configure your CPU, memory, and virtual memory settings.

    If you are searching for a qualified technician to check and spot your
    and to solve them immediately then you should take a
    look at Connect Global.

  • ” The next generation of antivirus applications for endpoints must include an integrated and centralised management console. These software want connection to their personal websites simultaneously could considerably worsen your computer performance. There are 17 products I recommend, each of which is designed to do a certain task on the PC.

  • Hey there, I think your site might be having browser compatibility issues.
    When I look at your website in Opera, it looks fine but when opening in Internet Explorer, it has some overlapping.
    I just wanted to give you a quick heads up! Other then that, wonderful blog!

  • Thanks in favor of sharing such a fastidious
    thinking, article is good, thats why i have read it completely

    my web page (Robbin)

  • Amazaing blog! Is your theme custom made or did you download it from somewhere?A theme like youfs with a few simple
    tweeks would really make my blog shine. Please leet me know where you got your theme.

    Thnks a lot

    Here is myy website :: Jonathan Ramsay

Leave a Reply




You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>