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

James Howison james at howison.name
Tue Mar 24 09:07:58 PDT 2009


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
>




More information about the protege-owl mailing list