Code Monkey home page Code Monkey logo

Comments (5)

mcollina avatar mcollina commented on June 27, 2024

The problem is data modelling. Modelling the data as RDF in a graph format is something that requires some user involvement. However plenty has been written on the topic (hint: search google for "csv to rdf"). Have a look here: http://www.w3.org/wiki/ConverterToRdf. Once you have the data into RDF, you can save it in N3/turtle format and import it with levelgraph-n3.

However, you can simply parse the csv with node.js and store it in levelgraph as follows:

  1. get a unique identifier for each row (from the fields, I don't understand Finnish).
  2. store a triple for each cell in each rows, using the column name as predicate and the value as object.
  3. query it with the normal levelgraph methods.

If in the process you add a Wiki page, I will be extremely grateful :).

from levelgraph.

mcollina avatar mcollina commented on June 27, 2024

BTW, storing it as RDF can be simplified by using URI as identifiers for subjects, predicates and objects (where approriate, i.e. when the object are not values, but links to other entities).

from levelgraph.

pe3 avatar pe3 commented on June 27, 2024

Thanks. Will do at some point. For the weeks to come I will be traveling and enjoying summer. But when I do I will also have a look at OpenRefine and LODRefine.

from levelgraph.

mcollina avatar mcollina commented on June 27, 2024

Ok, I'm closing this! Ping me if you need more help!

from levelgraph.

pietercolpaert avatar pietercolpaert commented on June 27, 2024

Hi Petri @pe3,

What did you end up using? Did you find a mapping system for node?

We've been working on tools like Karma, The DataTank and LODRefine. You can also read a paper about extending R2RML to RML over here

from levelgraph.

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.