Re: How to do this query?

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 UTC