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>


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.

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.
Received on Tuesday, 12 June 2007 17:53:36 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:52:08 UTC