Person.het revision 4b7c9b9fec53befb553f2c9b11e30a4fe2235e03
logic OWL
spec person =
Datatype: height
EquivalentTo: float [totalDigits 3, fractionDigits 2]
Datatype: natural
EquivalentTo: not negativeInteger
Datatype: Years
EquivalentTo: natural
Datatype: Surname
EquivalentTo: string [pattern "[a-z]"^^xsd:string]
ObjectProperty: hasSSN
ObjectProperty: hasName
ObjectProperty: hasChildren
ObjectProperty: hasDaughter
SubPropertyOf: hasChildren
DataProperty: hasAge
Range: natural [> "10.24"^^real]
DataProperty: hasHeight
Range: height [< 2.1f]
Class: smallChild
SubClassOf: hasHeight value 1.0f
Class: Person
HasKey: hasSSN, hasAge, hasName
Individual: Ann
Types: hasAge some natural, hasChildren min 2
end