scriptotek / mc2skos

Command line script for converting Marc21 Classification and Authority records to SKOS/RDF
The Unlicense
21 stars 4 forks source link

How to select number spans and table entries? #34

Open nichtich opened 7 years ago

nichtich commented 7 years ago

I'd like to filter DDC number spans and table entries which both differ from normal DDC classes. Internally we introduced the URIs http://dewey.info/type/NumberSpan and http://dewey.info/type/TableEntry in addition to skos:Concept. See https://github.com/gbv/mc2skos/commit/8af832379958d7df56c334c7b6fc3d0f359a26be for an example.

danmichaelo commented 7 years ago

Seems useful. So far I've used FILTER (STRSTARTS(STR(?scheme), "http://dewey.info/table/")) and FILTER(!REGEX(STR(?c), "[0-9]-[0-9]"))which is raaather messy when I needed to filter those :)