From: Richard C. <ri...@cy...> - 2006-05-29 12:40:21
|
Hi AJ, can you please post the complete RDF file (or make it available online and send a link)? Have you checked it against the RDF validator [1]? Which PHP version are you using? The snippet looks fine and RAP shouldn't have trouble with it. Cheers, Richard [1] http://www.w3.org/RDF/Validator/ On 29 May 2006, at 05:45, AJ Chen wrote: > Hi, I'm new to RAP, trying to use RAP to load a DOAP file. But, > there is a fatal error: > > PHP Fatal error: RDFAPI error (class: parser; method: > generateModel): XML-parser-error 201 in Line 13 of input document. > > line 13 is <doap:shortdesc> in the following rdf section: > <doap:Project> > <doap:name>Redland RDF Application Framework</doap:name> > <doap:homepage rdf:resource="http:// > www.redland.opensource.ac.uk/" /> > <doap:created>2000-06-21</doap:created> > <doap:shortdesc> > A library for the Resource Description Framework (RDF) > allowing > it parsed from XML, stored, queried and > manipulated. > </doap:shortdesc> > .... > > my code to load ontology is: > > $ontModel = ModelFactory::getOntModel(MEMMODEL,RDFS_VOCABULARY); > $ontModel->load("doap_redland.rdf"); > > Any suggestion for loading DOAP file? I assume RAP knows how to > load instance of any class like doap:Project. If this is not true, > then how to have RAP to work with a custom ontology? > > Thanks, > AJ |