- From: Leonard Jacuzzo <jacuzzo@gmail.com>
- Date: Wed, 1 Aug 2012 11:20:43 -0400
- To: public-sparql-dev@w3.org
- Message-ID: <CAPxg9HjuqqKwdFkFRBCYiEETJusbZVzUsrjcMp2z_Kf=0E+FrQ@mail.gmail.com>
Hi Reza, An easy way to answer these fairly basic questions is to read the book linked here. http://www.amazon.com/Learning-SPARQL-Bob-DuCharme/dp/1449306594 Best, Leonard On Wed, Aug 1, 2012 at 3:46 AM, Olaf Hartig <hartig@informatik.hu-berlin.de>wrote: > Hello Reza, > > Another attempt to make us do your homework exercises? > > A few days ago Gary King already gave you the correct answer on this list. > > Best, > Olaf > > > On Wednesday 01 August 2012 11:07:36 reza ramezani wrote: > > Dear SPARQL Fans > > Hi > > I need a sparql query which returns all entities that at least one of > their > > triples has rdf:type predicate and Country as object . for example > suppose > > we have these triples: > > > > A Age 10 > > A Place Qom > > A rdf:type Country > > > > B Age 20 > > B Surface 100 > > B Place Mashhad > > > > C Age 40 > > C CoastLine 2000 > > C rdf:type City > > > > D Age 60 > > D Near Wrtyu > > D rdf: type Country > > > > This query must return below triples: > > A Age 10 > > A Place Qom > > A rdf:type Country > > D Age 60 > > D Near Wrtyu > > D rdf:type Country > > > > the query returns all triples related to A and D entities. Because one of > > their triples has rdf:type country as predicate and object. how can I > write > > this SPARQL? > >
Received on Wednesday, 1 August 2012 15:21:14 UTC