Skip to content
Snippets Groups Projects
Commit a1fb2d90 authored by esikkala's avatar esikkala
Browse files

Update Hellerau properties

parent 18234f16
No related branches found
No related tags found
No related merge requests found
...@@ -8,9 +8,9 @@ export const INITIAL_STATE = { ...@@ -8,9 +8,9 @@ export const INITIAL_STATE = {
paginatedResultsSparqlQuery: null, paginatedResultsSparqlQuery: null,
resultCount: 0, resultCount: 0,
page: -1, page: -1,
pagesize: 10, pagesize: 25,
sortBy: null, sortBy: 'prefLabel',
sortDirection: null, sortDirection: 'asc',
fetching: false, fetching: false,
fetchingResultCount: false, fetchingResultCount: false,
facetedSearchHeaderExpanded: false, facetedSearchHeaderExpanded: false,
...@@ -32,8 +32,26 @@ export const INITIAL_STATE = { ...@@ -32,8 +32,26 @@ export const INITIAL_STATE = {
}, },
{ {
id: 'prefLabel', id: 'prefLabel',
valueType: 'object', valueType: 'string',
makeLink: true, makeLink: false,
externalLink: false,
sortValues: true,
numberedList: false,
minWidth: 250
},
{
id: 'home1930',
valueType: 'string',
makeLink: false,
externalLink: false,
sortValues: true,
numberedList: false,
minWidth: 250
},
{
id: 'home1937',
valueType: 'string',
makeLink: false,
externalLink: false, externalLink: false,
sortValues: true, sortValues: true,
numberedList: false, numberedList: false,
......
...@@ -1963,96 +1963,40 @@ export default { ...@@ -1963,96 +1963,40 @@ export default {
</li> </li>
</ul> </ul>
`, `,
instancePage: { // instancePage: {
label: 'Place', // label: 'Place',
description: ` // description: `
<p class="MuiTypography-root MuiTypography-body1 MuiTypography-paragraph"> // <p class="MuiTypography-root MuiTypography-body1 MuiTypography-paragraph">
Events refer to various activities related to Manuscripts and Actors. Event // Events refer to various activities related to Manuscripts and Actors. Event
types include Production, Transfer of Custody, and Activity events. // types include Production, Transfer of Custody, and Activity events.
Production events refer to the production of the physical manuscript. // Production events refer to the production of the physical manuscript.
Transfer of Custody events indicate a change of ownership that involved // Transfer of Custody events indicate a change of ownership that involved
a transaction of some kind, usually through an auction house or bookseller. // a transaction of some kind, usually through an auction house or bookseller.
The generic Activity event type covers all other types of events. // The generic Activity event type covers all other types of events.
</p> // </p>
` // `
}, // },
properties: { properties: {
uri: { uri: {
label: 'URI', label: 'URI',
description: 'Uniform Resource Identifier' description: 'Uniform Resource Identifier'
}, },
type: {
label: 'Type',
description: `
Distinguish between “Transfer of Custody”, “Production”, and other
types of “Activity” events.
`
},
prefLabel: { prefLabel: {
label: 'Label', label: 'Name',
description: ` description: `
Preferable place label. Preferable place label.
` `
}, },
country: { home1930: {
label: 'Country', label: 'Hometown 1930',
description: ` description: `
Related country. Hometown 1930 description.
` `
}, },
broader: { home1937: {
label: 'Parent place', label: 'Hometown 1937',
description: `
Parent place, e.g. a municipality, county or country.
`
},
narrower: {
label: 'Places within',
description: `
Smaller places, e.g. towns and villages contained within the place.
`
},
place: {
label: 'Place',
description: ` description: `
The specific place(s) associated with the event. Hometown 1937 description.
`
},
placeType: {
label: 'Place type',
description: `
The type of the specific place(s) associated with the event.
`
},
note: {
label: 'Note',
description: `
Note
`
},
surrender: {
label: 'Custody surrendered by',
description: `
Custody surrendered by
`
},
receiver: {
label: 'Custody received by',
description: `
Custody received by
`
},
observedOwner: {
label: 'Observed owner',
description: `
Observed owner
`
},
source: {
label: 'Source',
description: `
The source database (Schoenberg, Bibale, and Bodleian) that provided
the information about the event.
` `
} }
} }
......
...@@ -6,8 +6,8 @@ import { prefixes } from '../sparql_queries/SparqlQueriesPrefixes' ...@@ -6,8 +6,8 @@ import { prefixes } from '../sparql_queries/SparqlQueriesPrefixes'
export const hellerauConfig = { export const hellerauConfig = {
endpoint: { endpoint: {
// url: 'https://ldf.fi/sualt-fha-finds/sparql', url: 'https://ldf.fi/hellerau/sparql',
url: 'http://localhost:3037/ds/sparql', // url: 'http://localhost:3037/ds/sparql',
prefixes, prefixes,
useAuth: false useAuth: false
}, },
...@@ -26,6 +26,12 @@ export const hellerauConfig = { ...@@ -26,6 +26,12 @@ export const hellerauConfig = {
textQueryPredicate: '', // empty for querying the facetClass textQueryPredicate: '', // empty for querying the facetClass
textQueryProperty: '', textQueryProperty: '',
type: 'text' type: 'text'
},
home1930: {
labelPath: 'h-schema:home_1930/gn:name'
},
home1937: {
labelPath: 'h-schema:home_1937/gn:name'
} }
} }
} }
...@@ -2,9 +2,17 @@ const perspectiveID = 'hellerau' ...@@ -2,9 +2,17 @@ const perspectiveID = 'hellerau'
export const personPropertiesFacetResults = export const personPropertiesFacetResults =
` { ` {
?id skos:prefLabel ?prefLabel__id . ?id skos:prefLabel ?prefLabel .
BIND (?prefLabel__id as ?prefLabel__prefLabel) # BIND (?prefLabel__id as ?prefLabel__prefLabel)
BIND(CONCAT("/${perspectiveID}/page/", REPLACE(STR(?id), "^.*\\\\/(.+)", "$1")) AS ?prefLabel__dataProviderUrl) # BIND(CONCAT("/${perspectiveID}/page/", REPLACE(STR(?id), "^.*\\\\/(.+)", "$1")) AS ?prefLabel__dataProviderUrl)
}
UNION
{
?id h-schema:home_1930/gn:name ?home1930 .
}
UNION
{
?id h-schema:home_1937/gn:name ?home1937 .
} }
` `
......
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