Skip to content

Commit 8c97c45

Browse files
authored
Feature/libris search ns (#540)
* Mint dedicated namespace for Libris Search terms * Add sub-properties of category
1 parent f0ce26b commit 8c97c45

File tree

4 files changed

+66
-30
lines changed

4 files changed

+66
-30
lines changed

source/vocab/details.ttl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,6 @@
640640
rdfs:label "Librisdefinierad MARC-språkkod" ;
641641
rdfs:subClassOf :Local .
642642

643-
644643
## Used by SwePub {{{
645644

646645
:CORDIS a owl:Class;

source/vocab/libris-search-experimental.ttl

Lines changed: 61 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,78 +4,111 @@
44
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
55
@prefix : <https://id.kb.se/vocab/> .
66
@prefix bibdb: <https://id.kb.se/ns/bibdb/> .
7-
87
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
98
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
9+
@prefix ls: <https://id.kb.se/ns/librissearch/> .
1010

11-
:LibrisQueryCode a rdfs:Datatype .
12-
13-
:author a owl:ObjectProperty ;
14-
rdfs:label "författare"@sv, "author"@en ;
15-
:category :shorthand, :pending ;
16-
owl:equivalentProperty <https://id.kb.se/relator/author> ;
17-
rdfs:subPropertyOf :contributor ;
18-
rdfs:range :Agent ;
19-
skos:notation "FÖRF"^^:LibrisQueryCode ;
20-
owl:propertyChainAxiom (
21-
[ rdfs:subPropertyOf :contribution ; rdfs:range [ rdfs:subClassOf [ a owl:Restriction ;
22-
owl:onProperty :role ;
23-
owl:hasValue <https://id.kb.se/relator/author> ] ] ]
24-
:agent
25-
) .
11+
### Extended definitions for Libris Search ###
2612

2713
:isbn rdfs:domain :Instance . # See ./details.ttl for full definition of :isbn
2814

2915
:yearPublished rdfs:label "utgivningsår"@sv, "year of publication"@en ; # See ./details.ttl for full definition of :yearPublished
3016
rdfs:domain :Instance ;
31-
skos:notation "ÅR"^^:LibrisQueryCode .
17+
skos:notation "ÅR"^^ls:QueryCode .
18+
19+
:language skos:notation "SPRÅK"^^ls:QueryCode . # See ./relations.ttl for full definition of :language
20+
21+
:controlNumber skos:notation "ONR"^^ls:QueryCode . # See ./platform.ttl for full definition of :controlNumber
22+
23+
#:hasTitle rdfs:subPropertyOf ls:someTitle . # See ./details.ttl for full definition of :hasTitle
24+
3225

33-
:language skos:notation "SPRÅK"^^:LibrisQueryCode . # See ./relations.ttl for full definition of :language
26+
### New definitions for Libris Search ###
3427

35-
:controlNumber skos:notation "ONR"^^:LibrisQueryCode . # See ./platform.ttl for full definition of :controlNumber
28+
ls:QueryCode a rdfs:Datatype .
3629

37-
:itemHeldBy a owl:ObjectProperty ;
30+
ls:composite a skos:Collection ;
31+
rdfs:label "composite"@en, "sammansatt"@sv ;
32+
:code "composite" .
33+
34+
ls:itemHeldBy a owl:ObjectProperty ;
3835
rdfs:label "Bibliotek"@sv, "Library"@en ;
3936
:category :shorthand, :pending ;
4037
rdfs:domain :Instance ;
4138
sdo:rangeIncludes :Library ;
4239
owl:propertyChainAxiom ( :hasItem :heldBy ) .
4340

44-
:itemHeldByOrg a owl:ObjectProperty ;
41+
ls:itemHeldByOrg a owl:ObjectProperty ;
4542
rdfs:label "Biblioteksorganisation"@sv, "Library organization"@en ;
46-
skos:notation "OCODE"^^:LibrisQueryCode ;
43+
skos:notation "OCODE"^^ls:QueryCode ;
4744
:category :shorthand, :pending ;
4845
rdfs:domain :Instance ;
4946
sdo:rangeIncludes bibdb:Organization ;
5047
owl:propertyChainAxiom ( :hasItem :heldBy :isPartOf ) .
5148

52-
:instanceOfType a owl:ObjectProperty ;
49+
ls:instanceOfType a owl:ObjectProperty ;
5350
:category :shorthand, :pending ;
5451
rdfs:domain :Instance ;
5552
owl:propertyChainAxiom ( :instanceOf rdf:type ) .
5653

57-
:hasInstanceType a owl:ObjectProperty ;
54+
ls:hasInstanceType a owl:ObjectProperty ;
5855
rdfs:label "format"@sv, "format"@en ;
59-
skos:notation "FORMAT"^^:LibrisQueryCode ;
6056
:category :shorthand, :pending ;
6157
rdfs:domain :Work ;
6258
owl:propertyChainAxiom ( :hasInstance rdf:type ) .
6359

64-
:instanceOfCategory a owl:ObjectProperty ;
60+
ls:instanceOfCategory a owl:ObjectProperty ;
6561
rdfs:label "kategori på verket"@sv, "category of work"@en ;
6662
:category :shorthand, :pending ;
6763
rdfs:domain :Instance ;
6864
owl:propertyChainAxiom ( :instanceOf :category ) .
6965

70-
:hasInstanceCategory a owl:ObjectProperty ;
66+
ls:hasInstanceCategory a owl:ObjectProperty ;
7167
rdfs:label "kategori"@sv, "category"@en ;
7268
:category :shorthand, :pending ;
7369
rdfs:domain :Work ;
7470
owl:propertyChainAxiom ( :hasInstance :category ) .
7571

76-
:originalLanguage a owl:ObjectProperty ;
72+
ls:originalLanguage a owl:ObjectProperty ;
7773
rdfs:label "originalspråk"@sv, "original language"@en ;
7874
:category :shorthand, :pending ;
7975
rdfs:domain :Work ;
8076
rdfs:range :Language ;
8177
owl:propertyChainAxiom ( :translationOf :language ) .
78+
79+
ls:indexKey a :DatatypeProperty .
80+
81+
ls:findCategory a :ObjectProperty ;
82+
rdfs:subPropertyOf :category ;
83+
rdfs:range [ rdfs:subClassOf [ a owl:Restriction ; owl:onProperty :inCollection ; owl:hasValue <https://id.kb.se/term/div/find> ] ] ;
84+
ls:indexKey "_categoryByCollection.find" .
85+
86+
ls:identifyCategory a :ObjectProperty ;
87+
rdfs:subPropertyOf :category ;
88+
rdfs:range [ rdfs:subClassOf [ a owl:Restriction ; owl:onProperty :inCollection ; owl:hasValue <https://id.kb.se/term/div/identify> ] ] ;
89+
ls:indexKey "_categoryByCollection.identify" .
90+
91+
ls:noneCategory a :ObjectProperty ;
92+
rdfs:subPropertyOf :category ;
93+
ls:indexKey "_categoryByCollection.@none" .
94+
95+
#ls:someTitle a owl:ObjectProperty ;
96+
# :category ls:composite, :shorthand ;
97+
# skos:notation "TIT"^^ls:QueryCode ;
98+
# owl:propertyChainAxiom ( :translationOf :hasTitle ),
99+
# ( :seriesMembership :inSeries :instanceOf :hasTitle ),
100+
# ( :relationship :entity :hasTitle ) .
101+
102+
#:author a owl:ObjectProperty ;
103+
# rdfs:label "författare"@sv, "author"@en ;
104+
# :category :shorthand, :pending ;
105+
# owl:equivalentProperty <https://id.kb.se/relator/author> ;
106+
# rdfs:subPropertyOf :contributor ;
107+
# rdfs:range :Agent ;
108+
# skos:notation "FÖRF"^^ls:QueryCode ;
109+
# owl:propertyChainAxiom (
110+
# [ rdfs:subPropertyOf :contribution ; rdfs:range [ rdfs:subClassOf [ a owl:Restriction ;
111+
# owl:onProperty :role ;
112+
# owl:hasValue <https://id.kb.se/relator/author> ] ] ]
113+
# :agent
114+
# ) .

sys/context/kbv.jsonld

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@
236236
"bibdb:telephone": { "@container": "@set"},
237237
"bibdb:libraryType": { "@container": "@set"},
238238

239+
"librissearch": "https://id.kb.se/ns/librissearch/",
240+
239241
"marc": "https://id.kb.se/marc/",
240242

241243
"marc:data": {"@container": "@list"},

sys/context/shared.jsonld

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
"jsonld": "http://www.w3.org/ns/json-ld#",
99
"fresnel": "http://www.w3.org/2004/09/fresnel#",
1010
"kbv": "https://id.kb.se/vocab/",
11+
"ls": "https://id.kb.se/ns/librissearch/",
12+
1113

1214
"Property": "rdf:Property",
1315
"Datatype": "rdfs:Datatype",
@@ -88,7 +90,7 @@
8890
"langCodeFull": {"@id": "code", "@type": "ISO639-3"},
8991
"langCodeLibrisLocal": {"@id": "code", "@type": "LibrisLocalLanguageCode"},
9092

91-
"librisQueryCode": {"@id": "code", "@type": "LibrisQueryCode"},
93+
"librisQueryCode": {"@id": "code", "@type": "ls:QueryCode"},
9294

9395
"bibdb:bibIdSearchUriByLang": {"@id": "bibdb:bibIdSearchUri", "@container": "@language"},
9496
"bibdb:isbnSearchUriByLang": {"@id": "bibdb:isbnSearchUri", "@container": "@language"},

0 commit comments

Comments
 (0)