Giter Site home page Giter Site logo

Comments (5)

nichtich avatar nichtich commented on August 23, 2024

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.

danmichaelo avatar danmichaelo commented on August 23, 2024

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.

nichtich avatar nichtich commented on August 23, 2024

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.

danmichaelo avatar danmichaelo commented on August 23, 2024

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.

nichtich avatar nichtich commented on August 23, 2024

Ok - streaming is not actually needed. I'll further work on support of JSKOS.

from mc2skos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.