Search Mailing List Archives
[protege-owl] retreiving Individuals using SPARQL
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
?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
More information about the protege-owl