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/');
[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
-------------------------------------------------------------------------
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