Skip to content

Commit 748d7b7

Browse files
committed
Update definition of new (complex) classes
1 parent 82da28a commit 748d7b7

File tree

1 file changed

+93
-128
lines changed

1 file changed

+93
-128
lines changed

source/vocab/newtypes/classes.ttl

Lines changed: 93 additions & 128 deletions
Original file line numberDiff line numberDiff line change
@@ -11,62 +11,77 @@ prefix kbrda: <https://id.kb.se/term/rda/>
1111

1212
prefix kbgf: <https://id.kb.se/term/gf/>
1313

14-
:Text rdfs:subClassOf :TextContent .
15-
:StillImage rdfs:subClassOf :ImageContent .
16-
:TextWithImages rdfs:subClassOf :TextContent, :ImageContent .
17-
:ImageAndText rdfs:subClassOf :TextContent, :ImageContent .
18-
:NotatedMusic rdfs:subClassOf :NotatedMusicContent .
19-
:NotatedMovement rdfs:subClassOf :NotatedMovementContent .
20-
:Object rdfs:subClassOf :ObjectContent .
21-
:Audio rdfs:subClassOf :AudioContent .
22-
:PerformedMusic rdfs:subClassOf :PerformedMusicContent .
23-
:SpokenWord rdfs:subClassOf :SpokenWordContent .
24-
:ComputerProgram rdfs:subClassOf :ComputerProgramContent .
25-
:ComputerDataset rdfs:subClassOf :ComputerDatasetContent .
26-
27-
# Complex Work Classes (Single Unit)
14+
##
15+
# This file depends on patterns defined in <./rdamatches.ttl> .
2816

29-
# * Uses intersections to say: "this combo *means* this class".
3017

31-
:Book a owl:Class ;
18+
# Locally defined restriction shapes
19+
20+
:BookForm a owl:Restriction ;
3221
ptg:abstract true ;
33-
:category :pending, :primary ;
34-
owl:equivalentClass bibo:Book, sdo:Book ;
22+
owl:onProperty :genreForm ;
23+
owl:hasValue kbgf:Book ;
3524
:label "Book"@en ,
3625
"Bok"@sv ;
3726
:pluralLabel "Böcker"@sv .
3827

28+
29+
# Extend existing classes
30+
31+
:Text rdfs:subClassOf :Monograph, :TextContent .
32+
:TextWithImages rdfs:subClassOf :Monograph, :TextContent, :ImageContent .
33+
:StillImage rdfs:subClassOf :Monograph, :ImageContent .
34+
:ImageAndText rdfs:subClassOf :Monograph, :TextContent, :ImageContent .
35+
36+
:NotatedMusic rdfs:subClassOf :Monograph, :NotatedMusicContent .
37+
:NotatedMovement rdfs:subClassOf :Monograph, :NotatedMovementContent .
38+
39+
:Kit rdfs:subClassOf :Monograph .
40+
:Object rdfs:subClassOf :Monograph, :ObjectContent .
41+
:Audio rdfs:subClassOf :Monograph, :AudioContent .
42+
:PerformedMusic rdfs:subClassOf :Monograph, :PerformedMusicContent .
43+
:SpokenWord rdfs:subClassOf :Monograph, :SpokenWordContent .
44+
:ComputerProgram rdfs:subClassOf :Monograph, :ComputerProgramContent .
45+
:ComputerDataset rdfs:subClassOf :Monograph, :Dataset, :ComputerDatasetContent .
46+
47+
48+
# Complex Work Classes
49+
50+
# * Uses intersections to say: "this combo *means* this class".
51+
:complex a skos:Collection ;
52+
rdfs:label "complex"@en, "komplex"@sv ;
53+
rdfs:comment "Anges på abstrakta klasser som namnger välkända mönster, definierade som intersektioner."@sv ;
54+
:code "complex" .
55+
56+
# TODO: RenameTo :TextMonograph "Textmonografi"@sv ?
3957
:WrittenBook a owl:Class ;
58+
owl:equivalentClass bibo:Book, sdo:Book ;
4059
:category :pending, :complex ;
41-
rdfs:subClassOf :Book ;
4260
owl:intersectionOf (
4361
:Text
44-
[ owl:onProperty :genreForm ;
45-
owl:hasValue kbgf:Book ]
62+
:BookForm
4663
) ;
4764
:label "Written book"@en ,
4865
"Skriven bok"@sv ;
4966
:altLabel "Bok"@sv, "Book"@en .
5067

