On 10/17/10 3:23 PM, Mauricio Chicalski wrote:
ok the extra results are because the graph uri... =]
but what can explain the opencyc concepts in the results if they doesnt have any subclass? something wrong with the query?

On Sun, Oct 17, 2010 at 4:28 PM, Mauricio Chicalski <[email protected] <mailto:[email protected]>> wrote:

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



If you don't scope your query a specific Named Graph using the Graph IRI: <http://dbpedia.org>, your queries will be scoped to the entire Virtuoso Quad Store (which hosts a number of Named Graphs per instance). We have a number of ontologies loaded into the Virtuoso instance that host the public DBpedia SPARQL endpoint. This enables people to perform sophisticated reasoning over DBpedia using a broad collection of ontologies that include: OpenCyc, Yago, UMBEL, SUMO, FAO etc...

Kingsley





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


--

Regards,

Kingsley Idehen 
President&  CEO
OpenLink Software
Web: http://www.openlinksw.com
Weblog: http://www.openlinksw.com/blog/~kidehen
Twitter/Identi.ca: kidehen





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