![]() |
|
|
| Home | Resources | Buyer's Guide | FAQs | Newsletter | Tech Jobs | |
|
DAML Reference 5.23. daml:hasValue
daml:hasValue property is used to specify that a property must have at least one value equivalent to the specified value. 5.23.1. Syntaxdaml:hasValue property contains a reference to an individual object or a datatype value and defines the class of all objects for whom the property has at least one value equal to the named object or datatype value. 5.24. daml:imports
5.24.1. SyntaxEach daml:imports statement references another DAML+OIL ontology containing definitions that apply to the current DAML+OIL resource. Each reference consists of a URI specifying where the ontology is to be imported from. daml:imports are transitive. 5.25. daml:intersectionOf
daml:intersectionOf property means that the defined class contains all the instances that belong to all the classes in the list. In our example, the #HikingShoes class instances must be instances of both #HikingGear and #Footwear. 5.25.1. Syntaxdaml:intersectionOf contains a list of class-expressions and defines the class that consists of exactly all the objects that are common to all class-expressions from the list. It is analogous to logical conjunction. 5.26. daml:inverseOf
daml:inverseOf property means that it is the inverse of another property. For example, a product is used for a specific activity, an ice axe for mountaineering. The inverse relation is that one instance of mountaineering gear is an ice axe. Here #gear is the daml:inverseOf #usedFor. 5.27. daml:item
daml:item property represents an item in a daml:List, it is either a daml:first element or a part of the daml:rest. 5.28. daml:maxCardinality
daml:maxCardinality determine the maximum number of possible values for a given property. 5.29. daml:maxCardinalityQ
daml:maxCardinalityQ determine the maximum number of possible values of a certain rdf:type for a given property. 5.30. daml:minCardinality
daml:minCardinality determine the minimum number of possible values for a given property. 5.31. daml:minCardinalityQ
daml:minCardinalityQ determine the minimum number of possible values of a certain rdf:type for a given property. 5.32. daml:nil
daml:nil represents the empty list, used as the value of daml:rest when no more items are in the daml:List. 5.33. daml:onProperty
5.33.1. Syntaxdaml:onProperty property refers to a property name (a URI) by the attribute rdf:resource. 5.34. daml:oneOf
daml:oneOf property lists all the things that are instances of the domain. This lets us define classes by enumerating the members. 5.34.1. Syntaxdaml:oneOf contains a list of the objects that are its instances. The class defined by the daml:oneOf property contains exactly the enumerated objects, declared using daml:Thing. 5.35. daml:rest
daml:rest represents all parts of daml:List except daml:first. 5.36. daml:sameClassAs
daml:sameClassAs property means that the value of the property is an equivalent class to its subject. 5.36.1. Syntaxdaml:sameClassAs property asserts that the subject is equivalent to the class-expression(i.e. the subject and all the class-expression must have the same instances). 5.37. daml:sameIndividualAs
daml:sameIndividualAs property states that the value of the property is the same individual as its subject. 5.38. daml:samePropertyAs
daml:samePropertyAs defines that the value is an equivalent property to its subject. 5.38.1. Syntaxdaml:samePropertyAs asserts that the subject is equivalent to the named property (i.e. they must have the same instances). 5.39. daml:toClass
The daml:toClass property means that only instances of the specified class can be values of the property. For example, an obsolete activity is one for which all its gear has been discontinued. <daml:Class rdf:ID="ObsoleteActivity">
<rdfs:label>Obsolete activity</rdfs:label>
<rdfs:comment>Activities for which all related
products have been discontinued</rdfs:comment>
<daml:intersectionOf rdf:parseType="daml:collection">
<daml:Class rdf:resource="#Activity"/>
<daml:Restriction>
<daml:onProperty rdf:resource="#gear"/>
<daml:toClass rdf:resource="#DiscontinuedProduct"/>
</daml:Restriction>
</daml:intersectionOf>
</daml:Class>
5.39.1. SyntaxThe daml:toClass property contains a class-expressions and defines the class of all objects for whom the values of the property all belong to the class-expressions. 5.40. daml:unionOf
The daml:unionOf property means that a class contains all the instances of all the classes it is the unionOf. For example, all camping and hiking products are considered family products. 5.40.1. Syntaxdaml:unionOf contains a list of class-expressions and defines the class that consists of all the objects that belong to at least one of the class-expressions from the list. It is analogous to logical disjunction. 5.41. daml:versionInfo
daml:versionInfo is an arbitrary value that describes versioning information for the document. It can be a simple string, as we have it here, or a complex RDF or literal XML structure. |
|
| |
| Contact Us | Our Mission | Privacy Policy | Advertise With Us | Site Help | |
| Copyright © 2002 O'Reilly & Associates, Inc. | |