Skip to content
Snippets Groups Projects
Commit 155c1940 authored by Esko Ikkala's avatar Esko Ikkala
Browse files

Add sdbmId

parent 00eae523
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ module.exports = {
WHERE {
?id a frbroo:F4_Manifestation_Singleton .
?id skos:prefLabel ?prefLabel_ .
?id crm:P1_is_identified_by ?sdbmId .
OPTIONAL { ?id crm:P45_consists_of ?material_ . }
?expression_creation frbroo:R18_created ?id .
OPTIONAL {
......@@ -47,6 +47,9 @@ module.exports = {
?id crm:P128_carries ?expression .
?expression crm:P72_has_language ?language_ .
}
OPTIONAL {
?id mmm-schema:manuscript_record ?sdbmId .
}
}
GROUP BY ?id ?sdbmId
`,
......
......@@ -50,6 +50,7 @@ export const mapManuscripts = (sparqlBindings) => {
const results = sparqlBindings.map(b => {
return {
id: b.id.value,
sdbmId: _.has(b, 'sdbmId',) ? b.sdbmId.value : 'Undefined',
prefLabel: b.prefLabel.value.split(','),
author: _.has(b, 'author',) ? b.author.value.split('|') : 'Undefined',
timespan: _.has(b, 'timespan',) ? b.timespan.value.split('|') : 'Undefined',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment