W3C home > Mailing lists > Public > public-rdf-dawg-comments@w3.org > June 2007

how to get the properties of a class?

From: Szekely Zolta <zoltagroup@yahoo.com>
Date: Tue, 12 Jun 2007 10:12:43 -0700 (PDT)
To: public-rdf-dawg-comments@w3.org
Message-ID: <230340.58860.qm@web53205.mail.re2.yahoo.com>

Hi!

Am am new to RDF. I created an ontology in Protege and I have to use it.

We are working on a web interface in .NET with SPARQL.

I wonder how one can get the list of the properteie (own and inherited) of a class?

I have written something like this: SELECT DISTINCT ?a WHERE {?a rdf:type owl:DatatypeProperty. ?x owl:Class :MyClass}

It does not return anything. I also tried to use filters with regex, but that did not work either.

Thanks,
 
Székely-Sipos Sándor Zolta




       
____________________________________________________________________________________
Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
http://get.games..yahoo.com/proddesc?gamekey=monopolyherenow  
Received on Tuesday, 12 June 2007 17:53:36 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:51 GMT