Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a (wikidata) example to /sameAs #2482

Closed
danbri opened this issue Mar 10, 2020 · 9 comments
Closed

Add a (wikidata) example to /sameAs #2482

danbri opened this issue Mar 10, 2020 · 9 comments
Assignees
Labels
no-issue-activity Discuss has gone quiet. Auto-tagging to encourage people to re-engage with the issue (or close it!).

Comments

@danbri
Copy link
Contributor

danbri commented Mar 10, 2020

Let's use Douglas Adams, @vrandezo

  "@type": "Movie",
  "name": "The Hitchhiker's Guide to the Galaxy",
  "disambiguatingDescription": "2005 British-American comic science fiction film directed by Garth Jennings",
  "sameAs": "https://www.wikidata.org/wiki/Q836821",
  "titleEIDR": "10.5240/B752-5B47-DBBE-E5D4-5A3F-N",
  "isBasedOn":
  { 
    "@type": "Book",
    "name": "The Hitchhiker's Guide to the Galaxy",
    "isbn": "0-330-25864-8",
    "sameAs": "https://www.wikidata.org/wiki/Q3107329",
    "author": 
    {
      "@type": "Person",
      "name": "Douglas Adams",
      "sameAs": "https://www.wikidata.org/wiki/Q42"
    }
  }
}
```

(this also uses draft EIDR property; I'm suggesting for that /workEIDR and /editEIDR, see #2469)
@danbri danbri self-assigned this Mar 10, 2020
@danbri
Copy link
Contributor Author

danbri commented Mar 12, 2020

I'm trying to work through how this relates to EIDR in #2469. There are some complications.

Example 1 - work/title level

This example talks about the movie in its most abstract general sense first, mentioning a wikidata sameAs link, a titleEIDR, and its name and a disambiguatingDescription. It then lists 4 specific edits with eidrEIDR and disambiguatingDescription for each.

{
"@type": "Movie",
  "name": "The Hitchhiker's Guide to the Galaxy",
  "disambiguatingDescription": "2005 British-American comic science fiction film directed by Garth Jennings",
  "sameAs": "https://www.wikidata.org/wiki/Q836821",
  "titleEIDR": "10.5240/B752-5B47-DBBE-E5D4-5A3F-N",
  "workExample": [ {
    "@type": "Movie",
    "editEIDR": "10.5240/0196-4177-FF62-A346-D0F6-Z",
    "disambiguatingDescription": "VUDU version"
   },
    "@type": "Movie",
    "editEIDR": "10.5240/043D-15C4-838D-80F4-E96A-G",
    "disambiguatingDescription": "Censored for India"
   },
    "@type": "Movie",
    "editEIDR": "10.5240/7BAD-7B81-396E-27EF-360F-N",
    "disambiguatingDescription": "Theatrical"
   },
    "@type": "Movie",
    "editEIDR": "0.5240/1DC4-B3E4-ECEB-7197-BF18-B",
    "disambiguatingDescription": "Broadcast"
   }
  ],
  "isBasedOn":
  { 
    "@type": "Book",
    "name": "The Hitchhiker's Guide to the Galaxy",
    "isbn": "0-330-25864-8",
    "sameAs": "https://www.wikidata.org/wiki/Q3107329",
    "author": 
    {
      "@type": "Person",
      "name": "Douglas Adams",
      "sameAs": "https://www.wikidata.org/wiki/Q42"
    }
  }
}

Example 2 - edit(ion) level

This example is all about a specific edition ("expression" in FRBR terminology). Therefore to
provide information (such as a work sameAs link) we need to
describe the work as a different entity (here via exampleOfWork).

{
  "@type": "Movie",
  "name": "The Hitchhiker's Guide to the Galaxy",
  "titleEIDR": "10.5240/B752-5B47-DBBE-E5D4-5A3F-N",
  "editEIDR": "10.5240/0196-4177-FF62-A346-D0F6-Z",
  "disambiguatingDescription": "VUDU version",
  "exampleOfWork": 
    {
       "@type": "Movie",
         "sameAs": "https://www.wikidata.org/wiki/Q836821",
    }
  }
}

@RichardWallis
Copy link
Contributor

Being pedantic shouldn't the Wikidata uri be http://www.wikidata.org/entity/Q3107329 not https://www.wikidata.org/wiki/Q3107329

@philbarker
Copy link
Contributor

@RichardWallis definition for sameAs says it's the "URL of a reference Web page..." so it should be /wiki/ URL not the /entity/

@RichardWallis
Copy link
Contributor

Note to self: RTFM

@akuckartz
Copy link

@philbarker But where is "Web page" defined ?

@github-actions
Copy link

github-actions bot commented Sep 4, 2020

This issue is being tagged as Stale due to inactivity.

@github-actions github-actions bot added the no-issue-activity Discuss has gone quiet. Auto-tagging to encourage people to re-engage with the issue (or close it!). label Sep 4, 2020
@RichardWallis
Copy link
Contributor

Shipped in V11.0 release.

@ziodave
Copy link

ziodave commented Sep 29, 2021

@RichardWallis definition for sameAs says it's the "URL of a reference Web page..." so it should be /wiki/ URL not the /entity/

To be fair the examples here use the dbpedia ID, not the dbpedia page:
https://www.w3.org/wiki/WebSchemas/sameAs

And Wikipedia itself is linking to the wikidata.org/entity link:
https://validator.schema.org/#url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FCrown_(dentistry)

image

@WeaverStever
Copy link

WeaverStever commented Sep 29, 2021

This reminds me of a discussion about adding the subtype homePage (#2062). That discussion exposed that some people use social media profiles as their main web-presence, so https://schema.org/WebSite https://schema.org/WebPage does not always resolve to the document root of the domain.

Further discussion exposed that these social-media sites generally use aliases called folksonomy tags as identifiers which are specific to the domain, usually the ampersand is used to prefix an identity and a hashtag identifies a collection of related topics.

For instance, the politician @ocasio2018, is now far more widely known for the folksonomy tag that twitter gifted to her @aoc.

My suggestion here is that having two new properties, ontologies (Wikidata, ISNI etc) and folksonomies (ampersand and hashtag identities -- accompanied with the specific domain) might make it easier for data-consumers to do more targeted searches.

I've always used sameAs, to point to the human readable page because many persons and organizations are too new for Wikipedia pages and without a Wikipedia page, you can't get a Wikidata entity. Additionally, most webpages have the structured data embedded within the human readable version. (I believe the previous guidance for https://schema.org/sameAs included news articles social media pages as a collection.)

IMHO Wikidata (and therefore Wikipedia) may be trustworthy as "a reference Web page that unambiguously indicates the item's identity." for the thing type, but it is highly dubious for persons and creativeworks because the platform has been captured by politicos and special interests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-issue-activity Discuss has gone quiet. Auto-tagging to encourage people to re-engage with the issue (or close it!).
Projects
None yet
Development

No branches or pull requests

6 participants