Hi
I am using sparql dev and sparql-views dev. I am getting this error when I try to to add a view resource.
Notice: Undefined property: stdClass::$uri in sparql_views_resource_type_form() (line 58 of C:\wamp\www\sitename\sites\all\modules\sparql_views\sparql_views.admin.inc).
I am guessing from previous threads that this has something to do with there not being on endpoint chosen. But I have put an endpoint for dbpedia as http://dbpedia.org/sparql
But when I attempt to add an endpoint to the resource types it does not save. So I am guessing that I am getting this error because the resource does not allow me to save the endpoint in the resource types.
This is a new install and on previous installs of sparql and sparql views they worked ok. Has anyone encountered this problem or is it just me.
Thanks
Jimmel
Comments
Comment #1
Anonymous (not verified) commentedDid you visit http://yoursite.com/update.php?
Comment #2
Jimmel commentedYes I have tried that. It just gives me "no pending updates".
Comment #3
Jimmel commentedI will just add some more info.
I have reinstalled the site a number of time and it is still the same. I am running it on wamp locally.
Status reports are fine so arc in installed ok. I have imported an external vocob dbp from namespace http://dbpedia.org/property/
The modules I am running are:
Chaos tool suite (ctools) 7.x-1.0-beta1
Entity API 7.x-1.0-beta10
module_filter 7.x-1.4
RDF Extensions 7.x-2.0-alpha2
rules 7.x-2.0-beta1
sparql 7.x-2.x-dev (2011-Aug-02)
sparql_views 7.x-2.x-dev (2011-Aug-04)
Views 7.x-3.0-rc1
I have gone back to older versions of entity but this just breaks the site.
Comment #4
Anonymous (not verified) commentedThis really looks like it's an issue between incompatible versions... we changed a variable from $endpoint to $uri and I had to sync SPARQL Views with SPARQL for that. The module versions you've listed should be alright, though.
Could you try completely removing both SPARQL Views and SPARQL modules and re-downloading the latest dev versions? I don't know what could possibly be happening, but I feel like it must be something with the files not updating.
Comment #5
Jimmel commentedReinstalled the site (just to be sure) with the new dev versions. it is working fine now. I must have had different versions of modules installed that had different variables. Thanks for that.
Been a while since I looked at the modules. I see the sparql registry has an advanced section now. What are key and value and how do these work.
Comment #6
Anonymous (not verified) commentedYou're welcome.
Those are for working with certain endpoints... for example, if you go to http://beta.kasabi.com/ you can find some datasets. But you need an API key to access the datasets. So what you do is put 'apikey' in the key field and your key (something like 'c152af842cc5d5....') into the value field.
You won't see what it does, but it will result in a request to the endpoint that looks like:
http://api.kasabi.com/dataset/cia-world-fact-book/apis/sparql?apikey=c15......
Comment #7
Jimmel commentedVery good. Nice to see some extra features.