Comments (4)
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.
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.
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.
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)
- Fixup default argument usage. HOT 2
- Add tests and checks for default values.
- Add a test to check for plural `@type` and type-alias values that have type-scoped contexts
- Make code more DRY
- Improve error reporting HOT 1
- Add language map tests and support language tags as non-terms
- Ensure that UUID URNs with queries and hash fragments are handled losslessly
- Unable to retrieve documentLoader HOT 1
- Examples don't work with node v16.123.1 HOT 4
- Issues with loading certain terms HOT 4
- Encoded byte array prefix does not match the specification HOT 4
- Encoding fails with undefined term HOT 2
- Scoped Contexts Processing Algorithm HOT 1
- Single item array could be compressed as a single value saving one byte
- Multibase term value is not properly compressed when using @vocab
- Term to Code dictionary includes only applied scoped contexts HOT 1
- Ensure codec values are registered in the spec. HOT 2
- Add codec for well-known DI cryptosuite strings HOT 1
- Ensure data URLs with `base64` encoding are compressed and decompressed properly.
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 cborld.