- From: reza ramezani <r.ramezani@ec.iut.ac.ir>
- Date: Wed, 01 Aug 2012 11:07:36 +0430 (IRDT)
- To: public-sparql-dev@w3.org
Received on Wednesday, 1 August 2012 06:43:08 UTC
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 06:43:08 UTC