Hi Ward,
I have tested this in-house and the base keyword does return the same/
correct results for me:
SQL> sparql base <http://oplusopteron.usnet.private:8890/oracle_hr/>
select count(*) from <> where {?s ?p ?o} ;
callret-0
INTEGER
________________________________________________________________________
_______
1545
1 Rows. -- 542 msec.
SQL> sparql select count(*) from <http://oplusopteron.usnet.private:
8890/oracle_hr/> where {?s ?p ?o} ;
callret-0
INTEGER
________________________________________________________________________
_______
1545
1 Rows. -- 474 msec.
SQL>
Can you confirm the version of Virtuoso being used and also if this
instance is accessible such that we can see the problem first hand ?
My version is 05.00.3028
Can you also provide the output of running the explain function as
detailed at:
http://docs.openlinksw.com/virtuoso/fn_explain.html
Note you will need to run this function from the Virtuoso isql or
Conductor interactive SQL interface, remembering to add the 'sparql'
prefix before your SPARQL queries such that they are directed to the
SPARQL engine .
Best Regards
Hugh Williams
Professional Services
OpenLink Software
On 24 Jun 2008, at 16:34, Ward Blondé wrote:
Dear Virtuoso users,
I was wondering whether the keyword 'base' to make prefixes shorter is
working in Virtuoso. It didn't give my a compile error when I use it,
but it doesn't give any answers to my query either.
I used it like this:
base <http://www.mydomain.org/ontology/rdf/>
prefix rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix rdfs:<http://www.w3.org/2000/01/rdf-schema#>
prefix obo:<OBO#>
select ?name ?id
from <http://www.mydomain.org/ontology/rdf/OBO>
where {
?id obo:is_a obo:CCO_U0000000.
?id rdfs:label ?name.
}
instead of this:
prefix rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix rdfs:<http://www.w3.org/2000/01/rdf-schema#>
prefix obo:<http://www.mydomain.org/ontology/rdf/OBO#>
select ?name ?id
from <http://www.mydomain.org/ontology/rdf/OBO>
where {
?id obo:is_a obo:CCO_U0000000.
?id rdfs:label ?name.
}
thanks,
Ward
--
==================================================================
Ward Blondé wa...@psb.ugent.be
PhD student
Tel:+32 (0)9 331 38 24 fax:+32 (0)9 3313809
VIB Department of Plant Systems Biology, Ghent University
Technologiepark 927, 9052 Gent, BELGIUM
http://www.psb.ugent.be/cbd/people_ward_blonde.php
==================================================================
----------------------------------------------------------------------
---
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users