-----Original Message-----
From: higgins-dev-bounces@xxxxxxxxxxx
[mailto:higgins-dev-bounces@xxxxxxxxxxx] On
Behalf Of Jim Sermersheim
Sent: Tuesday, August 15, 2006
6:41 PM
To: 'Higgins (Trust Framework)
Project developer discussions'
Subject: [higgins-dev]
ExampleContextOntology
1) You defined hasPostalAddress, said it's in the
domain of Person, but I don't see a cardinality rule on Person which
restricts it to 1.
# Oops. This
is now fixed in jim2.owl –(see above wiki page’s attachment)
# BTW I
also switched to using owl:Ontology tag at the top while I was fixing the above
bug.
2) Assuming you meant to allow hasPostalAddress to
have unlimited cardinality on Person, and assuming there were multiple
addresses for the jim-sermersheim person, would we see multiple <jim:hasPostalAddress>
elements, or multiple <rdf:Description ...> sub-elements?
# You’d
see multiple hasPostalAddress properties, the value of each would be a separate
PostalAddress instance. In the current example there is only one instance and
it is named “urn:jims-address”.
3) Instead of defining PostalAddress as a class,
could you have also defined it as a DatatypeProperty and said it's range was
postalAddressType (given the definition below)?
<xsd:complexType
name="postalAddressType">
<xsd:sequence>
<xsd:element name="streetAddress"
type="xsd:string" />
<xsd:element name="city"
type="xsd:string" />
<xsd:element name="state"
type="xsd:string" />
<xsd:element name="postalCode"
type="xsd:integer" minOccurs="0" />
<xsd:element name="country"
type="xsd:string" minOccurs="0" />
</xsd:sequence>
</xsd:complexType>
in which case (after making the other associations),
the RDF would (I assume)look more like this:
<rdf:Description
rdf:about="urn:jim-sermersheim">
<jim:firstname>Jim</jim:firstname>
<jim:surname>Sermersheim</jim:surname>
<jim:postalAddress>
<jim:city>Provo</jim:city>
<jim:postalCode>84605</jim:postalCode>
<jim:state>Utah</jim:state>
<jim:streetAddress>123
main street</jim:streetAddress>
</jim:hasPostalAddress>
<rdf:type>
<rdf :Description
rdf:about="&jim;Person"/>
</rdf:type>
</rdf:Description>
# I see
what you’re after, but OWL Datatype Properties can only be simple XMLS datatypes
or strings.
(I know this is all just RDF/OWL in nature, rather
than Higgins specific, just figured you'd be able to answer faster than I can
research)