[protege-owl] Listing properties

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[protege-owl] Listing properties

Leonardo Ayres-2
Hi,

How can i list all properties of a one class?
For example, i have a ontology like this:

<owl:Class rdf:ID="HardDisk">
   <rdfs:subClassOf>
<owl:Class rdf:ID="Component"/>
</rdfs:subClassOf>
</owl:Class>
<owl:DatatypeProperty rdf:ID="model">
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#FunctionalProperty "/>
<rdfs:domain rdf:resource="#Component"/>
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#string"/>
</owl:DatatypeProperty>
<owl:FunctionalProperty rdf:ID="price">
<rdfs:range rdf:resource="http://www.w3.org/2001/XMLSchema#float"/>
<rdfs:domain rdf:resource="#Component"/>
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#DatatypeProperty"/>
</owl:FunctionalProperty>

thats means: HardDisk is a Component that has two properties: price and model.
How can i do that ?