Coder Social home page Coder Social logo

`@vocab` not implemented about cborld HOT 4 OPEN

OR13 avatar OR13 commented on June 9, 2024
`@vocab` not implemented

from cborld.

Comments (4)

msporny avatar msporny commented on June 9, 2024 1

Looks like we're throwing here... when we shouldn't be (when @vocab is used): b93b15f#diff-e4a9d890818b54410ff95248f37a9769a93e2f409ec7fb3c090c4c1db48b062eR124-R128

We should detect when @vocab is active and NOT throw... just leave the term as-is (string).

from cborld.

dlongley avatar dlongley commented on June 9, 2024

Yeah, @vocab isn't currently supported, but I expect that we'll want to figure out if we can support it in some way (i.e., either with or without compression for keys that depend on it).

from cborld.

OR13 avatar OR13 commented on June 9, 2024

I made an ipld middleware that will convert from a context that has a vocab to one that does not, and it works... but its pretty hacky... https://github.com/OR13/binary-linked-data/blob/main/deeply-nested-sadness.test.js

from cborld.

dlongley avatar dlongley commented on June 9, 2024

@msporny,

We should detect when @vocab is active and NOT throw... just leave the term as-is (string).

At present, all terms must be transformed to term IDs (integers), so there's no "leaving a term as-is (string)". We would have to explore whether that approach is viable.

from cborld.

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.