Skip to content

Type Normalization #484

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 73 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
22d4d2d
Add initial KB base-, form- and genre-types
niklasl Apr 30, 2024
1ae2f4b
Revise KB form and genre terms
niklasl May 16, 2024
d58ff28
Add KB instance/carrier types
niklasl May 16, 2024
e7633e9
Change NewsLetter from Form to Genre
niklasl May 8, 2024
e610c94
Add RecordOrDeed as Form
niklasl May 8, 2024
bcef373
Remove inCollection (copied from matching SAOGF)
niklasl May 8, 2024
0b32ca9
Add Book equivalences
niklasl May 8, 2024
90d0622
Add more media and carrier types
niklasl May 20, 2024
02530d8
Update type mappings
niklasl Jun 3, 2024
b9b8db7
Update type mappings
niklasl Jun 5, 2024
d890614
Change use of BasicType to just Class
niklasl Jun 12, 2024
17c1ba4
Use rdfs and skos prefixes where applicable
niklasl Jun 12, 2024
074e1e5
Move types into KBV as pending concrete types
niklasl Jun 12, 2024
8dbfa62
Use simple label property for new types
niklasl Jun 12, 2024
b98f5c3
Add more labels to genre and carrier types
niklasl Jun 12, 2024
f3aec89
Add and update types to kbtf and update kbcr
niklasl Jun 28, 2024
b588929
Fix spelling in labels of new types
niklasl Jul 3, 2024
54b4aa6
Adjusted new types
niklasl Jul 8, 2024
c8aec3a
Add OWL-based type normalization examples
niklasl Aug 26, 2024
79d337e
Simplify complex types by reasoning over genreForm
niklasl Aug 27, 2024
e79e1fb
Update complex type definitions
niklasl Sep 15, 2024
3a30fe3
Change PuzzleOrGame to GenreForm
niklasl Oct 2, 2024
267511f
Add scopeNote for BookWithImages
niklasl Oct 2, 2024
e983b98
Add KBV MARC term mappings to LCGFT, SAOGF, TGM
niklasl Oct 14, 2024
2292698
Fix syntax in marcmatches.ttl
niklasl Oct 15, 2024
91198f0
Add some mappings and remarks to marcmatches.ttl
niklasl Oct 15, 2024
c674a54
Update type-normalization RDA mappings
niklasl Oct 28, 2024
4fad8f7
Update example new types
niklasl Oct 31, 2024
425b0b2
Update type-normalization classes and genre/forms
niklasl Nov 11, 2024
6b5cb58
Merge branch 'develop' into feature/typenormalization
niklasl Dec 10, 2024
49e9492
Merge branch 'develop' into feature/typenormalization
niklasl Jan 15, 2025
892f647
add owlrl
branchedelac Feb 3, 2025
90525be
bump pyRdfa3 to 3.6.4
branchedelac Feb 3, 2025
82da28a
Bump rdflib to 7.1.3 and adapt to change in jsonld
niklasl Feb 3, 2025
192f03f
Update definition of new (complex) classes
niklasl Feb 5, 2025
f83f500
Merge branch 'develop' into feature/typenormalization
niklasl Feb 7, 2025
6b64d05
Restructure typenormalized newtypes and genreforms
niklasl Feb 13, 2025
5c4cd64
Merge branch 'develop' into feature/typenormalization
niklasl Feb 13, 2025
b29898f
Type tentative media and carrier types as classes
niklasl Feb 18, 2025
f3a063c
Add PhysicalResource and update some details
niklasl Mar 4, 2025
5563b5b
Update genreform descriptions
niklasl Mar 4, 2025
745e852
Add category facets to apps.jsonld
niklasl Mar 5, 2025
8a3cb7f
Move duplicate prefLabel to altLabel
niklasl Mar 6, 2025
ada92d0
Comment out alt-altLabel
niklasl Mar 6, 2025
5625a63
Use well-known terms for all vocab descriptions
niklasl Mar 6, 2025
7dc33a9
Bless new work subclasses
niklasl Mar 10, 2025
c5fbb57
Add more MARC genre/form mappings
niklasl Mar 13, 2025
500af99
Add rdabox2jsonld "one off" script
niklasl Mar 26, 2025
ec8822a
Extract some more text with rdabox2jsonld
niklasl Mar 27, 2025
ef35efd
Extract altLabel, scopeNote, related for RDA terms
niklasl Mar 28, 2025
2a12d7e
Categorize genre, form and content type mappings
niklasl Apr 1, 2025
c16a493
Update genre, form and content categories
niklasl Apr 2, 2025
57f21c3
Update category mappings
niklasl Apr 2, 2025
cc17a18
Update genre/form definitions and mappings
niklasl Apr 15, 2025
77dacbd
Further normalize genre/form mappings
niklasl Apr 17, 2025
3a9ac94
Add note about possibly superfluous mappings
niklasl Apr 22, 2025
f63b478
Add more genre/form mappings (to marcgt and repr)
niklasl Apr 29, 2025
df47e05
Move genreforms to categories and use ktg base URI
niklasl May 5, 2025
2782733
Move complex classes aside in favour of categories
niklasl May 5, 2025
0dd8aa4
Add Category class
niklasl May 5, 2025
e07df21
Add KBV patterns and instance categories
niklasl May 8, 2025
1595f31
Handle datasets with more than one source file
niklasl May 8, 2025
5671a60
Remake handling of KTG and RDA term definitions
niklasl May 12, 2025
c46086c
Use `skos:prefLabel`
niklasl May 12, 2025
1e5d959
Define singularLabelByLang and pluralLabelByLang
niklasl May 12, 2025
baba40b
Use `skos:altLabel`
niklasl May 12, 2025
bd04e60
Use `skos:prefLabel` for RDA labels too
niklasl May 12, 2025
861c4ab
Add carrierforms categories to ktg dataset
niklasl May 12, 2025
4b1d9ea
Add ktg: to marc: mappings (from marcmatches.ttl)
niklasl May 12, 2025
fea1649
Add more marc category mappings
niklasl May 13, 2025
7cb858f
Update category mappings
niklasl May 14, 2025
7d46b40
Improve mappings for type normalization
niklasl May 15, 2025
011d24b
Add more `marc:` category mappings
niklasl May 15, 2025
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
1 change: 1 addition & 0 deletions examples/typenormalization/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/cache
7 changes: 7 additions & 0 deletions examples/typenormalization/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
test: cache/saogf.ttl
python test_categories.py

cache/saogf.ttl: cache
curl -s https://libris.kb.se/sparql -HAccept:text/turtle --data-urlencode 'query=PREFIX : <https://id.kb.se/vocab/> CONSTRUCT WHERE { ?a a :GenreForm ; :inScheme <https://id.kb.se/term/saogf> ; :broader ?b }' -o $@
cache:
mkdir -p cache
6 changes: 6 additions & 0 deletions examples/typenormalization/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
To run tests:

$ pip install -r requirements.txt
$ make test

(Add `-d` cmdline flag see full OWL-RL output.)
Loading