Commit d9990d00 authored by Magnus Westergaard's avatar Magnus Westergaard
Browse files

DEICH-5810: Index and display composition type specification.

parent c2b165af
......@@ -184,9 +184,8 @@ export default {
compositionTypes: {
label: "Komposisjonstype",
shape: "LinkList",
valueKey: "prefLabel",
searchQuery: "komposisjonstype",
searchValue: "linkField"
transformation: (compTypes = []) => compTypes.map(fullName)
},
genres: {
label: "Sjanger",
......
......@@ -32,7 +32,6 @@ deich:CompositionTypeShape
sh:path deich:alternativeName ;
sh:severity sh:Violation ;
] ;
# Ingen forekomster av dette feltet i dataene.
sh:property [
sh:datatype xsd:string ;
sh:maxCount 1 ;
......@@ -47,13 +46,6 @@ deich:CompositionTypeShape
sh:path deich:created ;
sh:severity sh:Violation ;
] ;
# sh:property [
# sh:datatype xsd:string ;
# sh:maxCount 1 ;
# sh:name "Opprettet av"@no, "Created by"@en ;
# sh:path deich:createdBy ;
# sh:severity sh:Violation ;
# ] ;
sh:property [
sh:class persons:Editor ;
sh:maxCount 1 ;
......@@ -61,13 +53,6 @@ deich:CompositionTypeShape
sh:path deich:createdBy ;
sh:severity sh:Violation ;
] ;
# sh:property [
# sh:datatype xsd:string ;
# sh:maxCount 1 ;
# sh:name "Oppdatert av"@no, "Modified by"@en ;
# sh:path deich:modifiedBy ;
# sh:severity sh:Violation ;
# ] ;
sh:property [
sh:class persons:Editor ;
sh:maxCount 1 ;
......
......@@ -63,13 +63,6 @@ deich:CorporationShape
sh:path deich:nationality ;
sh:severity sh:Violation ;
] ;
# sh:property [
# sh:datatype xsd:string ;
# sh:maxCount 1 ;
# sh:name "Opprettet av"@no, "Created by"@en ;
# sh:path deich:createdBy ;
# sh:severity sh:Violation ;
# ] ;
sh:property [
sh:class persons:Editor ;
sh:maxCount 1 ;
......@@ -77,13 +70,6 @@ deich:CorporationShape
sh:path deich:createdBy ;
sh:severity sh:Violation ;
] ;
# sh:property [
# sh:datatype xsd:string ;
# sh:maxCount 1 ;
# sh:name "Oppdatert av"@no, "Modified by"@en ;
# sh:path deich:modifiedBy ;
# sh:severity sh:Violation ;
# ] ;
sh:property [
sh:class persons:Editor ;
sh:maxCount 1 ;
......
......@@ -72,13 +72,6 @@ deich:EventShape
sh:path deich:created ;
sh:severity sh:Violation ;
] ;
# sh:property [
# sh:datatype xsd:string ;
# sh:maxCount 1 ;
# sh:name "Opprettet av"@no, "Created by"@en ;
# sh:path deich:createdBy ;
# sh:severity sh:Violation ;
# ] ;
sh:property [
sh:class persons:Editor ;
sh:maxCount 1 ;
......@@ -86,13 +79,6 @@ deich:EventShape
sh:path deich:createdBy ;
sh:severity sh:Violation ;
] ;
# sh:property [
# sh:datatype xsd:string ;
# sh:maxCount 1 ;
# sh:name "Oppdatert av"@no, "Modified by"@en ;
# sh:path deich:modifiedBy ;
# sh:severity sh:Violation ;
# ] ;
sh:property [
sh:class persons:Editor ;
sh:maxCount 1 ;
......
......@@ -52,13 +52,6 @@ deich:GenreShape
sh:path deich:specification ;
sh:severity sh:Violation ;
] ;
# sh:property [
# sh:datatype xsd:string ;
# sh:maxCount 1 ;
# sh:name "Opprettet av"@no, "Created by"@en ;
# sh:path deich:createdBy ;
# sh:severity sh:Violation ;
# ] ;
sh:property [
sh:class persons:Editor ;
sh:maxCount 1 ;
......@@ -66,13 +59,6 @@ deich:GenreShape
sh:path deich:createdBy ;
sh:severity sh:Violation ;
] ;
# sh:property [
# sh:datatype xsd:string ;
# sh:maxCount 1 ;
# sh:name "Oppdatert av"@no, "Modified by"@en ;
# sh:path deich:modifiedBy ;
# sh:severity sh:Violation ;
# ] ;
sh:property [
sh:class persons:Editor ;
sh:maxCount 1 ;
......
......@@ -45,13 +45,6 @@ deich:InstrumentShape
sh:path deich:created ;
sh:severity sh:Violation ;
] ;
# sh:property [
# sh:datatype xsd:string ;
# sh:maxCount 1 ;
# sh:name "Opprettet av"@no, "Created by"@en ;
# sh:path deich:createdBy ;
# sh:severity sh:Violation ;
# ] ;
sh:property [
sh:class persons:Editor ;
sh:maxCount 1 ;
......@@ -59,13 +52,6 @@ deich:InstrumentShape
sh:path deich:createdBy ;
sh:severity sh:Violation ;
] ;
# sh:property [
# sh:datatype xsd:string ;
# sh:maxCount 1 ;
# sh:name "Oppdatert av"@no, "Modified by"@en ;
# sh:path deich:modifiedBy ;
# sh:severity sh:Violation ;
# ] ;
sh:property [
sh:class persons:Editor ;
sh:maxCount 1 ;
......
......@@ -81,13 +81,6 @@ deich:PersonShape
sh:pattern "^[Mann|Kvinne|Ukjent]$" ;
sh:flags "i"
] ;
# sh:property [
# sh:datatype xsd:string ;
# sh:maxCount 1 ;
# sh:name "Opprettet av"@no, "Created by"@en ;
# sh:path deich:createdBy ;
# sh:severity sh:Violation ;
# ] ;
sh:property [
sh:class persons:Editor ;
sh:maxCount 1 ;
......@@ -95,13 +88,6 @@ deich:PersonShape
sh:path deich:createdBy ;
sh:severity sh:Violation ;
] ;
# sh:property [
# sh:datatype xsd:string ;
# sh:maxCount 1 ;
# sh:name "Oppdatert av"@no, "Modified by"@en ;
# sh:path deich:modifiedBy ;
# sh:severity sh:Violation ;
# ] ;
sh:property [
sh:class persons:Editor ;
sh:maxCount 1 ;
......
......@@ -44,13 +44,6 @@ deich:PlaceShape
sh:path deich:specification ;
sh:severity sh:Violation ;
] ;
# sh:property [
# sh:datatype xsd:string ;
# sh:maxCount 1 ;
# sh:name "Opprettet av"@no, "Created by"@en ;
# sh:path deich:createdBy ;
# sh:severity sh:Violation ;
# ] ;
sh:property [
sh:class persons:Editor ;
sh:maxCount 1 ;
......@@ -58,13 +51,6 @@ deich:PlaceShape
sh:path deich:createdBy ;
sh:severity sh:Violation ;
] ;
# sh:property [
# sh:datatype xsd:string ;
# sh:maxCount 1 ;
# sh:name "Oppdatert av"@no, "Modified by"@en ;
# sh:path deich:modifiedBy ;
# sh:severity sh:Violation ;
# ] ;
sh:property [
sh:class persons:Editor ;
sh:maxCount 1 ;
......
......@@ -83,13 +83,6 @@ deich:SerialShape
sh:maxCount 1 ;
sh:severity sh:Violation ;
] ;
# sh:property [
# sh:datatype xsd:string ;
# sh:maxCount 1 ;
# sh:name "Opprettet av"@no, "Created by"@en ;
# sh:path deich:createdBy ;
# sh:severity sh:Violation ;
# ] ;
sh:property [
sh:class persons:Editor ;
sh:maxCount 1 ;
......@@ -97,13 +90,6 @@ deich:SerialShape
sh:path deich:createdBy ;
sh:severity sh:Violation ;
] ;
# sh:property [
# sh:datatype xsd:string ;
# sh:maxCount 1 ;
# sh:name "Oppdatert av"@no, "Modified by"@en ;
# sh:path deich:modifiedBy ;
# sh:severity sh:Violation ;
# ] ;
sh:property [
sh:class persons:Editor ;
sh:maxCount 1 ;
......
......@@ -44,13 +44,6 @@ deich:SubjectShape
sh:path deich:created ;
sh:severity sh:Violation ;
] ;
# sh:property [
# sh:datatype xsd:string ;
# sh:maxCount 1 ;
# sh:name "Opprettet av"@no, "Created by"@en ;
# sh:path deich:createdBy ;
# sh:severity sh:Violation ;
# ] ;
sh:property [
sh:class persons:Editor ;
sh:maxCount 1 ;
......@@ -58,13 +51,6 @@ deich:SubjectShape
sh:path deich:createdBy ;
sh:severity sh:Violation ;
] ;
# sh:property [
# sh:datatype xsd:string ;
# sh:maxCount 1 ;
# sh:name "Oppdatert av"@no, "Modified by"@en ;
# sh:path deich:modifiedBy ;
# sh:severity sh:Violation ;
# ] ;
sh:property [
sh:class persons:Editor ;
sh:maxCount 1 ;
......
......@@ -145,13 +145,6 @@ deich:WorkSeriesShape
sh:path deich:modified ;
sh:severity sh:Violation ;
] ;
# sh:property [
# sh:datatype xsd:string ;
# sh:maxCount 1 ;
# sh:name "Opprettet av"@no, "Created by"@en ;
# sh:path deich:createdBy ;
# sh:severity sh:Violation ;
# ] ;
sh:property [
sh:class persons:Editor ;
sh:maxCount 1 ;
......@@ -159,13 +152,6 @@ deich:WorkSeriesShape
sh:path deich:createdBy ;
sh:severity sh:Violation ;
] ;
# sh:property [
# sh:datatype xsd:string ;
# sh:maxCount 1 ;
# sh:name "Oppdatert av"@no, "Modified by"@en ;
# sh:path deich:modifiedBy ;
# sh:severity sh:Violation ;
# ] ;
sh:property [
sh:class persons:Editor ;
sh:maxCount 1 ;
......
......@@ -6,7 +6,7 @@ CONSTRUCT {
?uri :uri ?pubUri ;
:audiences ?audience ;
:biography ?biography ;
:compositionTypes ?compositionTypeLabel ;
:compositionTypes ?compositionType ;
:contentAdaptations ?contentAdaptation ;
:countriesOfOrigin ?country ;
:deweyNumbers ?dewey ;
......@@ -118,9 +118,11 @@ CONSTRUCT {
BIND(IF(BOUND(?genreSpec), CONCAT(?genreLabel, " (", ?genreSpec, ")"), ?genreLabel) AS ?genre)
}
UNION {
?work deich:hasCompositionType ?compositionType .
?compositionType deich:prefLabel ?compositionTypeLabel .
OPTIONAL { ?compositionType deich:alternativeName ?compositionTypeAltName }
?work deich:hasCompositionType ?compositionTypeNode .
?compositionTypeNode deich:prefLabel ?compositionTypeLabel .
OPTIONAL { ?compositionTypeNode deich:specification ?compositionTypeSpec }
OPTIONAL { ?compositionTypeNode deich:alternativeName ?compositionTypeAltName }
BIND(IF(BOUND(?compositionTypeSpec), CONCAT(?compositionTypeLabel, " (", ?compositionTypeSpec, ")"), ?compositionTypeLabel) AS ?compositionType)
}
UNION { ?work deich:literaryForm/rdfs:label ?_literaryForm . FILTER(LANG(?_literaryForm) = "no") BIND(str(?_literaryForm) AS ?literaryForm)}
UNION { ?work deich:audience/rdfs:label ?_audience . FILTER(LANG(?_audience) = "no") BIND(str(?_audience) AS ?audience) }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment