Skip to content

MellonScholarlyCommunication/verification-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Verfication Service

Demonstration of a JSON-LD version of a researcher profile

{
    "@context": "https://labs.eventnotifications.net/contexts/profile.jsonld",
    "id": "https://myid.surf.nl/profile/2134",
    "type": "PersonalProfileDocument",
    "primaryTopic": {
      "id": "https://myid.surf.nl/profile/2134#me",
      "type": "Person",
      "mastodon": "https://mastodon.social/@patrickhochstenbach",
      "homepage": "https://wiki.mycontributions.info/en/researcher/orcid/0000-0001-8390-6171"
      "modified": "2024-09-24T09:31:10"
    }
}

Remarks:

  • @context : a link to a JSON-LD context document (RDF agents use this to translate the content into linked data)
  • id : the URL of the published user profile
  • type : must be PersonalProfileDocument
  • primaryTopic : contains the information about the user
    • id : the URL of the published user profile plus some anchor (e.g. #me)
    • we use this to point externally to point to the interesting part of the JSON-LD document
    • type : must be Person
    • mastodon : a link to the researcher Mastodon profile
    • homepage : a link to the researcher claims page
    • modified : last modification or verification date of this information

All fields are mandatory.

Discovery of the researcher profile

  • The verification service is at https://myid.surf.nl .
  • A researcher logs in and edits her profile with her mastodon and homepage links.
  • A public facing profile page is available for her at https://myid.surf.nl/profile/2134 .
  • The JSON-LD can be published inline in the HTML document using the <script type="application/ld+json">..JSON-LD</script> header
<script type="application/ld+json">
{
    "@context": "https://labs.eventnotifications.net/contexts/profile.jsonld",
    "id": "http://localhost:8000/profile/8000",
    "type": "PersonalProfileDocument",
    "primaryTopic": {
        "id": "http://localhost:8000/profile/8000#me",
        "type": "Person",
        "mastodon": "https://mastodon.social/@patrickhochstenbach",
        "homepage": "https://wiki.mycontributions.info/en/researcher/orcid/0000-0001-8390-6171",
        "modified": "2024-09-24T09:31:10"
    }
}
</script>

Note: when serving the HTML record it is advisory to serve the Mastodon links with the rel="me" attribute. This will trigger mastodon verification services to recognize these links.

Demo

Install

yarn install

Run

yarn server

Test

./bin/verification-cli.js http://localhost:8000/profile/8000

About

Demonstrator verification server requirements

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published