Comments (5)
See https://github.com/gbv/mc2skos/tree/jskos for a first try based on rdflib-jsonld
- update JSKOS context document
- set
@context
field to URL instead of copying the full context in output -
find out how to iteratively convert RDF to JSKOS to process multiple records. Converting the full DDC would not work
from mc2skos.
By "Converting the full DDC would not work", do you mean that it consumes too much memory? Serializing each concept in a streaming manner as it's processed instead of piling them all up in the graph would be good for all output formats, but not sure how to implement it without digging too much into rdflib internals. Perhaps it could work to serialize and flush the graph after each concept has been processed, but not sure what the overhead would be, and how to handle the context.
from mc2skos.
Yes, I bet that streaming would be required at least for JSKOS - but I have not tested with a full DDC dump yet.
from mc2skos.
When I'm converting a full DDC to Turtle, it uses about 400 MB of memory (or 500 when using all the flags), which isn't really an issue, even though streaming output would be much more elegant, and the lack of it is clearly one of the weak points of this tool.
from mc2skos.
Ok - streaming is not actually needed. I'll further work on support of JSKOS.
from mc2skos.
Related Issues (20)
- New release with CHANGES.md HOT 1
- Add option to exclude mappings and to only get mappings
- Support 7XX mapping links from classification records HOT 1
- Support number spans with additional spaces
- Extract mappings from field 024 HOT 2
- Support converting GND authority file record HOT 3
- get_mappings assumes a specific order of the subfields
- Include $d from 1XX headings
- Support LC Names and Genre/Form Terms
- Rename --uri to --concept or add alias HOT 1
- --list-schemes should emit vocabularies.yml
- Missing broader relations from GND
- Converting to MARC 21 HOT 1
- Support entity types HOT 1
- Invalid JSKOS output HOT 1
- Use preferred relative index term for WebDewey
- Support URIs in fld 856 HOT 3
- AttributeError when mapping 5XX fields HOT 1
- Use URIs from 7XX subfield $1 HOT 6
- rdflib-jsonld package has been deprecated HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mc2skos.