Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Nos Hs2023
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Språksamlingane
stadnamn
Nos Hs2023
Commits
beb8e4a6
Commit
beb8e4a6
authored
5 years ago
by
esikkala
Browse files
Options
Downloads
Patches
Plain Diff
Events: ignore pref labels for now
parent
1dddd87b
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/client/reducers/events.js
+6
-5
6 additions, 5 deletions
src/client/reducers/events.js
src/server/sparql/FacetConfigs.js
+4
-4
4 additions, 4 deletions
src/server/sparql/FacetConfigs.js
src/server/sparql/SparqlQueriesEvents.js
+7
-5
7 additions, 5 deletions
src/server/sparql/SparqlQueriesEvents.js
with
17 additions
and
14 deletions
src/client/reducers/events.js
+
6
−
5
View file @
beb8e4a6
...
...
@@ -32,19 +32,20 @@ export const INITIAL_STATE = {
instance
:
{},
page
:
-
1
,
pagesize
:
15
,
sortBy
:
'
p
refLabel
'
,
sortBy
:
'
p
lace
'
,
sortDirection
:
'
asc
'
,
fetching
:
false
,
fetchingResultCount
:
false
,
tableColumns
:
[
{
id
:
'
prefLabel
'
,
label
:
'
Label
'
,
desc
:
'
Label
description
'
,
id
:
'
type
'
,
label
:
'
Type
'
,
desc
:
'
Type
description
'
,
valueType
:
'
object
'
,
makeLink
:
true
,
sortValues
:
false
,
numberedList
:
false
numberedList
:
false
,
minWidth
:
200
,
},
{
id
:
'
timespan
'
,
...
...
This diff is collapsed.
Click to expand it.
src/server/sparql/FacetConfigs.js
+
4
−
4
View file @
beb8e4a6
...
...
@@ -107,6 +107,10 @@ export const facetConfigs = {
type
:
'
text
'
,
textQueryProperty
:
'
skos:prefLabel
'
},
// for sorting
type
:
{
labelPath
:
'
a/(skos:prefLabel|rdfs:label)
'
,
},
place
:
{
id
:
'
place
'
,
facetValueFilter
:
`
...
...
@@ -119,10 +123,6 @@ export const facetConfigs = {
parentPredicate
:
'
crm:P7_took_place_at/gvp:broaderPreferred+
'
,
type
:
'
hierarchical
'
,
},
// for sorting facet results
prefLabel
:
{
labelPath
:
'
skos:prefLabel
'
,
},
},
people
:
{
rdfType
:
'
mmm-schema:Person
'
,
...
...
This diff is collapsed.
Click to expand it.
src/server/sparql/SparqlQueriesEvents.js
+
7
−
5
View file @
beb8e4a6
export
const
eventProperties
=
`
{
?id
skos:prefLabel ?prefLabel
__id .
BIND(?prefLabel__id AS ?prefLabel
__prefLabel
)
BIND(?id AS ?
prefLabel
__dataProviderUrl)
?id
a ?type
__id .
?type__id skos:prefLabel|rdfs:label ?type
__prefLabel
.
BIND(?id AS ?
type
__dataProviderUrl)
}
UNION {
UNION
{
?id crm:P7_took_place_at ?place__id .
?place__id skos:prefLabel ?place__prefLabel .
?place__id owl:sameAs ?place__dataProviderUrl .
}
UNION {
UNION
{
?id crm:P4_has_time-span ?timespan__id .
BIND(?timespan__id AS ?timespan__prefLabel)
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment