Hi Jiusheng,
The example works for me, having loading the data in the first
example:
$ /usr/local/virtuoso-opensource/bin/isql 1112
Connected to OpenLink Virtuoso
Driver: 05.00.3033 OpenLink Virtuoso ODBC Driver
OpenLink Interactive SQL (Virtuoso), version 0.9849b.
Type HELP; for help and EXIT; to exit.
SQL> sparql define input:inference 'http://localhost:8890/schema/
property_rules1' select ?s from <http://localhost:8890/test> where
{?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://
rdfs.org/sioc/ns#Space> };
s
VARCHAR
______________________________________________________________________
_________
http://localhost:8890/dataspace/discussion/oWiki-test1Wiki
http://localhost:8890/dataspace/test2/weblog/test2tWeblog
http://localhost:8890/dataspace
3 Rows. -- 4 msec.
Note my test database was an empty database without the DBpedia
datasets loaded and default configuration file. Can you try this
using an empty database and default database yourself (although I
can't see why having dbpedia load should affect things). Also have
you tried running the DBpedia specific example provided in that
documentation section ?
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 12 Sep 2008, at 13:53, jiusheng chen wrote:
Hi Hugh,
sorry for the wrong graph name used previously, but seems still
not work even with the right one.
SQL> [EMAIL PROTECTED]:/disk1/sda/jchen/Structured$ cat TT
sparql define input:inference 'http://localhost:8890/schema/
property_rules1' select ?s from <http://localhost:8890/schema/
test> where {?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://rdfs.org/sioc/ns#Space> };
[EMAIL PROTECTED]:/disk1/sda/jchen/Structured$ cat TT | isql 1111
Connected to OpenLink Virtuoso
Driver: 05.08.3034 OpenLink Virtuoso ODBC Driver
OpenLink Interactive SQL (Virtuoso), version 0.9849b.
Type HELP; for help and EXIT; to exit.
SQL> s
VARCHAR
_____________________________________________________________________
__________
0 Rows. -- 13 msec.
On Fri, Sep 12, 2008 at 8:46 PM, jiusheng chen
<[EMAIL PROTECTED]> wrote:
Hi Hugh,
Still not work, and the situation is different now: no result and
no error.
[EMAIL PROTECTED]:/disk1/sda/jchen/Structured$ cat T
ttlp (' @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
<http://rdfs.org/sioc/ns#Space> rdfs:subClassOf <http://
www.w3.org/2000/01/rdf-schema#Resource> .
<http://rdfs.org/sioc/ns#Container> rdfs:subClassOf <http://
rdfs.org/sioc/ns#Space> .
<http://rdfs.org/sioc/ns#Forum> rdfs:subClassOf <http://rdfs.org/
sioc/ns#Container> .
<http://rdfs.org/sioc/types#Weblog> rdfs:subClassOf <http://
rdfs.org/sioc/ns#Forum> .
<http://rdfs.org/sioc/types#MessageBoard> rdfs:subClassOf
<http://rdfs.org/sioc/ns#Forum> .
<http://rdfs.org/sioc/ns#link> rdfs:subPropertyOf <http://
rdfs.org/sioc/ns> .
', '', 'http://localhost:8890/schema/test');
rdfs_rule_set ('http://localhost:8890/schema/property_rules1',
'http://localhost:8890/schema/test');
[EMAIL PROTECTED]:/disk1/sda/jchen/Structured$ cat TT
sparql define input:inference 'http://localhost:8890/schema/
property_rules1' select ?s from <http://localhost:8890/test> where
{?s <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://
rdfs.org/sioc/ns#Space> };
[EMAIL PROTECTED]:/disk1/sda/jchen/Structured$ cat T | isql 1111
Connected to OpenLink Virtuoso
Driver: 05.08.3034 OpenLink Virtuoso ODBC Driver
OpenLink Interactive SQL (Virtuoso), version 0.9849b.
Type HELP; for help and EXIT; to exit.
SQL> SQL> Type the rest of statement, end with a semicolon (;)>
Type the rest of statement, end with a semicolon (;)> Type the
rest of statement, end with a semicolon (;)> Type the rest of
statement, end with a semicolon (;)> Type the rest of statement,
end with a semicolon (;)> Type the rest of statement, end with a
semicolon (;)> Type the rest of statement, end with a semicolon (;)>
Done. -- 177 msec.
SQL> SQL>
Done. -- 32 msec.
SQL> [EMAIL PROTECTED]:/disk1/sda/jchen/Structured$ cat TT | isql 1111
Connected to OpenLink Virtuoso
Driver: 05.08.3034 OpenLink Virtuoso ODBC Driver
OpenLink Interactive SQL (Virtuoso), version 0.9849b.
Type HELP; for help and EXIT; to exit.
SQL> s
VARCHAR
_____________________________________________________________________
__________
0 Rows. -- 1 msec.
[EMAIL PROTECTED]:/disk1/sda/jchen/Structured$ cat TTT
sparql select * from <http://localhost:8890/schema/test> where {?
s ?p ?o};
[EMAIL PROTECTED]:/disk1/sda/jchen/Structured$ cat TTT | isql 1111
Connected to OpenLink Virtuoso
Driver: 05.08.3034 OpenLink Virtuoso ODBC Driver
OpenLink Interactive SQL (Virtuoso), version 0.9849b.
Type HELP; for help and EXIT; to exit.
SQL>
s
p
o
VARCHAR
VARCHAR
VARCHAR
_____________________________________________________________________
__________
http://rdfs.org/sioc/
ns#Container
http://www.w3.org/2000/01/rdf-
schema#subClassOf http://
rdfs.org/sioc/ns#Space
http://rdfs.org/sioc/
ns#Space
http://www.w3.org/2000/01/rdf-
schema#subClassOf http://
www.w3.org/2000/01/rdf-schema#Resource
http://rdfs.org/sioc/
ns#Forum
http://www.w3.org/2000/01/rdf-
schema#subClassOf http://
rdfs.org/sioc/ns#Container
http://rdfs.org/sioc/
types#Weblog
http://www.w3.org/2000/01/rdf-
schema#subClassOf http://
rdfs.org/sioc/ns#Forum
http://rdfs.org/sioc/
types#MessageBoard
http://www.w3.org/2000/01/rdf-
schema#subClassOf http://
rdfs.org/sioc/ns#Forum
http://rdfs.org/sioc/
ns#link
http://www.w3.org/2000/01/rdf-
schema#subPropertyOf http://
rdfs.org/sioc/ns
6 Rows. -- 22 msec.
On Fri, Sep 12, 2008 at 7:18 PM, Hugh Williams
<[EMAIL PROTECTED]> wrote:
Hi Juisheng
The documentation URL (http://docs.openlinksw.com/virtuoso/
rdfsparqlrule.html#rdfsparqlruleintro) I sent you yesterday
includes and example on setting up inferencing for DBpedia as has
been done on the live instance we host, have you tried using the
example against your local instance ? There doesn't appear be any
specific configuration file parameters required for controlling
inferencing support.
Best Regards
Hugh Williams
Professional Services
OpenLink Software
Web: http://www.openlinksw.com
Support: http://support.openlinksw.com
Forums: http://boards.openlinksw.com/support
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Dbpedia-discussion mailing list
Dbpedia-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion