Search Mailing List Archives
[protege-owl] retreiving Individuals using SPARQL
babarathotmail at yahoo.com
Thu Mar 26 03:25:56 PDT 2009
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,
Deptt of Information Processing
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
?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.
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
> Babar Shahzad Chaudary,
> Deptt of Information Processing
> University of Oulu, Finland.
> protege-owl mailing list
> protege-owl at lists.stanford.edu
> Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
protege-owl mailing list
protege-owl at lists.stanford.edu
Instructions for unsubscribing: http://protege.stanford.edu/doc/faq.html#01a.03
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 176568 bytes
Desc: not available
More information about the protege-owl