Skip to content

Instantly share code, notes, and snippets.

@chunhualiao
Last active March 12, 2021 17:20
Show Gist options
  • Save chunhualiao/1e516665be7c8f4c0b8383a38859e8d9 to your computer and use it in GitHub Desktop.
Save chunhualiao/1e516665be7c8f4c0b8383a38859e8d9 to your computer and use it in GitHub Desktop.
schema.org.notes.md

There are rdfs:domain and rdfs:range already. Why does schema.org use schema:domainIncludes and schema:rangeIncludes instead?

Answer:

Schema.org doesn't want you to do inferencing using certain properties. If I knew that

schema:name rdfs:domain schema:Person

then whenever I saw a schema:name defined for an object, I could infer that the object was of type schema:Person.

Schema.org uses schema:name for lots of things so uses schema:domainIncludes to indicate how you could or should use it but doesn't lock it down.

references

RDFS: same property for multiple domains

Are schema:domainIncludes and rdfs:domain (as well as schema:rangeIncludes and rdfs:range) the same?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment