Semantic Web and Web 3.0 · class 08 · demo

What the reasoner adds

The ontology and the graph of the class, closed three times. Nothing below was written twice: every inferred triple comes from an axiom, and each page says which.

286
triples · No reasoner
624
triples · RDFS
918
triples · OWL 2 RL

The defined classes, filled in by the reasoner

Nobody asserts that product 17 is a onto:PortugueseProduct. Switch between the regimes: with no reasoner and under RDFS the column is empty; under OWL 2 RL it fills. onto:LargeOrder stays empty here — a restriction on a datatype is outside OWL 2 RL; in Protégé, with HermiT, order:1001 is a large order.

ClassConditionMembers (RDFS)
onto:LargeOrderAn order whose total value is 500 euros or more (50000 cents). A class defined by a restriction on a datatype.nobody — switch the regime
onto:PortugueseManufacturerA manufacturer whose country is Portugal. A defined class: membership is inferred, never asserted.nobody — switch the regime
onto:PortugueseProductA product made by a Portuguese manufacturer. It answers competency question Q1.nobody — switch the regime

The class hierarchy

The properties

Propertyrdfs:domainrdfs:rangeCharacteristics
onto:containsProductonto:Orderonto:Product
onto:country—onto:Country
onto:date—xsd:date
onto:hasCustomeronto:Orderonto:Customer
onto:hasPart——transitive
onto:manufacturedByonto:Productonto:Manufacturer
onto:manufacturesonto:Manufactureronto:Productinverse of onto:manufacturedBy
onto:partOf——transitive, inverse of onto:hasPart
onto:productonto:Supplyonto:Product
onto:quantityonto:Supplyxsd:integer
onto:replacesonto:Productonto:Product
onto:supplieronto:Supplyonto:Manufacturer
onto:totalCentsonto:Orderxsd:integer
onto:unitPriceCentsonto:Supplyxsd:integer

The question slide, run

An order has exactly one customer. Two arrive. What does the reasoner do? →

Every resource

<https://data.csoares.me/onto>
Ontology of the catalogue and the orders
batch:A
Batch A
category:computing
Computing
category:monitors
Monitors
category:peripherals
Peripherals
component:blue-switch
Blue switch
component:spring
Spring
component:usb-c-cable
USB-C cable
container:7
Container 7
country:DE
Germany
country:PT
Portugal
customer:4
Papelaria Central
customer:5
Escola Secundaria do Douro
manufacturer:12
Nordwind GmbH
manufacturer:9
Acme Lda
order:1001
order:1002
product:17
Mechanical keyboard
product:23
Optical mouse
product:31
Wireless optical mouse
product:52
Firmware licence
product:88
27-inch monitor
supply:2026-10-01/17