5168
:Audiobook a owl:Class ;
5269
:category :pending, :complex ;
53-
rdfs:subClassOf :Book ,
54-
[ owl:onProperty :genreForm ;
70+
rdfs:subClassOf [ owl:onProperty :genreForm ;
5571
owl:hasValue saogf:Ljudb%C3%B6cker ] ,
5672
bibo:AudioDocument ;
5773
owl:intersectionOf (
5874
:Audio
59-
[ owl:onProperty :genreForm ;
60-
owl:hasValue kbgf:Book ]
75+
:BookForm
6176
) ;
6277
:label "Ljudbok"@sv ,
6378
"Audiobook"@en .
6479

6580
:TactileBook a owl:Class ;
6681
:category :pending, :complex ;
67-
rdfs:subClassOf :Book ;
6882
owl:intersectionOf (
6983
:Tactile
84+
:BookForm
7085
[ owl:onProperty :genreForm ;
7186
owl:hasValue [ skos:narrowMatch saogf:Punktskriftsb%C3%B6cker ] ]
7287
) ;
@@ -200,32 +215,29 @@ prefix kbgf: <https://id.kb.se/term/gf/>
200215

201216

202217
:Atlas a owl:Class ;
218+
ptg:abstract true ;
203219
:category :pending, :complex ;
204-
rdfs:subClassOf :WrittenBook, :Cartography ;
205220
owl:intersectionOf (
206-
#:WrittenBook
207221
:Cartography
208-
[ owl:onProperty :genreForm ;
209-
owl:hasValue kbgf:Book ]
210-
[ owl:onProperty :contentType ;
211-
owl:hasValue kbrda:Text ]
212-
[ owl:onProperty :contentType ;
213-
owl:hasValue kbrda:CartographicImage ]
214-
) .
222+
:BookForm
223+
:TextContent
224+
:CartographicImageContent
225+
) ;
226+
rdfs:label "Atlas"@sv ,
227+
"Atlas"@en .
215228

216229
:Globe a owl:Class ;
217230
:category :pending, :complex ;
218-
# TODO: make these also imply the intersection?
219-
#rdfs:subClassOf :Cartography, :ObjectContent ;
220231
owl:intersectionOf (
221232
:Cartography
222-
[ owl:onProperty :contentType ;
223-
owl:hasValue kbrda:CartographicThreeDimensionalForm ]
224-
) .
233+
:CartographicThreeDimensionalFormContent
234+
) ;
235+
rdfs:label "Jord- eller månglob"@sv ,
236+
"Globe"@en .
225237

226238

227239
# TODO:
228-
# * Link up *all* SAOGF-Musik(instrument) as hints for Music?
240+
# * In SAOGF, link up *all* SAOGF-Musik[*instrument] as hints for "Music-content"?
229241

230242
:PerformedMusic a owl:Class ;
231243
:category :pending, :complex ;
@@ -259,59 +271,10 @@ prefix kbgf: <https://id.kb.se/term/gf/>
259271
) .
260272

261273

262-
# Complex Instance Classes (Single Unit)
263-
264-
:PrintedVolume a owl:Class ;
265-
:category :pending, :complex ;
266-
owl:intersectionOf (
267-
:Print
268-
[ owl:onProperty :carrierType ;
269-
owl:hasValue kbrda:Volume ]
270-
) .
271-
272-
:CDBook a owl:Class ;
273-
:category :pending, :complex ;
274-
owl:intersectionOf (
275-
:Electronic
276-
[ owl:onProperty :carrierType ;
277-
owl:hasValue kbrda:AudioDisc ]
278-
[ owl:onProperty :instanceOf ;
279-
owl:someValuesFrom :Book ]
280-
) .
281-
282-
:EBook a owl:Class ;
283-
:category :pending, :complex ;
284-
owl:intersectionOf (
285-
:Electronic # :DigitalResource
286-
[ owl:onProperty :instanceOf ;
287-
owl:someValuesFrom :Book ]
288-
) .
289-
290-
# TODO: used by whom? Not Webbsök...
291-
#:EAudioBook a owl:Class ;
292-
# :category :pending, :complex ;
293-
# owl:intersectionOf (
294-
# :Electronic
295-
# [ owl:onProperty :instanceOf ;
296-
# owl:someValuesFrom :AudioBook ]
297-
# ) .
298-
299-
# Multimedia AudioBook + WrittenBook Bundle ?
300-
301-
302274
# Collecting Work Classes
303275

