Reputation: 41
As I understand it, OWL is an ontology language that extends RDFS to add more expressiveness and new features. Schema.org, according to its Data Model, similarly extends from RDFS, but since it's a "sibling" of OWL, it has its own syntax that could differ from OWL. In addition, Schema.org has its own vocabulary/ontology that it publishes on its website.
What are the language differences between them? If I wanted to convert Schema.org into OWL, how would I do this? I know in Schema.org they have an experimental OWL file, and they cite the following differences only:
The structure of the file differs from the above vocabulary definition files, in that schema:domainIncludes and schema:rangeIncludes values are converted into rdfs:domain and rdfs:range values using owl:unionOf to capture the multiplicity of values. Included in the range values are the, implicit within the vocabulary, default values of Text, URL, and Role.
Upvotes: 3
Views: 863
Reputation: 4772
TLDR
Schema.org is mainly for sharing structured data on the Internet. OWL is used mainly to reason over structured data to determine inconsistencies in the schema.
As I understand it, OWL is an ontology language that extends RDFS to add more expressiveness and new features. Schema.org, according to its Data Model, similarly extends from RDFS, but since it's a "sibling" of OWL, it has its own syntax that could differ from OWL. In addition, Schema.org has its own vocabulary/ontology that it publishes on its website.
I think this is a reasonable assessment of OWL vs Schema.org. Further, you will notice from https://schema.org/version/latest/schemaorg-current-http.ttl that schema.org uses some features from OWL to state that a class or property is respectively equivalent to a class or property from a different vocabulary. OWL does not make use of Schema.org.
Key differences
There are 2 main differences between OWL and Schema.org
Intended purpose: The primary purpose of Schema.org is to enable sharing of structured data on the internet. The primary purpose of OWL is to enable sophisticated reasoning across the structure of your data.
Difference in language: Due to the difference in purpose, there are substantial differences in language. The main reason being that the language for OWL can be translated into precise mathematical logic axioms, which allows for much richer inferences to be drawn. This is the reason for OWL preferring rdfs:domain/rdfs:range
to schema:domainIncludes/schema:rangeIncludes
: rdfs:domain/rdfs:range
have precise defined mathematical logic meaning, whereas schema:domainIncludes/schema:rangeIncludes
do not have mathematical meaning.
What does this mean?
Using Schema.org you could draw some limited inferences. For example a reasoner can determine that the SNOMED concept http://purl.bioontology.org/ontology/SNOMEDCT/116154003
is a schema:Patient
which is a schema:Person
. But the language used in Schema.org by itself is not rich enough to detect inconsistencies. I.e., there is no way to say that schema:Person
is disjoint from schema:Product
. This allows for stating myexample:john a schema:Person
and myexample:john a schema:Product
without a reasoner being able to detect the inconsistency. Using OWL it is possible to state that schema:Person
and schema:Product
are disjoint.
Does this mean you should prefer OWL to Schema.org? No, not if your intended purpose of your ontology is to share data. Then it is best to use concepts from Schema.org and add the axioms that will provide the inferences you need. If reasoning is not your reason for wanting to use Schema.org/OWL, then just use Schema.org.
Can you translate Schema.org to OWL?
Strictly speaking, since RDF & RDFS is a subset of OWL, Schema.org is an OWL definition already, albeit 1 with limited reasoning capability. Any "translation" to OWL will mean adding axioms to Schema.org to increase the inferences that can be drawn from Schema.org documents. It is a pity that Schema.org does not (the current link to the OWL file is dead) provide an OWL file with the additional axioms that will enable richer reasoning.
Add rdfs:domain
and rdfs:range
restrictions rather than replacing schema:domainIncludes
and schema:rangeIncludes
. Replacing schema:domainIncludes
and schema:rangeIncludes
could result in search engines not finding information.
Add owl:disjointWith
and owl:disjointObjectProperties
respectively for all classes and properties that do not share individuals.
By looking at the documentation of Schema.org it gives the impression that classes have attributes. I.e., schema:Person
has an attribute schema:givenName
. However, there is nothing in the definition of schema:Person
that enforces that the schema:Person
class must have a schema:givenName
attribute. I describe here, here and here how to define "attributes" for classes in a way that can be used by OWL reasoners.
Upvotes: 4