Properties are the verbs of your ontology — they describe relationships between entities. OWL provides several constructs that give properties deeper meaning beyond just connecting two things.
owl:FunctionalProperty
A functional property means each subject can have at most one value for this property. It's like a foreign key in a database that points to exactly one row.
nwo:hasCategory a owl:FunctionalProperty, owl:ObjectProperty ; rdfs:domain nwo:Product ; rdfs:range nwo:Category .
In plain English: Every Product belongs to exactly one Category. Chai can't be in both "Beverages" and "Condiments."
If the data contains:
nwd:product-1 nwo:hasCategory nwd:category-1 . # Chai → Beverages nwd:product-1 nwo:hasCategory nwd:category-2 . # Chai → Condiments
The reasoner infers nwd:category-1 owl:sameAs nwd:category-2 — it assumes they must be the same thing (since a functional property can only point to one value). If Beverages and Condiments are declared different (owl:differentFrom), this becomes an inconsistency.
nwd:category-1 owl:sameAs nwd:category-2
owl:differentFrom
hasCategory
hasCustomer
hasEmployee
hasProduct
hasShipper
hasSupplier
hasRegion
belongsToOrder
reportsTo
birthDate
hireDate
productID
orderID
employeeID
customerID
categoryID
regionID
shipperID
supplierID
territoryID
discontinued
dateOfBirth
foundedYear
owl:inverseOf
Two properties are inverses when one is the "flip side" of the other. If A relates to B via property P, then B relates to A via the inverse of P.
nwo:containsTerritory a owl:ObjectProperty ; rdfs:domain nwo:Region ; rdfs:range nwo:Territory ; owl:inverseOf nwo:hasRegion .
In plain English: If Territory "New York" hasRegion "Eastern", then the reasoner automatically infers "Eastern" containsTerritory "New York". You only need to assert one direction in your data.
containsTerritory
Given:
nwd:territory-10019 nwo:hasRegion nwd:region-1 . # New York → Eastern
The reasoner infers:
nwd:region-1 nwo:containsTerritory nwd:territory-10019 .
This is one of the most practically useful OWL constructs — it saves you from duplicating data and keeps your graph navigable in both directions.
placesOrder
processesOrder
shipsOrder
supplies
includesProduct
hasOrderDetail
manages
owl:propertyChainAxiom
A property chain lets you define a shortcut property that is automatically inferred by following a path of other properties. This is one of the most powerful OWL constructs.
boughtProduct
nwo:boughtProduct a owl:ObjectProperty ; rdfs:domain nwo:Customer ; rdfs:range nwo:Product ; owl:propertyChainAxiom ( [ owl:inverseOf nwo:hasCustomer ] [ owl:inverseOf nwo:belongsToOrder ] nwo:hasProduct ) .
In plain English: A Customer boughtProduct a Product if there exists an Order placed by that Customer, containing an OrderDetail that references that Product.
The chain traverses: Customer ←hasCustomer– Order ←belongsToOrder– OrderDetail –hasProduct→ Product
Given these triples in the database:
nwd:order-10248 nwo:hasCustomer nwd:customer-VINET . nwd:orderDetail-10248-11 nwo:belongsToOrder nwd:order-10248 . nwd:orderDetail-10248-11 nwo:hasProduct nwd:product-11 . # Queso Cabrales
nwd:customer-VINET nwo:boughtProduct nwd:product-11 .
This is immensely useful — without the chain, you'd need a complex SPARQL query to find what customers bought. With the chain, it's a single triple pattern.
livesIn
nwo:livesIn a owl:ObjectProperty ; rdfs:domain nwo:Employee ; rdfs:range nwo:Region ; owl:propertyChainAxiom ( nwo:hasTerritory nwo:hasRegion ) .
In plain English: An Employee livesIn a Region if they have a Territory that belongs to that Region.
The chain traverses: Employee –hasTerritory→ Territory –hasRegion→ Region
hasTerritory
nwd:employee-1 nwo:hasTerritory nwd:territory-06897 . # Nancy → Wilton nwd:territory-06897 nwo:hasRegion nwd:region-1 . # Wilton → Eastern
nwd:employee-1 nwo:livesIn nwd:region-1 .
rdfs:subPropertyOf
A sub-property is a more specific version of a general property. Any assertion using the sub-property also holds for the super-property.
Not declared by the Northwind ontology itself. The Northwind ontology declares no rdfs:subPropertyOf axioms; the only ones in a Northwind database come from the SKOS, FOAF and RDFS vocabularies it loads. The example below is a pattern you could add.
@prefix ex: <http://example.org/> . ex:name a owl:DatatypeProperty . nwo:categoryName rdfs:subPropertyOf ex:name . nwo:companyName rdfs:subPropertyOf ex:name . nwo:productName rdfs:subPropertyOf ex:name .
In plain English: categoryName, companyName, and productName would all be kinds of name. A query for all things with a name would then return categories, companies, and products.
categoryName
companyName
productName
name
nwd:category-1 nwo:categoryName "Beverages" .
The reasoner would infer:
nwd:category-1 ex:name "Beverages" .
This enables generic queries across different entity types, once the super-property exists.
owl:unionOf
rdfs:domain
A union domain means the property can be used by any class in the union. It's like saying "this column exists in multiple tables."
nwo:companyName a owl:DatatypeProperty ; rdfs:domain [ a owl:Class ; owl:unionOf ( nwo:Customer nwo:Shipper nwo:Supplier ) ] ; rdfs:range xsd:string .
In plain English: Customers, Shippers, and Suppliers all have a companyName. If something has a companyName, it must be one of those three.
nwd:unknown-entity nwo:companyName "ACME Corp" .
The reasoner infers that nwd:unknown-entity is a member of the union Customer ∪ Shipper ∪ Supplier. It doesn't pick which one — just that it's one of them.
nwd:unknown-entity
Customer ∪ Shipper ∪ Supplier
contactName
contactTitle
address
city
country
postalCode
region
phone
fax
unitPrice
description
sameAs