Hello rumi,

thank you for your response, i tried some things but I still have the
inference context problem :(

I started again, using a new instance of virtuoso from scratch|.  I
installed ODS and tested some of the methods on the ODS REST
Interface, specially the ones that make use of sparql, I was happy
because they worked.

Then I started to add some custom methods, one of them used
exec_sparql(), is the following one:

create procedure ODS.ODS_API."univrz.test.customquery" (in pattern
varchar) __soap_http 'text/xml'
{
  declare q varchar;
  declare exit handler for sqlstate '*' {
    rollback work;
    return ods_serialize_sql_error (__SQL_STATE, __SQL_MESSAGE);
  };
  q := sprintf (
        'prefix foaf: <http://xmlns.com/foaf/0.1/> '||
        'select distinct ?a ?c where {?a foaf:depiction ?c} limit 50 ',
  sioc..get_graph(), pattern);
  exec_sparql (q);
  return '';
}
;
grant execute on ODS.ODS_API."univrz.test.customquery" to ODS_API;

(it doesnt use pattern yet).

and then when I try to execute it, (univrz.test.customquery) I get the
following error:
<failed>
  <code>-500</code>
  <message>RDF..: Inference context http://www.univrz.com:80/dataspace
does not exist</message>
</failed>


Its the same error with my other instance, my surprise began when I
looked back at the Interface methods present in
the ODS REST API, and they stopped working. (e.g.:
ODS.ODS_API."user.search"), they throw now the same -500 error as my
method.


my sys_rdf_schema shows the following:

RS_NAME            RS_URI         RS_G
VARCHAR NOT NULL   VARCHAR NOT NULL              VARCHAR
_______________________________________________________________________________

http://www.univrz.com:80/dataspace http://www.univrz.com:80/dataspace/inf NULL
virtrdf-label      virtrdf-label       NULL

Today, I dont know what's happening,

Thank you in advance,

Cristian


2009/2/9 Rumi Tsekova <rtsek...@openlinksw.com>:
> Hi Cristian,
>
>> Hello!
>>
>>  I'm developing some extensions to the ODS REST API, and i get an
>> error when i make use of the "exec_sparql (q);" procedure, present on
>> the ODS controllers. When i try to invoke it, i get the following
>> error:
>>
>> <failed>
>>  <code>-500</code>
>>  <message>RDF..: Inference context http://www.univrz.com:80/dataspace
>> does not exist</message>
>> </failed>
>
> Could you please check in the sys_rdf_schema if there is record for the
> inference in question?
>
> i.e. : select * from sys_rdf_schema;
>
> If there is no, then you should
>
> - install ods
> - execute:
>
> use sioc;
> DB.DBA.TTLP (sioct_n3 (), '', get_graph() || '/inf');
> DB.DBA.RDFS_RULE_SET (get_graph (), get_graph() || '/inf');
>
>
> Best Regards,
> Rumi
>
>>
>> My inference context is http://www.univrz.com/dataspace (i think - i'm
>> just starting to explore this world), when i make use of the other
>> methods, like DB.DBA.SPARQL_EVAL_TO_ARRAY i can see the results, but
>> i'm interested in using the ODS api (like the exec_sparql(q)
>> procedure) to keep consistency.
>>
>> Some methods from the published Rest Interface, like
>> ODS.ODS_API."instance.get.id"or ODS.ODS_API."user.get" show the same
>> problem. Maybe is a configuration issue, but i dont know yet.
>>
>> Regards,
>>
>> Cristian
>>
>>
>> ------------------------------------------------------------------------------
>> Create and Deploy Rich Internet Apps outside the browser with
>> Adobe(R)AIR(TM)
>> software. With Adobe AIR, Ajax developers can use existing skills and code
>> to
>> build responsive, highly engaging applications that combine the power of
>> local
>> resources and data with the reach of the web. Download the Adobe AIR SDK
>> and
>> Ajax docs to start building applications
>> today-http://p.sf.net/sfu/adobe-com
>> _______________________________________________
>> Virtuoso-users mailing list
>> Virtuoso-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/virtuoso-users
>
>

Reply via email to