Re: Reza Request

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 07:47:12 UTC