HTML and CSS Reference
In-Depth Information
Set of individuals (instances of a class) defined by the
owl:oneOf property. For example,
the class of smartphones can be declared in the RDF/XML syntax with the RDF construct
rdf:parseType="Collection" , as shown in Listing 7-81.
Listing 7-81. Class Instances in OWL
<owl:Class>
<owl:oneOf rdf:parseType="Collection">
<owl:Thing rdf:about="#Touch"/>
<owl:Thing rdf:about="#Type"/>
<owl:Thing rdf:about="#TouchType"/>
<owl:Thing rdf:about="#Business"/>
</owl:oneOf>
</owl:Class>
Property restriction: a value constraint or a cardinality constraint (for example, Listing 7-82).
Listing 7-82. Property Restrictions in OWL
<owl:Restriction>
<owl:onProperty rdf:resource="hasGPS" />
<owl:allValuesFrom rdf:resource="#Smartphone" />
</owl:Restriction>
Brochures
enumerations can be described by the statement owl:intersectionOf , as presented
in Listing 7-83.
Intersection of two or more class descriptions. For example, the intersection of two
Listing 7-83. Intersection in OWL
<owl:Class>
<owl:intersectionOf rdf:parseType="Brochures">
<owl:Class>
<owl:oneOf rdf:parseType="Brochures">
<owl:Thing rdf:about="#Manual" />
<owl:Thing rdf:about="#Guide" />
<owl:Thing rdf:about="#Prospectus" />
</owl:oneOf>
</owl:Class>
<owl:Class>
<owl:oneOf rdf:parseType="Brochures">
<owl:Thing rdf:about="#Specs" />
<owl:Thing rdf:about="#Overview" />
<owl:Thing rdf:about="#Guide" />
</owl:oneOf>
</owl:Class>
</owl:intersectionOf>
</owl:Class>
where the intersection is a class with the only common individual, Guide .
 
Search WWH ::




Custom Search