|
From: Richard C. <ri...@cy...> - 2006-02-16 01:04:48
|
Hi Charles,
What you're doing looks fine to me. There could be a bug somewhere in
RAP. Can you please give an exact, minimal example that produces the
error? Are you using a DB model directly, or is it wrapped in an
OntModel or InfModel? I'm puzzled because line 524 is in
findFirstMatchingStatement(...), not in find(...). Also, which PHP
version are you using?
Richard
On 16 Feb 2006, at 01:15, Charles Nepote wrote:
> $res_model = $this->dbModel->find(NULL, NULL, new Resource("http://
> www.w3.org/1999/02/22-rdf-syntax-ns#type"));
>
> => is OK.
>
>
> $res_model = $this->dbModel->find(new Resource("http://www.w3.org/
> 1999/02/22-rdf-syntax-ns#type"), NULL, NULL);
>
> => give : Fatal error: RDFAPI error (class: DbModel; method: find):
> Parameters must be subclasses of Node or NULL in /var/www/wikisem/
> rdfapi-php093/api/model/DbModel.php on line 524
>
> I can't understand where is the problem...
> Do I misunderstand the "find" method ?
>
> Charles Nepote
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through
> log files
> for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD
> SPLUNK!
> http://sel.as-us.falkag.net/sel?
> cmd=lnk&kid=103432&bid=230486&dat=121642
> _______________________________________________
> Rdfapi-php-interest mailing list
> Rdf...@li...
> https://lists.sourceforge.net/lists/listinfo/rdfapi-php-interest
>
|