Search Mailing List Archives


Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[protege-owl] retreiving Individuals using SPARQL

babar shahzad babarathotmail at yahoo.com
Thu Mar 26 03:25:56 PDT 2009


Hi J;

I tried your query & results are awesome. It fetches everything it finds in ontology, does not have any effect on result set whether I make Male, Female, OR Human as object.
Screen shot is attached.


 
Babar Shahzad Chaudary, 
+358408532112         
Deptt of Information Processing
Science,
University of Oulu, Finland.



----- Original Message ----
From: James Howison <james at howison.name>
To: User support for the Protege-OWL editor <protege-owl at lists.stanford.edu>
Sent: Tuesday, March 24, 2009 6:07:58 PM
Subject: Re: [protege-owl] retreiving Individuals using SPARQL


PREFIX : <http://your.name.space/here#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?product
WHERE {
   ?product rdf:type :Product
}

Remember that you are pattern matching with SPARQL, so you search for  
triple patterns that match what you want.  Here something  
is_a :Product if it is the subject of an rdf:type statement  
with :Product as the object.

Andrew's queries are about getting all individuals of all classes.

--J

On 24 Mar 2009, at 10:35 AM, babar shahzad wrote:

>
>
> Hi all,
>
> Is it possible using SPARQL to query Individuals ???
> If so, can someone kindly provide a simple example!
>
> Suppose there is a concept 'Product' & it has some individuals as  
> members.
>
>
>
>
> Babar Shahzad Chaudary,
> +358408532112
> Deptt of Information Processing
> Science,
> University of Oulu, Finland.
>
>
>
>
> _______________________________________________
> protege-owl mailing list
> protege-owl at lists.stanford.edu
> https://mailman.stanford.edu/mailman/listinfo/protege-owl
>
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
>

_______________________________________________
protege-owl mailing list
protege-owl at lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/protege-owl

Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03 



      
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Male-Individual.JPG
Type: image/jpeg
Size: 176568 bytes
Desc: not available
URL: <http://mailman.stanford.edu/pipermail/protege-owl/attachments/20090326/f0bab4b3/attachment.JPG>


More information about the protege-owl mailing list