Dear all,

I did the following query to the dbpedia through www.dbpedia.org/sparql

PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#> 
                PREFIX p: <http://dbpedia.org/property/> 
                SELECT ?player ?club  
                WHERE{
                        ?player p:cityofbirth
<http://dbpedia.org/resource/Stryn>. 

                        OPTIONAL {?player p:currentclub  ?club}}

In it I get the following results:
player          club
http://dbpedia.org/resource/Jarle_Flo   
http://dbpedia.org/resource/H%C3%A5vard_Flo
http://dbpedia.org/resource/Retired
http://dbpedia.org/resource/Tore_Andr%C3%A9_Flo
http://dbpedia.org/resource/Milton_Keynes_Dons_F.C.
http://dbpedia.org/resource/Jostein_Flo         Strømsgodset (director of
football)
http://dbpedia.org/resource/Per_Egil_Flo
http://dbpedia.org/resource/Sogndal_Fotball

Next I do the following query (in which I query for all the players who
belong to a club):

SELECT  ?player ?club
WHERE 
  { ?player  <http://dbpedia.org/property/currentclub>  ?club .}

And I get results but I do not get the following results:
http://dbpedia.org/resource/Tore_Andr%C3%A9_Flo
http://dbpedia.org/resource/Milton_Keynes_Dons_F.C.
http://dbpedia.org/resource/Per_Egil_Flo
http://dbpedia.org/resource/Sogndal_Fotball
http://dbpedia.org/resource/H%C3%A5vard_Flo
http://dbpedia.org/resource/Retired

The purpose of these queries is to do locally the join operator but I get
different results from the basic queries so I do not get the proper results.

Any idea? I do not know what I'm missing :S

Thanks, 

Carlos


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Dbpedia-discussion mailing list
Dbpedia-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dbpedia-discussion

Reply via email to