From: Michael M. <za...@gm...> - 2006-07-06 20:26:03
|
Hi, Im trying to implement a php-script which generates RDF-Files with data form a local database containing infromation about publications. My rdf-file should look like this: <rdf:Description rdf:about="http://swrc.ontoware.org/m1"> <rdf:type> <owl:Class rdf:about="http://swrc.ontoware.org/ontology#Publication"/> </rdf:type> <dc:creator>Me</dc:creator> <dc:title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">A multi-agent platform for a corporate semantic web.</dc:title> <dc:description rdf:datatype="http://www.w3.org/2001/XMLSchema#string">We describe the technical choices and the design of a multi-agents\nsoftware architecture to manage a corporate memory in the form\nof a corporate semantic web. We then present our approach to\ntackle a distributed memory and distributed queries.</dc:description> </rdf:Description> but when I try to add the rdf:type-tag to my model, I get the following error message: Fatal error: Call to undefined method Literal::getURI() in /var/www/rdfapi-php/api/util/RdfUtil.php on line 63 My php-code looks like this: $publication = new Resource('http://l3s.de/publication/'.$ergebnis[$i]->dblp_key); $pub_title = DC::TITLE(); $pub_source = DC::SOURCE(); $statement0 = new Statement($publication, RDF::TYPE(), new Literal("")); $statement1 = new Statement($publication, $pub_title, new Literal ($ergebnis[$i]->title)); $statement2 = new Statement($publication, $pub_source, new Literal ($ergebnis[$i]->source)); $model->add($statement0); $model->add($statement1); $model->add($statement2); I cannot find any mistake in my code, please help me. -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer |