[Pellet-users] Pellet bugs?
David Legg
david.legg at searchevent.co.uk
Thu May 8 22:03:06 UTC 2008
Hi Margaret,
> But I figured it out, you guys were right, it was something wrong I
had done in the ontology.
> Specifically, I'd said something to the effect of "(class) Red has
(property) red", which I guess is not something you can say in OWL, and
was causing the weird error.
> I wanted a way to make every individual in the Red class
automatically have the property 'red', but I can't figure out how to do
that other than explicitly defining it by hand for each wine individual.
>
This puzzled me a while back and then Brandon Ibach on this list set me
straight.
If you look in the Owl Guide [1] in the Ontology Mapping section it
explains how you can state the necessary and sufficient definition of
the class of 'TexasThings' as being those things which are 'locatedIn'
the TexasRegion. You could do something similar for your 'Red' class: -
<owl:Class rdf:about="#RedThings">
<rdfs:equivalentClass>
<owl:Restriction>
<owl:onProperty rdf:resource="#hasColour" />
<owl:hasValue rdf:datatype="&xsd;string">red</owl:hasValue>
</owl:Restriction>
</rdfs:subClassOf>
</owl:Class>
Hope that helps,
David Legg
[1] http://www.w3.org/TR/2004/REC-owl-guide-20040210/#OntologyMapping
More information about the Pellet-users
mailing list