ntheile / soundblock

Independent open source decentralized music player and community for artists and fans powered by the Blockchain (blockstack + ipfs).
4 stars 2 forks source link

research RDF triples, linked data, json-ld and this schema https://schema.org/MusicRecording #9

Open ntheile opened 5 years ago

ntheile commented 5 years ago

Tim Berners-Lee inspirational TED talk - https://www.youtube.com/watch?time_continue=515&v=OM6XIICm_qo JSON-LD tutorial - http://www.linkeddatatools.com/introduction-json-ld

<script type="application/ld+json">
{
    "@context": "http://schema.org",
    "@type": "MusicRecording",
    "@id": "http://musicbrainz.org/recording/3566e453-8f10-4a45-ac85-2c72eb183ca1",
    "name": "Back in the U.S.S.R.",
    "producer": {
        "@type": "Person",
        "name": "George Martin"
    },
    "duration": "PT2M43S",
    "recordingOf": {
        "@type": "MusicComposition",
        "name": "Back in the U.S.S.R",
        "iswcCode": "T-010.140.236-1"
    }
}
</script>
ntheile commented 5 years ago
<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "MusicGroup",
  "event": [{
    "@type": "Event",
    "location": "Memphis, TN, US",
    "offers": "ticketmaster.com/foofighters/may20-2011",
    "startDate": "2011-05-20",
    "url": "foo-fighters-may20-fedexforum"
  }, {
    "@type": "Event",
    "location": "Council Bluffs, IA, US",
    "offers": "ticketmaster.com/foofighters/may23-2011",
    "startDate": "2011-05-23",
    "url": "foo-fighters-may23-midamericacenter"
  }],
  "image": [
    "foofighters-1.jpg",
    "foofighters-2.jpg",
    "foofighters-3.jpg"
  ],
  "interactionStatistic": {
    "@type": "InteractionCounter",
    "interactionType": "http://schema.org/CommentAction",
    "userInteractionCount": "18"
  },
  "name": "Foo Fighters",
  "track": [{
    "@type": "MusicRecording",
    "audio": "foo-fighters-rope-play.html",
    "duration": "PT4M5S",
    "inAlbum": "foo-fighters-wasting-light.html",
    "interactionStatistic": {
      "@type": "InteractionCounter",
      "interactionType": "http://schema.org/ListenAction",
      "userInteractionCount": "14300"
    },
    "name": "Rope",
    "offers": "foo-fighters-rope-buy.html",
    "url": "foo-fighters-rope.html"
  }, {
    "@type": "MusicRecording",
    "audio": "foo-fighters-everlong-play.html",
    "duration": "PT6M33S",
    "inAlbum": "foo-fighters-color-and-shape.html",
    "name": "Everlong",
    "interactionStatistic": {
      "@type": "InteractionCounter",
      "interactionType": "http://schema.org/ListenAction",
      "userInteractionCount": "11700"
    },
    "offers": "foo-fighters-everlong-buy.html",
    "url": "foo-fighters-everlong.html"
  }],
  "video": {
    "@type": "VideoObject",
    "description": "Catch this exclusive interview with Dave Grohl and the Foo Fighters about their new album, Rope.",
    "duration": "T1M33S",
    "name": "Interview with the Foo Fighters",
    "thumbnail": "foo-fighters-interview-thumb.jpg"
  }
}
</script>
ntheile commented 5 years ago
<script type="application/ld+json">
{
    "@context": "http://schema.org",
    "@type": "MusicRelease",
    "name": "The Beatles",
    "alternateName": "White Album",
    "musicReleaseFormat": "http://schema.org/VinylFormat",
    "duration": "PT1H33M50S",
    "inLanguage": "EN",
    "recordLabel": {
        "@type": "Organization",
        "@id": "http://musicbrainz.org/label/cf7fc5cf-e011-4ef4-b511-cd0188537910",
        "name": "Apple Records"
    },
    "catalogNumber": "SWBO 101",
    "releasedEvent": [
        {
            "@type": "PublicationEvent",
            "startDate": "1968-11-22",
            "location": {
                "@type": "Country",
                "name": "Canada"
            }
        },
        {
            "@type": "PublicationEvent",
            "startDate": "1968-11-25",
            "location": {
                "@type": "Country",
                "name": "United States"
            }
        }
    ],
    "producer": [
        {
            "@type": "Person",
            "name": "George Martin"
        },
        {
            "@type": "Person",
            "name": "Chris Thomas"
        }
    ]
}
</script>
ntheile commented 5 years ago

research https://search.google.com/structured-data/testing-tool/#url=https%3A%2F%2Fschema.org%2FMusicAlbum