libris / definitions Goto Github PK
View Code? Open in Web Editor NEWConcept schemes, vocabulary definitions and mappings used for KB/Libris
License: Apache License 2.0
Concept schemes, vocabulary definitions and mappings used for KB/Libris
License: Apache License 2.0
https://github.com/libris/definitions/blob/2cdfbb6620ae9742306d28d51c9de4309fce4c7a/source/sab.ttl#L2527
Exempel: Aaxz,, Fv,
Det finns också ett antal (20st) tomma comments: Ibhc, Ijsac
After merging pull request #6 on 7th September, python datasets.py
was working from a clean checkout. Since then around 15 commits have been added and it doesn't work building any longer.
How to reproduce:
mkdir test && cd test/
git clone https://github.com/libris/definitions.git -b develop
cd definitions/ && virtualenv venv && . venv/bin/activate && pip install -r requirements.txt
python datasets.py > output.log # Bang!
Traceback (most recent call last):
File "datasets.py", line 296, in <module>
compiler.main()
File "/Users/mblomdahl/PyCharm/definitions/test/definitions/venv/src/lxltools/lxltools/datacompiler.py", line 58, in main
self._run(args.datasets)
File "/Users/mblomdahl/PyCharm/definitions/test/definitions/venv/src/lxltools/lxltools/datacompiler.py", line 74, in _run
self._compile_datasets(names)
File "/Users/mblomdahl/PyCharm/definitions/test/definitions/venv/src/lxltools/lxltools/datacompiler.py", line 99, in _compile_datasets
result = build()
File "datasets.py", line 207, in languages
'iso6391.ttl').query(cherry_pick_loc_lang_data)
File "datasets.py", line 38, in _get_zipped_graph
return Graph().parse(zipped.open(name), format='turtle')
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/zipfile.py", line 964, in open
zinfo = self.getinfo(name)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/zipfile.py", line 912, in getinfo
'There is no item named %r in the archive' % name)
KeyError: "There is no item named u'iso6391.ttl' in the archive"
@klngwll @sarwik I've been scanning through your changes, but I'm totally clueless.. Any thoughts on which of them could have caused this?
On develop branch:
python scripts/compile_defs.py -c cache/ -o build/ relators
results in:
Traceback (most recent call last):
File "scripts/compile_defs.py", line 414, in
run(args, opts.outdir, opts.cache)
File "scripts/compile_defs.py", line 361, in run
data = datasetsname
File "scripts/compile_defs.py", line 72, in relators
}, index=('byNotation', 'notation'))
File "scripts/compile_defs.py", line 207, in to_jsonld
nodes = data.pop(graph_key)
KeyError: 'byNotation'
Footer needs contact information to someone or something.
Som exempel:
Xxad är en högst korrekt klassifikationskod, men den är svår att dekonstruera utifrån sab.ttl
Jag ser två sätt att lösa det, men det finns nog fler.
Det finns nog andra områden med som har den här "problematiken"
Generellt vore det nog bra om möjliga subdivisions kunde listas under respektive klass för att nå en hög precision i Särskilda tilläggsbeteckningar och begränsningar för de generella tilläggsbeteckningarna. Någon sorts egenskap i form av "allowedSubdivisions" kanske är en väg framåt?
https://github.com/libris/definitions/blob/2cdfbb6620ae9742306d28d51c9de4309fce4c7a/source/sab.ttl#L12059C1-L12070C62
Other weird things discovered:
I saw some other examples of this, but i cannot find them again unfortunately.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.