This repository has been archived by the owner on Feb 13, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Discogs JSON LD and N3 examples
tworrall edited this page Jan 24, 2019
·
9 revisions
Here are two examples of the JSON-LD that the Discogs QA authority produces, each followed by the corresponding N3. The examples are from the Discogs test data spreadsheet that lists the Sinatra 45s needing to be catalogued. The N3 was generated using the EasyRDF Converter.
The second example includes full tracklist data with extra artists.
{
"@context": {
"bibframe": "http://id.loc.gov/ontologies/bibframe/",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
},
"@graph": [
{
"@id": "Work1",
"@type": "bibframe:Work",
"bf2:mainTitle": "I Guess I'll Have To Dream The Rest",
"bibframe:contribution": {
"@id": "PrimaryContribution1"
},
"bibframe:genreForm": {
"@id": "http://id.loc.gov/authorities/genreForms/gf2014027009"
},
"bibframe:hasInstance": {
"@id": "Instance1"
},
"bibframe:hasPart": [
{
"@id": "Work2"
},
{
"@id": "Work3"
}
]
},
{
"@id": "PrimaryContribution1",
"bibframe:agent": {
"@id": "Frank Sinatra"
},
"@type": "http://id.loc.gov/ontologies/bflc/PrimaryContribution"
},
{
"@id": "http://id.loc.gov/authorities/genreForms/gf2014027009",
"@type": "bibframe:GenreForm",
"rdfs:label": "Popular music"
},
{
"@id": "Instance1",
"@type": "bibframe:Instance",
"bf2:mainTitle": "I Guess I'll Have To Dream The Rest",
"bibframe:editionStatement": "Promo",
"bibframe:dimensions": {
"@id": "7 inches"
},
"bibframe:baseMaterial": {
"@id": "http://vocab.getty.edu/aat/300014502"
},
"bibframe:carrier": {
"@id": "http://id.loc.gov/vocabulary/carriers/sd"
},
"bibframe:provisionActivity": [
{
"@id": "ProvisionActivityDate"
},
{
"@id": "ProvisionActivity1"
},
{
"@id": "ProvisionActivity2"
},
{
"@id": "ProvisionActivity3"
}
],
"bibframe:identifiedBy": [
{
"@id": "IdentifierPrimary"
},
{
"@id": "Identifier1"
},
{
"@id": "Identifier2"
},
{
"@id": "Identifier3"
}
],
"bibframe:soundCharacteristic": [
{
"@id": "PlayingSpeed1"
},
{
"@id": "http://id.loc.gov/vocabulary/mplayback/ste"
},
{
"@id": "http://id.loc.gov/vocabulary/mplayback/mon"
}
]
},
{
"@id": "http://vocab.getty.edu/aat/300014502",
"@type": "bibframe:BaseMaterial",
"rdfs:label": "Vinyl"
},
{
"@id": "http://id.loc.gov/vocabulary/carriers/sd",
"@type": "bibframe:Carrier",
"rdfs:label": "audio disc"
},
{
"@id": "ProvisionActivityDate",
"bibframe:date": {
"@value": "1971",
"@type": "xsd:date"
},
"@type": "bibframe:ProvisionActivity"
},
{
"@id": "ProvisionActivity1",
"bibframe:agent": {
"@id": "TV Music Co."
},
"@type": "bibframe:ProvisionActivity"
},
{
"@id": "ProvisionActivity2",
"bibframe:agent": {
"@id": "Columbia Records"
},
"@type": "bibframe:ProvisionActivity"
},
{
"@id": "ProvisionActivity3",
"bibframe:agent": {
"@id": "TV Music Co."
},
"@type": "bibframe:ProvisionActivity"
},
{
"@id": "TV Music Co.",
"@type": "bibframe:Agent",
"bibframe:role": [
{
"@id": "PA_Role1"
},
{
"@id": "PA_Role3"
}
]
},
{
"@id": "Columbia Records",
"@type": "bibframe:Agent",
"bibframe:role": {
"@id": "PA_Role2"
}
},
{
"@id": "PA_Role1",
"@type": "bibframe:Role",
"rdfs:label": "Label"
},
{
"@id": "PA_Role2",
"@type": "bibframe:Role",
"rdfs:label": "Licensed From"
},
{
"@id": "PA_Role3",
"@type": "bibframe:Role",
"rdfs:label": "Published By"
},
{
"@id": "IdentifierPrimary",
"@type": "bibframe:Identifier",
"rdf:value": {
"@value": "7141302",
"@type": "xsd:integer"
}
},
{
"@id": "Identifier1",
"@type": "bibframe:Identifier",
"rdfs:label": "ASCAP"
},
{
"@id": "Identifier2",
"@type": "bibframe:Identifier",
"rdfs:label": "ZSP-3842-A"
},
{
"@id": "Identifier3",
"@type": "bibframe:Identifier",
"rdfs:label": "ZSP-3842-B"
},
{
"@id": "PlayingSpeed1",
"@type": "bibframe:PlayingSpeed",
"rdfs:label": "45 RPM"
},
{
"@id": "http://id.loc.gov/vocabulary/mplayback/ste",
"@type": "bibframe:PlaybackChannel",
"rdfs:label": "stereo"
},
{
"@id": "http://id.loc.gov/vocabulary/mplayback/mon",
"@type": "bibframe:PlaybackChannel",
"rdfs:label": "mono"
},
{
"@id": "Work2",
"bibframe:duration": "2:42",
"@type": "bibframe:Work",
"bibframe:title": {
"@id": "Work2Title"
}
},
{
"@id": "Work2Title",
"@type": "bibframe:Title",
"rdfs:label": "I Guess I'll Have To Dream The Rest"
},
{
"@id": "Work3",
"bibframe:duration": "2:42",
"@type": "bibframe:Work",
"bibframe:title": {
"@id": "Work3Title"
}
},
{
"@id": "Work3Title",
"@type": "bibframe:Title",
"rdfs:label": "I Guess I'll Have To Dream The Rest"
}
]
}
@prefix ns0: <bf2:> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix ns1: <http://id.loc.gov/ontologies/bibframe/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
<http://njh.me/Work1>
a <http://id.loc.gov/ontologies/bibframe/Work> ;
ns0:mainTitle "I Guess I'll Have To Dream The Rest"^^xsd:string ;
ns1:contribution <http://njh.me/PrimaryContribution1> ;
ns1:genreForm <http://id.loc.gov/authorities/genreForms/gf2014027009> ;
ns1:hasInstance <http://njh.me/Instance1> ;
ns1:hasPart <http://njh.me/Work2>, <http://njh.me/Work3> .
<http://njh.me/PrimaryContribution1>
a <http://id.loc.gov/ontologies/bflc/PrimaryContribution> ;
ns1:agent <http://njh.me/Frank Sinatra> .
<http://id.loc.gov/authorities/genreForms/gf2014027009>
a ns1:GenreForm ;
rdfs:label "Popular music"^^xsd:string .
<http://njh.me/Instance1>
a ns1:Instance ;
ns0:mainTitle "I Guess I'll Have To Dream The Rest"^^xsd:string ;
ns1:baseMaterial <http://vocab.getty.edu/aat/300014502> ;
ns1:carrier <http://id.loc.gov/vocabulary/carriers/sd> ;
ns1:dimensions <http://njh.me/7 inches> ;
ns1:editionStatement "Promo"^^xsd:string ;
ns1:identifiedBy <http://njh.me/IdentifierPrimary>, <http://njh.me/Identifier1>, <http://njh.me/Identifier2>, <http://njh.me/Identifier3> ;
ns1:provisionActivity <http://njh.me/ProvisionActivityDate>, <http://njh.me/ProvisionActivity1>, <http://njh.me/ProvisionActivity2>, <http://njh.me/ProvisionActivity3> ;
ns1:soundCharacteristic <http://njh.me/PlayingSpeed1>, <http://id.loc.gov/vocabulary/mplayback/ste>, <http://id.loc.gov/vocabulary/mplayback/mon> .
<http://njh.me/Work2>
a ns1:Work ;
ns1:duration "2:42"^^xsd:string ;
ns1:title <http://njh.me/Work2Title> .
<http://njh.me/Work3>
a ns1:Work ;
ns1:duration "2:42"^^xsd:string ;
ns1:title <http://njh.me/Work3Title> .
<http://vocab.getty.edu/aat/300014502>
a ns1:BaseMaterial ;
rdfs:label "Vinyl"^^xsd:string .
<http://id.loc.gov/vocabulary/carriers/sd>
a ns1:Carrier ;
rdfs:label "audio disc"^^xsd:string .
<http://njh.me/IdentifierPrimary>
a ns1:Identifier ;
rdf:value 7141302 .
<http://njh.me/Identifier1>
a ns1:Identifier ;
rdfs:label "ASCAP"^^xsd:string .
<http://njh.me/Identifier2>
a ns1:Identifier ;
rdfs:label "ZSP-3842-A"^^xsd:string .
<http://njh.me/Identifier3>
a ns1:Identifier ;
rdfs:label "ZSP-3842-B"^^xsd:string .
<http://njh.me/ProvisionActivityDate>
a ns1:ProvisionActivity ;
ns1:date "1971"^^xsd:date .
<http://njh.me/ProvisionActivity1>
a ns1:ProvisionActivity ;
ns1:agent <http://njh.me/TV Music Co.> .
<http://njh.me/ProvisionActivity2>
a ns1:ProvisionActivity ;
ns1:agent <http://njh.me/Columbia Records> .
<http://njh.me/ProvisionActivity3>
a ns1:ProvisionActivity ;
ns1:agent <http://njh.me/TV Music Co.> .
<http://njh.me/PlayingSpeed1>
a ns1:PlayingSpeed ;
rdfs:label "45 RPM"^^xsd:string .
<http://id.loc.gov/vocabulary/mplayback/ste>
a ns1:PlaybackChannel ;
rdfs:label "stereo"^^xsd:string .
<http://id.loc.gov/vocabulary/mplayback/mon>
a ns1:PlaybackChannel ;
rdfs:label "mono"^^xsd:string .
<http://njh.me/TV Music Co.>
a ns1:Agent ;
ns1:role <http://njh.me/PA_Role1>, <http://njh.me/PA_Role3> .
<http://njh.me/Columbia Records>
a ns1:Agent ;
ns1:role <http://njh.me/PA_Role2> .
<http://njh.me/PA_Role1>
a ns1:Role ;
rdfs:label "Label"^^xsd:string .
<http://njh.me/PA_Role3>
a ns1:Role ;
rdfs:label "Published By"^^xsd:string .
<http://njh.me/PA_Role2>
a ns1:Role ;
rdfs:label "Licensed From"^^xsd:string .
<http://njh.me/Work2Title>
a ns1:Title ;
rdfs:label "I Guess I'll Have To Dream The Rest"^^xsd:string .
<http://njh.me/Work3Title>
a ns1:Title ;
rdfs:label "I Guess I'll Have To Dream The Rest"^^xsd:string .
{
"@context": {
"bibframe": "http://id.loc.gov/ontologies/bibframe/",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"xsd": "http://www.w3.org/2001/XMLSchema#"
},
"@graph": [
{
"@id": "Work1",
"@type": "bibframe:Work",
"bf2:mainTitle": "Sorry / Why Remind Me",
"bibframe:genreForm": [
{
"@id": "http://id.loc.gov/authorities/genreForms/gf2014026879"
},
{
"@id": "http://id.loc.gov/authorities/genreForms/gf2014027009"
}
],
"bibframe:contribution": [
{
"@id": "PrimaryContribution1"
},
{
"@id": "PrimaryContribution2"
}
],
"bibframe:hasInstance": {
"@id": "Instance1"
},
"bibframe:hasPart": [
{
"@id": "Work2"
},
{
"@id": "Work3"
}
]
},
{
"@id": "http://id.loc.gov/authorities/genreForms/gf2014026879",
"rdfs:label": "Jazz",
"@type": "bibframe:GenreForm"
},
{
"@id": "http://id.loc.gov/authorities/genreForms/gf2014027009",
"rdfs:label": "Popular music",
"@type": "bibframe:GenreForm"
},
{
"@id": "PrimaryContribution1",
"@type": "http://id.loc.gov/ontologies/bflc/PrimaryContribution",
"bibframe:agent": {
"@id": "Frank Sinatra"
}
},
{
"@id": "PrimaryContribution2",
"@type": "http://id.loc.gov/ontologies/bflc/PrimaryContribution",
"bibframe:agent": {
"@id": "The Modernaires"
}
},
{
"@id": "Instance1",
"@type": "bibframe:Instance",
"bf2:mainTitle": "Sorry / Why Remind Me",
"bibframe:dimensions": {
"@id": "7 inches"
},
"bibframe:baseMaterial": {
"@id": "http://vocab.getty.edu/aat/300014502"
},
"bibframe:carrier": {
"@id": "http://id.loc.gov/vocabulary/carriers/sd"
},
"bibframe:provisionActivity": [
{
"@id": "ProvisionActivityDate"
},
{
"@id": "ProvisionActivity1"
}
],
"bibframe:identifiedBy": [
{
"@id": "IdentifierPrimary"
},
{
"@id": "Identifier1"
},
{
"@id": "Identifier2"
}
],
"bibframe:soundCharacteristic": {
"@id": "PlayingSpeed1"
}
},
{
"@id": "http://vocab.getty.edu/aat/300014502",
"rdfs:label": "Vinyl",
"@type": "bibframe:BaseMaterial"
},
{
"@id": "http://id.loc.gov/vocabulary/carriers/sd",
"rdfs:label": "audio disc",
"@type": "bibframe:Carrier"
},
{
"@id": "ProvisionActivityDate",
"@type": "bibframe:ProvisionActivity",
"bibframe:date": {
"@value": "1950",
"@type": "xsd:date"
}
},
{
"@id": "ProvisionActivity1",
"@type": "bibframe:ProvisionActivity",
"bibframe:agent": {
"@id": "Columbia"
}
},
{
"@id": "Columbia",
"@type": "bibframe:Agent",
"bibframe:role": {
"@id": "PA_Role1"
}
},
{
"@id": "PA_Role1",
"rdfs:label": "Label",
"@type": "bibframe:Role"
},
{
"@id": "IdentifierPrimary",
"@type": "bibframe:Identifier",
"rdf:value": {
"@value": "11620608",
"@type": "xsd:integer"
}
},
{
"@id": "Identifier1",
"rdfs:label": "ZLP 1892 1A",
"@type": "bibframe:Identifier"
},
{
"@id": "Identifier2",
"rdfs:label": "ZLP 1893 10",
"@type": "bibframe:Identifier"
},
{
"@id": "PlayingSpeed1",
"rdfs:label": "33 1/3 RPM",
"@type": "bibframe:PlayingSpeed"
},
{
"@id": "Work2",
"@type": "bibframe:Work",
"bibframe:title": {
"@id": "Work2Title"
},
"bibframe:contribution": [
{
"@id": "Work2Contribution1"
},
{
"@id": "Work2Contribution2"
}
]
},
{
"@id": "Work2Title",
"rdfs:label": "Sorry",
"@type": "bibframe:Title"
},
{
"@id": "Work2Contribution1",
"@type": "bibframe:Contribution",
"bibframe:agent": {
"@id": "Buddy Pepper"
}
},
{
"@id": "Work2Contribution2",
"@type": "bibframe:Contribution",
"bibframe:agent": {
"@id": "Richard Whiting"
}
},
{
"@id": "Buddy Pepper",
"@type": "bibframe:Agent",
"bibframe:role": {
"@id": "Contrbutor_Role1"
}
},
{
"@id": "Richard Whiting",
"@type": "bibframe:Agent",
"bibframe:role": {
"@id": "Contrbutor_Role2"
}
},
{
"@id": "Work3",
"@type": "bibframe:Work",
"bibframe:title": {
"@id": "Work3Title"
},
"bibframe:contribution": [
{
"@id": "Work3Contribution1"
},
{
"@id": "Work3Contribution2"
}
]
},
{
"@id": "Work3Title",
"rdfs:label": "Why Remind Me",
"@type": "bibframe:Title"
},
{
"@id": "Work3Contribution1",
"@type": "bibframe:Contribution",
"bibframe:agent": {
"@id": "Doris Tauber"
}
},
{
"@id": "Work3Contribution2",
"@type": "bibframe:Contribution",
"bibframe:agent": {
"@id": "Sis Willner"
}
},
{
"@id": "Doris Tauber",
"@type": "bibframe:Agent",
"bibframe:role": {
"@id": "Contrbutor_Role1"
}
},
{
"@id": "Contrbutor_Role1",
"rdfs:label": "Written-By",
"@type": "bibframe:Role"
},
{
"@id": "Sis Willner",
"@type": "bibframe:Agent",
"bibframe:role": {
"@id": "Contrbutor_Role2"
}
},
{
"@id": "Contrbutor_Role2",
"rdfs:label": "Written-By",
"@type": "bibframe:Role"
}
]
}
@prefix ns0: <bf2:> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix ns1: <http://id.loc.gov/ontologies/bibframe/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
<http://njh.me/Work1>
a <http://id.loc.gov/ontologies/bibframe/Work> ;
ns0:mainTitle "Sorry / Why Remind Me"^^xsd:string ;
ns1:contribution <http://njh.me/PrimaryContribution1>, <http://njh.me/PrimaryContribution2> ;
ns1:genreForm <http://id.loc.gov/authorities/genreForms/gf2014026879>, <http://id.loc.gov/authorities/genreForms/gf2014027009> ;
ns1:hasInstance <http://njh.me/Instance1> ;
ns1:hasPart <http://njh.me/Work2>, <http://njh.me/Work3> .
<http://njh.me/PrimaryContribution1>
a <http://id.loc.gov/ontologies/bflc/PrimaryContribution> ;
ns1:agent <http://njh.me/Frank Sinatra> .
<http://njh.me/PrimaryContribution2>
a <http://id.loc.gov/ontologies/bflc/PrimaryContribution> ;
ns1:agent <http://njh.me/The Modernaires> .
<http://id.loc.gov/authorities/genreForms/gf2014026879>
a ns1:GenreForm ;
rdfs:label "Jazz"^^xsd:string .
<http://id.loc.gov/authorities/genreForms/gf2014027009>
a ns1:GenreForm ;
rdfs:label "Popular music"^^xsd:string .
<http://njh.me/Instance1>
a ns1:Instance ;
ns0:mainTitle "Sorry / Why Remind Me"^^xsd:string ;
ns1:baseMaterial <http://vocab.getty.edu/aat/300014502> ;
ns1:carrier <http://id.loc.gov/vocabulary/carriers/sd> ;
ns1:dimensions <http://njh.me/7 inches> ;
ns1:identifiedBy <http://njh.me/IdentifierPrimary>, <http://njh.me/Identifier1>, <http://njh.me/Identifier2> ;
ns1:provisionActivity <http://njh.me/ProvisionActivityDate>, <http://njh.me/ProvisionActivity1> ;
ns1:soundCharacteristic <http://njh.me/PlayingSpeed1> .
<http://njh.me/Work2>
a ns1:Work ;
ns1:contribution <http://njh.me/Work2Contribution1>, <http://njh.me/Work2Contribution2> ;
ns1:title <http://njh.me/Work2Title> .
<http://njh.me/Work3>
a ns1:Work ;
ns1:contribution <http://njh.me/Work3Contribution1>, <http://njh.me/Work3Contribution2> ;
ns1:title <http://njh.me/Work3Title> .
<http://vocab.getty.edu/aat/300014502>
a ns1:BaseMaterial ;
rdfs:label "Vinyl"^^xsd:string .
<http://id.loc.gov/vocabulary/carriers/sd>
a ns1:Carrier ;
rdfs:label "audio disc"^^xsd:string .
<http://njh.me/IdentifierPrimary>
a ns1:Identifier ;
rdf:value 11620608 .
<http://njh.me/Identifier1>
a ns1:Identifier ;
rdfs:label "ZLP 1892 1A"^^xsd:string .
<http://njh.me/Identifier2>
a ns1:Identifier ;
rdfs:label "ZLP 1893 10"^^xsd:string .
<http://njh.me/ProvisionActivityDate>
a ns1:ProvisionActivity ;
ns1:date "1950"^^xsd:date .
<http://njh.me/ProvisionActivity1>
a ns1:ProvisionActivity ;
ns1:agent <http://njh.me/Columbia> .
<http://njh.me/PlayingSpeed1>
a ns1:PlayingSpeed ;
rdfs:label "33 1/3 RPM"^^xsd:string .
<http://njh.me/Columbia>
a ns1:Agent ;
ns1:role <http://njh.me/PA_Role1> .
<http://njh.me/PA_Role1>
a ns1:Role ;
rdfs:label "Label"^^xsd:string .
<http://njh.me/Work2Contribution1>
a ns1:Contribution ;
ns1:agent <http://njh.me/Buddy Pepper> .
<http://njh.me/Work2Contribution2>
a ns1:Contribution ;
ns1:agent <http://njh.me/Richard Whiting> .
<http://njh.me/Work2Title>
a ns1:Title ;
rdfs:label "Sorry"^^xsd:string .
<http://njh.me/Buddy Pepper>
a ns1:Agent ;
ns1:role <http://njh.me/Contrbutor_Role1> .
<http://njh.me/Richard Whiting>
a ns1:Agent ;
ns1:role <http://njh.me/Contrbutor_Role2> .
<http://njh.me/Contrbutor_Role1>
a ns1:Role ;
rdfs:label "Written-By"^^xsd:string .
<http://njh.me/Contrbutor_Role2>
a ns1:Role ;
rdfs:label "Written-By"^^xsd:string .
<http://njh.me/Work3Contribution1>
a ns1:Contribution ;
ns1:agent <http://njh.me/Doris Tauber> .
<http://njh.me/Work3Contribution2>
a ns1:Contribution ;
ns1:agent <http://njh.me/Sis Willner> .
<http://njh.me/Work3Title>
a ns1:Title ;
rdfs:label "Why Remind Me"^^xsd:string .
<http://njh.me/Doris Tauber>
a ns1:Agent ;
ns1:role <http://njh.me/Contrbutor_Role1> .
<http://njh.me/Sis Willner>
a ns1:Agent ;
ns1:role <http://njh.me/Contrbutor_Role2> .