Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
126 changes: 115 additions & 11 deletions source/vocab/display.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"@base": "https://id.kb.se/vocab/display",
"@vocab": "https://id.kb.se/vocab/",
"marc": "https://id.kb.se/marc/",
"librissearch": "https://id.kb.se/ns/librissearch/",
"lensGroups": {"@id": "@graph", "@container": "@index"},
"lenses": {"@reverse": "fresnel:group", "@container": "@index"},
"showProperties": {"@id": "fresnel:showProperties", "@container": "@list", "@type": "@vocab"},
Expand Down Expand Up @@ -785,7 +786,6 @@
"summary",
"immediateAcquisition",
"availability",
"shelfLabel",
{ "inverseOf": "itemUsed" },
{ "inverseOf": "hasComponent" }
]
Expand Down Expand Up @@ -1485,27 +1485,113 @@
"name",
"qualifier"
]
},
"Title": {
"@type": "fresnel:Lens",
"classLensDomain": "Title",
"showProperties": [
"mainTitle",
"title",
"subtitle",
"titleRemainder",
"partNumber",
"partName",
"hasPart",
{
"fresnel:property": "hasPart",
"fresnel:subLens": {
"showProperties": [
"partNumber",
"partName"
]
}
},
"marc:parallelTitle"
]
},
"ProvisionActivity": {
"@type": "fresnel:Lens",
"classLensDomain": "ProvisionActivity",
"fresnel:extends": {"@id": "ProvisionActivity-chips"},
"showProperties": [ "fresnel:super" ]
},
"Language": {
"@type": "fresnel:Lens",
"classLensDomain": "Language",
"fresnel:extends": {"@id": "Language-chips"},
"showProperties": [ "fresnel:super" ]
},
"Concept": {
"@type": "fresnel:Lens",
"classLensDomain": "Concept",
"showProperties": [
{"alternateProperties": ["prefLabel", "singularLabel", "label", "termComponentList", "code"]}
]
}
}
},
"search-chips": {
"@id": "search-chips",
"@type": "fresnel:Group",
"lenses": {
"Record": {
"fresnel:extends": {"@id": "Record-chips"},
"showProperties": [ "fresnel:super", "bibliography", "created" ]
},
"Item": {
"fresnel:extends": {"@id": "Item-chips"},
"showProperties": [
"fresnel:super",
"subject",
"summary",
"hasComponent",
"availability",
"physicalLocation",
"shelfLabel"
{
"fresnel:mergeProperties": [
"cataloguersNote",
"custodialHistory",
{
"@type": "fresnel:fslselector",
"@value": "summary/*/label"
},
{
"@type": "fresnel:fslselector",
"@value": "hasNote/*/label"
},
{
"@type": "fresnel:fslselector",
"@value": "marc:hasCopyAndVersionIdentificationNote/*/marc:itemCondition"
},
{
"@type": "fresnel:fslselector",
"@value": "marc:hasBindingInformation/*/label"
},
{
"@type": "fresnel:fslselector",
"@value": "marc:hasTextualHoldingsBasicBibliographicUnit/*/marc:cataloguersNote"
},
{
"@type": "fresnel:fslselector",
"@value": "marc:hasTextualHoldingsBasicBibliographicUnit/*/marc:publicNote"
}
],
"fresnel:use": "librissearch:itemNote"
},
{
"fresnel:mergeProperties": [
"shelfLabel",
"physicalLocation",
"shelfControlNumber",
{
"@type": "fresnel:fslselector",
"@value": "shelfMark/*/label"
},
{
"@type": "fresnel:fslselector",
"@value": "availability/*/label"
}
],
"fresnel:use": "librissearch:shelf"
},
{
"@type": "fresnel:fslselector",
"@value": "meta/*/created"
}
]
},
"Person": {
Expand Down Expand Up @@ -1551,6 +1637,20 @@
"classLensDomain": "ToCEntry",
"fresnel:extends": {"@id": "ToCEntry-chips"},
"showProperties": [ "fresnel:super", "responsibilityStatement" ]
},
"Publication": {
"classLensDomain": "Publication",
"fresnel:extends": {"@id": "Publication-chips"},
"showProperties": [
"fresnel:super",
{
"fresnel:mergeProperties": [
"year",
"startYear"
],
"fresnel:use": "librissearch:year"
}
]
}
}
},
Expand All @@ -1563,7 +1663,7 @@
"showProperties": [
"fresnel:super",
"appliedMaterial",
"basematerial",
"baseMaterial",
"bookFormat",
"colorContent",
"hasNote",
Expand All @@ -1577,7 +1677,11 @@
"summary",
"tableOfContents",
"videoCharacteristic",
"image"
"image",
{
"@type": "fresnel:fslselector",
"@value": "meta/*/bibliography"
}
]
},
"Item": {
Expand Down Expand Up @@ -2091,4 +2195,4 @@
}
}
}
}
}
81 changes: 55 additions & 26 deletions source/vocab/libris-search-experimental.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix ls: <https://id.kb.se/ns/librissearch/> .
@prefix marc: <https://id.kb.se/marc/> .

### Extended definitions for Libris Search ###
:identifier # See ./details.ttl for full definition of :identifier
Expand All @@ -29,11 +30,6 @@
skos:notation "FÖRL"^^ls:QueryCode ;
skos:notation "FORL"^^ls:QueryCode .

:yearPublished rdfs:label "utgivningsår"@sv, "year of publication"@en ; # See ./details.ttl for full definition of :yearPublished
rdfs:domain :Instance ;
skos:notation "dc.date"^^ls:QueryCode ;
skos:notation "ÅR"^^ls:QueryCode .

