Schema.org is a collaborative, community-driven project to create a universal set of vocabulary for structured data markup on web pages. One of the most critical relationships in Schema.org is the sameAs property. This property links two entities, indicating that they represent the same thing. In this article, we will explore how to use Wikidata Source URIs with Schema.org's sameAs relationship.
What is Schema.org's sameAs Relationship?
The sameAs
Using Wikidata Source URIs with Schema.org's sameAs Relationship
Wikidata is a free and collaborative knowledge base that provides structured data about real-world entities. Wikidata URIs can be used as values for Schema.org's sameAs property to link entities across different data sources. Here's an example of how to use Wikidata URIs with Schema.org's sameAs property in microdata:
Example: Linking a Person to their Wikidata Profile
In the example above, we have defined a Person entity with the name "John Doe" and linked it to its Wikidata profile using the sameAs property. The Wikidata URI "https://www.wikidata.org/entity/Q12345678" represents the entity corresponding to "John Doe."
Example: Linking a Movie to its Wikidata Profile
In the example above, we have defined a Movie entity with the name "The Shawshank Redemption" and linked it to its Wikidata profile using the sameAs property. We have also included the director of the movie as a nested property, demonstrating that Wikidata URIs can be used to link related entities as well.
- Schema.org's
sameAsproperty is a transitive relationship that links two entities, indicating that they represent the same thing. - Wikidata Source URIs can be used as values for Schema.org's sameAs property to link entities across different data sources.
- Using Wikidata URIs with Schema.org's sameAs property can help disambiguate entities and link data across different sources.
For further reading, check out the following resources: