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

Re: How to do this query?

From: Steve Harris <S.W.Harris@ecs.soton.ac.uk>
Date: Tue, 9 Jun 2009 15:32:30 +0100
Cc: public-sparql-dev@w3.org
Message-ID: <EMEW3|e0c5d63b7a01104342a468e6ec579f40l58FWo0aS.W.Harris|ecs.soton.ac.uk|AFC-43DE-A112-F5060ADD6557@ecs.soton.ac.uk>
To: Samuel Pedro <samuelcpspam@gmail.com>
On 9 Jun 2009, at 14:10, Samuel Pedro wrote:

> Hi,
>
> i'm a newbie in sparql and trying to do same queries, but i'm not  
> getting the results that i won't. I have a owl file and i'm trying  
> to create a query that returns a determinated class, in sql i would  
> do "select * from X where meat=pig" how do i do this in sparql??

Something like:

PREFIX food: <http://example.com/food#>
SELECT *
WHERE {
   ?x food:meat food:pig .
}

> Do you know any tutorial that can help me give the firsts steps?

http://jena.sourceforge.net/ARQ/Tutorial/ i pretty good.

- Steve
Received on Tuesday, 9 June 2009 14:33:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 9 June 2009 14:33:35 GMT