W3C home > Mailing lists > Public > public-sparql-dev@w3.org > April to June 2012

Re: Help SPARQL

From: Bob DuCharme <bob@snee.com>
Date: Thu, 26 Apr 2012 15:16:53 -0400
Message-ID: <4F999F25.3060408@snee.com>
To: reza ramezani <r.ramezani@ec.iut.ac.ir>
CC: kjetil@kjernsmo.net, public-sparql-dev@w3.org
# assuming that the right namespaces are declared properly
SELECT ?s ?p ?o WHERE {
   ?s sameAs ?o .
   ?s ?p ?o .
}

Bob

On 4/22/2012 2:02 AM, reza ramezani wrote:
> **Dear SPARQL Developers
> I need to a SPARQL comment that with it I extract Subjects along with 
> their Predicates and Objects which the Subject at least
> have one sameAs Predicate.
> for example suppose I have below triples:
>
> A   knows   X1
> A   friendof   X2
> A   sameAs   X3
> B   knows   X4
> B   familarBy   X5
>
> I need to a SPARQL comment that extract bellow triples, because A has 
> sameAs predicate
> A   knows   X1
> A   friendof   X2
> A   sameAs   X3
>
> How can I write such SPARQL
> Best Wishes
> Reza
Received on Thursday, 26 April 2012 19:17:16 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 19:17:17 GMT