Giter Club home page Giter Club logo

Comments (2)

simleo avatar simleo commented on May 29, 2024

The spec says data entities MUST be linked from the root via hasPart; hasFile, OTOH, is only mentioned as a term imported from PCDM. When reading a crate, the library adds all items listed in hasPart as data entities, then assumes everything else ("test.csv", in this case) is a contextual entity. Since "test.csv" is not an absolute URI, it adds a # to turn it into a local id (this is done for all contextual entities).

To sum it up, I believe the library is behaving consistently with the spec here. I will close this and perhaps you can open an issue on the ro-crate repo if you think a spec update is necessary.

from ro-crate-py.

ptsefton avatar ptsefton commented on May 29, 2024

OK, my test case was wrong - I keep getting hasPart and hasFile mixed up. My mistake, sorry!

And yes, that is what the spec says. When I introduced the abstract repository classes from pcdm it was to allow a crate to contain a set of files with an abstract structure that does not necessarily reflect the directory structure - as exported from a database or repository. What this means is that we probably should have said that the pcdm classes are DataEntities that can be chained like Datasets/directories and that hasFile is equivalent to hasPath.

from ro-crate-py.

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.