OWL Basics
OWL Basics
🔹 Definition:
OWL (Web Ontology Language) is a semantic web language used to create ontologies, which
define relationships between concepts in a structured and machine-readable way. It is widely
used in knowledge graphs, artificial intelligence (AI), and linked data applications.
OWL is a W3C standard designed to provide rich, complex knowledge representation beyond
simple taxonomies.
xml
Copy
Edit
<owl:Class rdf:ID="Car"/>
<owl:Class rdf:ID="Vehicle"/>
➡️"Car" is a subclass of "Vehicle."
xml
Copy
Edit
<Car rdf:ID="Tesla_Model_S"/>
➡️"Tesla Model S" is an individual instance of the "Car" class.
📌 Types of Properties:
xml
Copy
Edit
<owl:ObjectProperty rdf:ID="hasOwner"/>
➡️Defines that a Car has an Owner.
xml
Copy
Edit
<owl:DatatypeProperty rdf:ID="hasLicensePlate"/>
➡️Defines that a Car has a license plate number.
📌 Example:
xml
Copy
Edit
<owl:Class rdf:ID="ElectricCar">
<rdfs:subClassOf rdf:resource="#Car"/>
</owl:Class>
➡️"ElectricCar" is a subclass of "Car" (inherits all properties of "Car").
📌 Example:
Given: