[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

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

<owl:Class rdf:ID="HardDisk">
<owl:Class rdf:ID="Component"/>
<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: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"/>

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