:contributor # See ./relations.ttl for full definition of :contributor
skos:notation "FÖRF"^^ls:QueryCode ;
skos:notation "FORF"^^ls:QueryCode .
Expand Down Expand Up @@ -65,7 +61,6 @@
:agent
) .


:subject # See ./relations.ttl for full definition of :subject
skos:notation "dc.subject"^^ls:QueryCode ;
skos:notation "bath.topicalSubject"^^ls:QueryCode ;
Expand Down Expand Up @@ -98,6 +93,13 @@ ls:composite a skos:Collection ;
:category :pending ;
:code "composite" .

# TODO? Could be ls:MergedProperty rdfs:subClassOf owl:ObjectProperty
ls:merged a skos:Collection ;
rdfs:label "merged"@en, "sammanslagen"@sv .

# TODO: add e.g. label, domain, comment
ls:merges a owl:ObjectProperty .

ls:itemHeldBy a owl:ObjectProperty ;
rdfs:label "Bibliotek"@sv, "Library"@en ;
skos:notation "bath.possessingInstitution"^^ls:QueryCode ;
Expand Down Expand Up @@ -185,14 +187,41 @@ ls:title a owl:ObjectProperty ;
( :relationship :entity :hasTitle ) .

ls:itemShelf a owl:DatatypeProperty ;
:category ls:composite, :pending ; # TODO: ls:merged?
rdfs:label "hyllsignum"@sv, "item shelf"@en ;
skos:notation "WHYL"^^ls:QueryCode ;
owl:propertyChainAxiom ( :hasItem :availability :label ),
( :hasItem :shelfMark :label ),
( :hasItem :shelfControlNumber ),
( :hasItem :shelfLabel ),
( :hasItem :physicalLocation ) .
:category :shorthand, :pending ;
skos:notation "WHYL"^^ls:QueryCode ;
rdfs:label "hyllsignum"@sv, "item shelf"@en ;
rdfs:domain :Instance ;
owl:propertyChainAxiom ( :hasItem ls:shelf ) .

ls:shelf a owl:DatatypeProperty ;
:category ls:merged, :pending ;
rdfs:label "hylla"@sv, "shelf"@en ;
rdfs:domain :Item ;
ls:merges :shelfControlNumber,
:shelfLabel,
:physicalLocation,
[ owl:propertyChainAxiom ( :availability :label ) ],
[ owl:propertyChainAxiom ( :shelfMark :label ) ] .

ls:hasItemNote a owl:DatatypeProperty ;
:category :shorthand, :pending ;
skos:notation "BANM"^^ls:QueryCode ;
rdfs:label "har beståndsanmärkning"@sv, "has item note"@en ;
rdfs:domain :Instance ;
owl:propertyChainAxiom ( :hasItem ls:itemNote ) .

ls:itemNote a owl:DatatypeProperty ;
:category ls:merged, :pending ;
rdfs:label "beståndsanmärkning"@sv, "item note"@en ;
rdfs:domain :Item ;
ls:merges :cataloguersNote,
:custodialHistory,
[ owl:propertyChainAxiom ( :summary :label ) ],
[ owl:propertyChainAxiom ( :hasNote :label ) ],
[ owl:propertyChainAxiom ( marc:hasCopyAndVersionIdentificationNote marc:itemCondition ) ],
[ owl:propertyChainAxiom ( marc:hasBindingInformation :label ) ],
[ owl:propertyChainAxiom ( marc:hasTextualHoldingsBasicBibliographicUnit marc:cataloguersNote ) ],
[ owl:propertyChainAxiom ( marc:hasTextualHoldingsBasicBibliographicUnit marc:publicNote ) ] .

ls:itemCreated a owl:DatatypeProperty ;
:category :shorthand, :pending ;
Expand All @@ -201,6 +230,17 @@ ls:itemCreated a owl:DatatypeProperty ;
rdfs:range xsd:dateTime ;
owl:propertyChainAxiom ( :hasItem :meta :created ) .

ls:year a owl:DatatypeProperty ;
:category ls:merged ;
ls:merges :year, :startYear .

ls:yearPublished a owl:DatatypeProperty ;
:category :shorthand ;
rdfs:label "utgivningsår"@sv, "year of publication"@en ;
rdfs:domain :Instance ;
skos:notation "ÅR"^^ls:QueryCode, "dc.date"^^ls:QueryCode ;
owl:propertyChainAxiom ( :publication ls:year ) .

# TODO
#ls:classificationCode a owl:DatatypeProperty ;
# :category :shorthand ;
Expand Down Expand Up @@ -245,15 +285,4 @@ ls:itemCreated a owl:DatatypeProperty ;
# rdfs:label "LC-klassifikationskod"@sv, "LCC classification code"@en ;
# owl:propertyChainAxiom (
# [ rdfs:subPropertyOf :classification ; rdfs:range :ClassificationLcc ]
# :code ) .
#
#ls:itemNote a owl:DatatypeProperty ;
# :category ls:merged ;
# rdfs:label "anmärkning i bestånd"@sv, "item note"@en ;
# skos:notation "BANM"^^ls:QueryCode ;
# owl:propertyChainAxiom ( :hasItem :hasNote :label ),
# ( :hasItem :cataloguersNote ),
# ( :hasItem :custodialHistory ),
# ( :hasItem marc:hasCopyAndVersionIdentificationNote marc:itemCondition ),
# ( :hasItem marc:hasBindingInformation :label ),
# ( :hasItem marc:hasTextualHoldingsBasicBibliographicUni marc:cataloguersNote ) .
# :code ) .
1 change: 1 addition & 0 deletions sys/context/kbv.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@
"bibdb:libraryType": { "@container": "@set"},

"librissearch": "https://id.kb.se/ns/librissearch/",
"librissearch:merges": { "@container": "@set"},

"marc": "https://id.kb.se/marc/",

Expand Down