Hi Hugh,
sorry, my fault. I didn't recognize the Virtuoso ISQL tool and used a ISQL tool which I installed myself. With the Virtuoso ISQL tool it works fine.

One follow-up question on that. How do I remove a rule graph from a rule set? Using your example I tried:

rdfs_rule_set ('http://localhost:8890/schema/property_rules1', 'http:// localhost:8890/schema/test', 1);

But the results remain the same, i.e. for your example query :

http://localhost:8890/dataspace/discussion/oWiki-test1Wiki
http://localhost:8890/dataspace/test2/weblog/test2tWeblog
http://localhost:8890/dataspace


Thanks,
- Mirko

Am 17.09.2009 um 00:16 schrieb Hugh Williams:

Hi Mirko,

I am asking what is the command line tool you are using to run the commands giving problems ? The reference to unixODBC in your error message indicates to me you are not using the Virtuoso isql tool as this does not use unixODBC. The Virtuoso isql tool will be in the "bin" directory of the virtuoso installation directory along with the virtuoso server binary. Please provide the complete command line output of the when encountering these errors, include the command being run to start whatever SQL client tool you are using.

You cannot execute these functions from the Virtuoso SPARQL endpoint as they are not SPARQL command, they must be run from the Virtuoso SQL interface, generally the isql tool provided with Virtuoso.

Best Regards
Hugh Williams
Professional Services
OpenLink Software
Web: http://www.openlinksw.com
Support: http://support.openlinksw.com
Forums: http://boards.openlinksw.com/support



On 16 Sep 2009, at 19:29, Mirko wrote:

Hi Hugh,
I ran the query via the ssh shell, is that what you mean by SQL client? I also tried it via the SPARQL webinterface (www.myhost.org: 8890/sparql).

The examples from the doc don't work either. I can't even load data with ttlp. Here is what I get:

Query string:
ttlp( [ example from http://docs.openlinksw.com/virtuoso/rdfsparqlrule.html#rdfsparqlruleexamples ] );

Result in ISQL:
[37000][unixODBC][OpenLink][Virtuoso iODBC Driver][Virtuoso Server] SQ074: Line 1: syntax error at '[' before 'ISQL'
[ISQL]ERROR: Could not SQLPrepare

Result in Webinterface:
37000 Error SP030: SPARQL compiler, line 0: End-of-line in a short single-quoted string at ''
'
SPARQL query:
ttlp ('
<http://localhost:8890/dataspace> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type > <http://rdfs.org/sioc/ns#Space>. <http://localhost:8890/dataspace/test2/weblog/test2tWeblog> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type > <http://rdfs.org/sioc/types#Weblog> . <http://localhost:8890/dataspace/discussion/oWiki-test1Wiki> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type > <http://rdfs.org/sioc/types#MessageBoard>. <http://localhost:8890/dataspace> <http://rdfs.org/sioc/ns#link > <http://localhost:8890/ods> . <http://localhost:8890/dataspace/test2/weblog/test2tWeblog> <http://rdfs.org/sioc/ns#link > <http://localhost:8890/dataspace/test2/weblog/test2tWeblog >. <http://localhost:8890/dataspace/discussion/oWiki-test1Wiki> <http://rdfs.org/sioc/ns#link > <http://localhost:8890/dataspace/discussion/oWiki-test1Wiki > .
   ', '', 'http://localhost:8890/test');

Regards,
-Mirko


Am 16.09.2009 um 19:38 schrieb Hugh Williams:

Hi Mirko,

What is this SQL client you are using that references unixODBC as I presume it is not the Virtuoso isql client ? Have you tried using the Virtuoso isql client to create the rule set as detailed in the documentation at:

        
http://docs.openlinksw.com/virtuoso/rdfsparqlrule.html#rdfsparqlruleexamples

Best Regards
Hugh Williams
Professional Services
OpenLink Software
Web: http://www.openlinksw.com
Support: http://support.openlinksw.com
Forums: http://boards.openlinksw.com/support



On 16 Sep 2009, at 17:59, Mirko wrote:

Hi,
I would like to make rule sets for inferencing. From ISQL I tried:

SQL> rdfs_rule_set ('defaultRules', 'http://arbitraryuri.org/ test/');

(where http://arbitraryuri.org/test/ is an existing local graph that
contains some statements), which results in:

[37000][unixODBC][OpenLink][Virtuoso iODBC Driver][Virtuoso Server]
SQ074: Line 1: syntax error
[ISQL]ERROR: Could not SQLPrepare

Can you give me an idea what's going wrong here?

I use
Virtuoso: 05.11.3039, Build: Jun 1 2009
ISQL: unixODBC 2.2.11

Thanks,
--Mirko



------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users


Reply via email to