304-
:CollectingResource a owl:Class ;
305-
:category :pending ;
306-
ptg:abstract true ;
307-
:label "Collecting Resource"@en ,
308-
"Samlande resurs"@sv .
309-
310-
:Collection rdfs:subClassOf :CollectingResource .
311-
312276
:Archive a owl:Class ;
313277
:category :pending, :complex ;
314-
rdfs:subClassOf :CollectingResource ;
315278
owl:intersectionOf (
316279
:Collection
317280
[ owl:onProperty :genreForm ;
@@ -320,9 +283,6 @@ prefix kbgf: <https://id.kb.se/term/gf/>
320283
:label "Arkiv"@sv ,
321284
"Archive"@en .
322285

323-
:Integrating rdfs:subClassOf :CollectingResource ;
324-
ptg:abstract true .
325-
326286
:Database a owl:Class ;
327287
:category :pending, :complex ;
328288
owl:intersectionOf (
@@ -338,7 +298,6 @@ prefix kbgf: <https://id.kb.se/term/gf/>
338298

339299
:SerialPublication a owl:Class ;
340300
:category :pending, :complex ;
341-
rdfs:subClassOf :CollectingResource ; # Abstraction
342301
owl:intersectionOf (
343302
:Serial
344303
[ owl:onProperty :genreForm ;
@@ -348,7 +307,7 @@ prefix kbgf: <https://id.kb.se/term/gf/>
348307
"Serial Publication"@en .
349308

350309
:Periodical a owl:Class ;
351-
:category :pending, :primary, :complex ;
310+
:category :pending, :complex ;
352311
rdfs:seeAlso <https://en.wikipedia.org/wiki/Periodical_literature> ;
353312
rdfs:subClassOf :SerialPublication ;
354313
owl:intersectionOf (
@@ -361,36 +320,42 @@ prefix kbgf: <https://id.kb.se/term/gf/>
361320
:label "Tidskrift"@sv ,
362321
"Periodical"@en .
363322

364-
##
365-
# Possible Serial combos:
366-
# (Or prefer :collectsType (or :containsType (== :contentType?))?)
367-
## Get associated GenreForm:
368-
#### PREFIX : <https://id.kb.se/vocab/>
369-
#### SELECT ?collectstype ?gf (COUNT(?serial)AS ?count) {
370-
#### ?serial a :Serial ; :collectsType ?collectstype ; :genreForm ?gf . FILTER isIRI(?gf)
371-
#### } GROUP BY ?collectstype ?gf ORDER BY ?collectstype DESC(?count)
372-
#
373-
#:TextSerial # 683169
374-
# :WrittenBookSerial # 84
375-
# :NotatedMusicSerial # 402
376-
#
377-
#:CartographySerial # 19
378-
# :AtlasSerial # 2
379-
# :SingleMapSerial # 20
380-
#
381-
#:AudioSerial # 13
382-
#
383-
# :MusicSerial # 6
384-
#
385-
# :AudioBookSerial # 20
386-
# :SpokenWordSerial # 3
387-
#
388-
#:MovingImageSerial # 24
389-
#:StillImageSerial # 3
390-
#
391-
#:MultimediaSerial # 101
392-
#
393-
#:MixedMaterialSerial # 5
394-
#
395-
##:WorkSerial # 2
396-
##:ManuscriptTextSerial # 1
323+
324+
# Complex Instance Classes (Single Unit)
325+
326+
:PrintedVolume a owl:Class ;
327+
:category :pending, :complex ;
328+
owl:intersectionOf (
329+
:Print
330+
[ owl:onProperty :carrierType ;
331+
owl:hasValue kbrda:Volume ]
332+
) .
333+
334+
:CDBook a owl:Class ;
335+
:category :pending, :complex ;
336+
owl:intersectionOf (
337+
:Electronic
338+
[ owl:onProperty :carrierType ;
339+
owl:hasValue kbrda:AudioDisc ]
340+
[ owl:onProperty :instanceOf ;
341+
owl:someValuesFrom :BookForm ]
342+
) .
343+
344+
:EBook a owl:Class ;
345+
:category :pending, :complex ;
346+
owl:intersectionOf (
347+
:Electronic # :DigitalResource
348+
[ owl:onProperty :instanceOf ;
349+
owl:someValuesFrom :BookForm ]
350+
) .
351+
352+
# TODO: used by whom? Not Webbsök...
353+
#:EAudioBook a owl:Class ;
354+
# :category :pending, :complex ;
355+
# owl:intersectionOf (
356+
# :Electronic
357+
# [ owl:onProperty :instanceOf ;
358+
# owl:someValuesFrom :AudioBook ]
359+
# ) .
360+
361+
# Multimedia AudioBook + WrittenBook Bundle ?

0 commit comments

Comments
 (0)