Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-owl] Java Code Generation of FOAF OWL-DL

Dave butlerdi butlerdi at gmail.com
Thu Feb 12 22:28:57 PST 2009


It is generally the DOCTYPE declaration that causes problems with the
parser.

On Fri, Feb 13, 2009 at 3:12 AM, Rahul Parundekar
<rahul.parundekar at usc.edu>wrote:

>
> Hi. I am trying to convert the FOAF OWL-DL on mindswap website
> [http://www.mindswap.org/2003/owl/foaf] into Java code (using protege java
> code generation) by using the following:
>
>
> ProtegeOWL.createJenaOWLModelFromURI("file:///c:/programming/foaf.owl");
>
> Getting the following exceptions:
>   file:/c:/programming/foaf.owl
>
>
>   at line 2 and column 3.
>   Jena parse error message: The markup declarations contained or pointed
> to by the document type declaration must be well-formed. --
> org.xml.sax.SAXParseException: The markup declarations contained or pointed
> to by the document type declaration must be well-formed.
>       at
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source)
>       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.XMLScanner.reportFatalError(Unknown Source)
>       at org.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(Unknown Source)
>       at
> org.apache.xerces.impl.XMLDTDScannerImpl.scanDTDInternalSubset(Unknown
> Source)
>       at
>
> org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.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(RDFXMLParser.java:106)
>       at com.hp.hpl.jena.rdf.arp.ARP.load(ARP.java:143)
>       at
>
> edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser$1.invokeARP(Unknown
> Source)
>       at
>
> edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.loadTriples(Unknown
> Source)
>       at
> edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.run(Unknown
> Source)
>       at
>
> edu.stanford.smi.protegex.owl.jena.JenaKnowledgeBaseFactory.loadKnowledgeBase(Unknown
> Source)
>       at edu.stanford.smi.protege.model.Project.loadDomainKB(Unknown
> Source)
>       at
> edu.stanford.smi.protege.model.Project.createDomainKnowledgeBase(Unknown
> Source)
>       at
>
> edu.stanford.smi.protegex.owl.jena.creator.OwlProjectFromUriCreator.create(Unknown
> Source)
>       at
> edu.stanford.smi.protegex.owl.ProtegeOWL.createJenaOWLModelFromURI(Unknown
> Source)
>       at OwlJava.main(OwlJava.java:25)
>
> and at a further step inthe same function call :
> The markup declarations contained or pointed to by the document type
> declaration must be well-formed.
>       at edu.stanford.smi.protegex.owl.ProtegeOWL.handleErrors(Unknown
> Source)
>       at
> edu.stanford.smi.protegex.owl.ProtegeOWL.createJenaOWLModelFromURI(Unknown
> Source)
>       at OwlJava.main(OwlJava.java:25)
> Caused by: org.xml.sax.SAXParseException: The markup declarations contained
> or pointed to by the document type declaration must be well-formed.
>       at
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source)
>       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.XMLScanner.reportFatalError(Unknown Source)
>       at org.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(Unknown Source)
>       at
> org.apache.xerces.impl.XMLDTDScannerImpl.scanDTDInternalSubset(Unknown
> Source)
>       at
>
> org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.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(RDFXMLParser.java:106)
>       at com.hp.hpl.jena.rdf.arp.ARP.load(ARP.java:143)
>       at
>
> edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser$1.invokeARP(Unknown
> Source)
>       at
>
> edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.loadTriples(Unknown
> Source)
>       at
> edu.stanford.smi.protegex.owl.jena.parser.ProtegeOWLParser.run(Unknown
> Source)
>       at
>
> edu.stanford.smi.protegex.owl.jena.JenaKnowledgeBaseFactory.loadKnowledgeBase(Unknown
> Source)
>       at edu.stanford.smi.protege.model.Project.loadDomainKB(Unknown
> Source)
>       at
> edu.stanford.smi.protege.model.Project.createDomainKnowledgeBase(Unknown
> Source)
>       at
>
> edu.stanford.smi.protegex.owl.jena.creator.OwlProjectFromUriCreator.create(Unknown
> Source)
>       at
> edu.stanford.smi.protegex.owl.ProtegeOWL.createJenaOWLModelFromURI(Unknown
> Source)
>       ... 1 more
>
>
> Any hints on what i'm missing here?
>
> --
> Regards,
> Rahul Parundekar
> Masters Student
> Department of Computer Science
> Viterbi School of Engineering
> University of Southern California
> Los Angeles, CA 90089, USA
> --
> View this message in context:
> http://www.nabble.com/Java-Code-Generation-of-FOAF-OWL-DL-tp21988906p21988906.html
> Sent from the Protege - OWL mailing list archive at Nabble.com.
>
> _______________________________________________
> protege-owl mailing list
> protege-owl at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/protege-owl
>
> Instructions for unsubscribing:
> http://protege.stanford.edu/doc/faq.html#01a.03
>



-- 
Regards

Dave Butler
butlerdi-at-pharm2phork-dot-org

Also on Skype as butlerdi

Get Skype here http://www.skype.com/download.html


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.stanford.edu/pipermail/protege-owl/attachments/20090213/d3555182/attachment.html>


More information about the protege-owl mailing list