Go to evoc/import and try to import dc or foaf: Fatal error: Call to undefined method MergeQuery::update() in /sites/all/modules/rdf/rdfx.terms.inc on line 136

CommentFileSizeAuthor
#5 924532_apichange.patch534 bytesscor

Comments

pcwick’s picture

I tried to import dc and foaf at evoc/import and got the same error.

[edit]

Is there a link to evoc/import in the drupal administration pages?

pcwick’s picture

I imported owl with URI http://www.w3.org/2002/07/owl/ and got a drupal message "The owl vocabulary has been imported." However, I also got these drupal error messages:
Notice: Undefined property: ARC2_RDFParser::$parser in _rdfx_parse_rdf() (line 59 of /sites/all/modules/rdf/rdfx.import.inc).
Notice: Trying to get property of non-object in _rdfx_parse_rdf() (line 59 of /sites/all/modules/rdf/rdfx.import.inc).
Warning: Invalid argument supplied for foreach() in _rdfx_parse_rdf() (line 59 of /sites/all/modules/rdf/rdfx.import.inc).

When I attempt to import the owl vocabularly again, I get the same error as above "Fatal error: Call to undefined method MergeQuery::update() in /sites/all/modules/rdf/rdfx.terms.inc on line 136" Note that this MergeQuery error appears on an all white page with only the error message. The drupal evoc/import page does not reload.

Anonymous’s picture

This is strange since I just imported foaf and used it on a D7 site on Friday.

We have a new MSc here, and she installed D7 (I assume the latest alpha). I showed her how to use Evoc by importing foaf and then used RDF UI to map terms. The foaf terms showed up in the autocomplete.

This would be an error happening in the DB abstraction layer, MergeQuery is the object returned by db_merge.

What version of Drupal are you using? Stéph, was anything changed in Evoc when you moved it over to CVS? because I was using the latest version on GitHub on Friday.

Anonymous’s picture

Thanks for the update, pcwick, it makes more sense that you can import it once but that the update fails.

scor’s picture

Title: Fatal error during vocabulary import » core API change: MergeQuery::update() does not exist anymore
StatusFileSize
new534 bytes

There was an API change in core committed a few days ago: #844186: Clarify merge queries. This patch fixes it for me on the latest head.

Anonymous’s picture

Great, thanks for checking this out.

Anonymous’s picture

Status: Active » Reviewed & tested by the community

I applied this patch to a copy working on HEAD and it worked for me as well.

scor’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

milesw’s picture

Project: Resource Description Framework (RDF) » RDF Extensions
Component: D7. Evoc » Code