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
==================================================================

Reply via email to