Hi Hugh,

Yes, I have graph
'http://10.120.8.181/dbpedia/sparql/'<http://10.120.8.181/dbpedia/sparql/%27>in
local.

[EMAIL PROTECTED]:~$ 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> sparql select count(*) from <http://10.120.8.181/dbpedia/sparql/> { ?s
?p ?o};
callret-0
INTEGER
_______________________________________________________________________________

9124904

1 Rows. -- 61578 msec.


Weird problem.


On Thu, Sep 11, 2008 at 5:47 PM, Hugh Williams <[EMAIL PROTECTED]>wrote:

> Hi juisheng,
> I presume you are trying to build on the inferencing example in  our online
> documentation at:
>
> http://docs.openlinksw.com/virtuoso/rdfsparqlrule.html#rdfsparqlruleintro
>
> which works for me and presumably works for you also ?
>
> Does the graph and triple set for the graph rule used in your
> rdfs_rule_set() call exist ie   
> http://10.120.8.181/dbpedia/sparql/'<http://10.120.8.181/dbpedia/sparql/%27>
> as the error implies it doesn't which I also get not having such a graph in
> my local instance, but if i then create an arbitrary graph of that name with
> the ttlp() function (using the data in the documentation example for
> instance) and run you query then it does run successfully even though it
> obviously returns an empty result set  as I don't have any dbpedia data in
> my test server, but proves my point:
>
> $ cat chen
> sparql define input:inference '
> http://10.120.8.181/dbpedia/sparql/inference'<http://10.120.8.181/dbpedia/sparql/inference%27>
>
> PREFIX owl: <http://www.w3.org/2002/07/owl#>
> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
> PREFIX foaf: <http://xmlns.com/foaf/0.1/>
> PREFIX dc: <http://purl.org/dc/elements/1.1/>
> PREFIX : <http://dbpedia.org/resource/>
> PREFIX dbpedia2: <http://dbpedia.org/property/>
> PREFIX dbpedia: <http://dbpedia.org/>
> PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
>
> SELECT count(*)
> from <http://10.120.8.181/dbpedia/sparql/>
> WHERE {
>         ?x rdf:type <http://dbpedia.org/class/yago/Conflict100958896> .
> };
>
> $ cat chen | ../../../../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> 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
> (;)> 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
> (;)> 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 (;)> callret-0
> INTEGER
>
> _______________________________________________________________________________
>
> 0
>
> 1 Rows. -- 2 msec.
> SQL>
>
> Thus please confirm the graph being used in the rule set does exist and is
> accessible ...
>
> 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 11 Sep 2008, at 02:48, jiusheng chen wrote:
>
> Hi Hugh,
>
> Always got 'inference context does not exist' error, could you please take
> a look? Here shows my operations:
>
> [EMAIL PROTECTED]:/disk1/sda/jchen/Structured$ cat scripts/inference
> rdfs_rule_set('http://10.120.8.181/dbpedia/sparql/inference', '
> http://10.120.8.181/dbpedia/sparql/'<http://10.120.8.181/dbpedia/sparql/%27>
> );
> [EMAIL PROTECTED]:/disk1/sda/jchen/Structured$ cat scripts/conflict.sparql
>
> sparql define input:inference '
> http://10.120.8.181/dbpedia/sparql/inference'
>
> PREFIX owl: <http://www.w3.org/2002/07/owl#>
> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
> PREFIX foaf: <http://xmlns.com/foaf/0.1/>
> PREFIX dc: <http://purl.org/dc/elements/1.1/>
> PREFIX : <http://dbpedia.org/resource/>
> PREFIX dbpedia2: <http://dbpedia.org/property/>
> PREFIX dbpedia: <http://dbpedia.org/>
> PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
>
> SELECT count(*)
> from <http://10.120.8.181/dbpedia/sparql/>
> WHERE {
>         ?x rdf:type <http://dbpedia.org/class/yago/Conflict100958896> .
> };
> [EMAIL PROTECTED]:/disk1/sda/jchen/Structured$ cat scripts/inference | 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>
> Done. -- 0 msec.
> SQL> [EMAIL PROTECTED]:/disk1/sda/jchen/Structured$ cat
> scripts/conflict.sparql | 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 (;)> 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 (;)> 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 (;)>
> *** Error 42000: [Virtuoso Driver][Virtuoso Server]RDF..: Inference context
> http://10.120.8.181/dbpedia/sparql/inference does not exist
> in lines 2-19 of Top-Level:
> #line 2 "(console)"
> sparql define input:inference '
> http://10.120.8.181/dbpedia/sparql/inference'
>
> PREFIX owl: <http://www.w3.org/2002/07/owl#>
> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
> PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
> PREFIX foaf: <http://xmlns.com/foaf/0.1/>
> PREFIX dc: <http://purl.org/dc/elements/1.1/>
> PREFIX : <http://dbpedia.org/resource/>
> PREFIX dbpedia2: <http://dbpedia.org/property/>
> PREFIX dbpedia: <http://dbpedia.org/>
> PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
>
> SELECT count(*)
> from <http://10.120.8.181/dbpedia/sparql/>
> WHERE {
>         ?x rdf:type <http://dbpedia.org/class/yago/Conflict100958896> .
> }
>
>
> --
> Thanks,
> Chen Jiusheng
>
>
>


-- 
Thanks,
Chen Jiusheng
-------------------------------------------------------------------------
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

Reply via email to