Hi all,

I was wondering whats happening..

the following query returns only yago (root classes) when executed with the
browser (firefox)..
but when running the query with the jena sparql service... it also returns
opencyc concepts and some others (including "classes" that apparently doesnt
have subclasses)..

CONSTRUCT {
?y <http://www.w3.org/2000/01/rdf-schema#label> ?label
} WHERE {
?sub  <http://www.w3.org/2000/01/rdf-schema#subClassOf> ?y  .
?y <http://www.w3.org/2000/01/rdf-schema#label> ?label .
OPTIONAL {?y <http://www.w3.org/2000/01/rdf-schema#subClassOf> ?super} .
filter(!bound(?super))}

by the way.. if I also Include in the construct clause the subclasses of
?y.. ?sub  <http://www.w3.org/2000/01/rdf-schema#subClassOf> ?y
then jena cant parse the resulting xml... invalid chars..

CONSTRUCT {
?y <http://www.w3.org/2000/01/rdf-schema#label> ?label .
?sub  <http://www.w3.org/2000/01/rdf-schema#subClassOf> ?y
} WHERE {
?sub  <http://www.w3.org/2000/01/rdf-schema#subClassOf> ?y  .
?y <http://www.w3.org/2000/01/rdf-schema#label> ?label .
OPTIONAL {?y <http://www.w3.org/2000/01/rdf-schema#subClassOf> ?super} .
filter(!bound(?super))}

thanks for attention...
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
Dbpedia-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to