The new search result format is going to be roughly like this, with each hit representing a publication:
{
...properties on publication...
work: {
...properties on work...
}
otherPublications: {
...properties on other publications on the same work...
}
}
Other notable changes:
- Most, if not all, properties will be given by their label, and not their URI:
- http://data.deichman.no/role#author => forfatter
- http://data.deichman.no/mediaType#Book => Bok
- http://lexvo.org/id/iso639-3/som => Somali
- etc..
- Properties which can have multiple values will always be in an array
- Some keys will change name to make more sense, in which case we will provide a mapping from old to new, for example:
- availableBranches => availableInBranch
- isbn => isbns
- subject => subjects
- etc
Example:
{
id: "p1234",
uri: "http://data.deichman.no/publication/p1234",
title: "Døveleksikon for Oslo og omegn",
mediaType: "Bok",
languages: ["Norsk (bokmål)"],
publicationYear: "2018",
availableInBranch: ["hutl","fgry"],
ownedByBranch: ["hutl","fgry","fmaj"],
sellingPoint: "Illustrert utgave",
agents: {
illustrator: ["Hansen, Hans"]
},
work: {
id: "w1234",
uri: "http://data.deichman.no/work/w1234",
publicationYear: "2018",
mainEntry: "Ramvik, Beryl K.",
agents: {
authors: ["Ramvik, Beryl K."]
},
subjects: ["Oslo Døveforening"],
genres: ["Kriminal"],
literaryForms: ["Roman"],
fiction: true,
nonFiction: false
},
otherPublications: {
languages: ["Somali", "French"]
}
}