Open pdehaan opened 5 years ago
I think you can do POST as well.
A better way would be to install the "linkeddata" ruby gem and use the "rdf" command line interface, such as "rdf lint http://example.org/example.jsonld", or a local file. The linter is implemented on top of the RDF Reasoner, which is exposed through the CLI.
Yeah, the problem was that I was trying to use this via Node.js, so having to install Ruby would be non-trivial in this case.
But I'll play around w/ POST and see if I can figure out how to send the payload. Thanks!
I would caution against overusing the service, as it’s hosted on a free Heroku dyno, and could become overwhelmed. You could consider self-hosting a copy of the service for more intense usage.
Re: "Programatic Access to the Linter" (http://linter.structured-data.org/about/),
The docs say:
Is there a way to do a POST request with an HTML string to be processed? I have a bunch of .jsonld files locally that I need to try linting, but they aren't online. Having the ability to POST a request would let me wrap the .jsonld files in a
<script>...</script>
tag and validate them easily using Node.