Giter VIP home page Giter VIP logo

ld-cli's Introduction

Hi everyone!

ld-cli's People

Contributors

dependabot[bot] avatar filip26 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

cybernetics

ld-cli's Issues

Enable CBOR-LD document dictionaries support

e.g. utopia barcodes examples

{
  "code": 100,
  "context": {
    "https://www.w3.org/ns/credentials/v2": 32768,
    "https://w3id.org/vc-barcodes/v1": 32769,
    "https://w3id.org/utopia/v2": 32770
  },
  "https://w3id.org/security#cryptosuiteString": {
    "ecdsa-rdfc-2019": 1,
    "ecdsa-sd-2023": 2,
    "eddsa-rdfc-2022": 3,
    "ecdsa-xi-2023": 4
  }
}

Filter out unrelated stacktraces

e.g.

com.apicatalog.cborld.decoder.DecoderError: The encoded document must be at least 4 bytes but is [0].
	at com.apicatalog.cborld.decoder.Decoder.decode(Decoder.java:64)
	at com.apicatalog.cli.command.DecompressCmd.call(DecompressCmd.java:74)
	at com.apicatalog.cli.command.DecompressCmd.call(DecompressCmd.java:27)
	at picocli.CommandLine.executeUserObject(CommandLine.java:2045)
	at picocli.CommandLine.access$1500(CommandLine.java:148)
	at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2465)
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2457)
	at picocli.CommandLine$RunLast.handle(CommandLine.java:2419)
	at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277)
	at picocli.CommandLine$RunLast.execute(CommandLine.java:2421)
	at picocli.CommandLine.execute(CommandLine.java:2174)
	at com.apicatalog.cli.App.main(App.java:82)
	at [email protected]/java.lang.invoke.LambdaForm$DMH/sa346b79c.invokeStaticInit(LambdaForm$DMH)

only the first three lines are relevant

Enable Windows Build

Enable Windows build by adding windows-latest into build matrix ( .github/workflows/executables.yml). Resolve missing cl.exe command issue.

add `--expand-context` option [was: flatten with --context does not seem to be working (?)]

This works:

ld-cli flatten --mode=1.1 --input=file:"$PWD"/test/picasso.json

with this picasso.json, which has (x2) @context loading this picasso-context.jsonld.

When I remove (x2) the @context, as I will in https://github.com/enola-dev/enola/pull/796/files (WIP), then this doesn't work, there is no failure, but content is missing:

ld-cli flatten --mode=1.1 --context=file:"$PWD"/test/picasso-context.jsonld --input=file:"$PWD"/test/picasso.json

PS, just FYI: I had used ld-cli for exploring and learning JSON-LD (Thank You for creating it!), and am now moving on to directly using https://github.com/filip26/titanium-json-ld (actually its https://github.com/HASMAC-AS/hasmac-json-ld fork, via https://github.com/eclipse-rdf4j/rdf4j) and it works there. So I don't really need a fix, but just wanted to let you know about this, in case you wanted to look into it.

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.