JSONiq: Java implementation as library? - json

Looking at the implementation of the JSONiq specification (www.jsoniq.org).
Most of them are standalone deployment. e.g. Zorba, VXQuery, etc and are designed to query JSON based databases or process large JSON documents.
I am surprised to find all implementations are trying to solve such problem without modularizing the JSONiq execution as library. It should have been much like Apache Lucene(library) to Apache Solr(Search Server+Rest API) and other indexing solution.
Is there a java library available (similar to Saxon for XQuery), which can be embeded into java apps and can execute the JSONiq specs defined as functions in .xq or .xquery files ?
Or How can Saxon be extended to parse and execute the JSONiq specification ?

JSONiq is an XQuery-like language for processing JSON. Most of its good ideas were incorporated into XQuery 3.1, but in a way that integrated the XML and JSON data models. I don't believe JSONiq offers any functionality that's not in XQuery 3.1, and it's not an open standard, so there would be little point in implementing it in Saxon.

There are currently two released JSONiq implementations in Java, and they can both read data from HDFS or the local filesystem, and process large amounts in parallel on multiple cores/machines:
Rumble (Spark) -- supports the JSONiq core language (JSON-friendly syntax), can also read JSON-like formats (Parquet, Avro, CSV, ROOT, ...) from any file system supported by Spark (S3, HDFS, local file system, ...). Rumble also exposes its functionality via a Java API and is available as a Maven dependency.
VXQuery (Hyracks) -- supports the JSONiq extension to XQuery

Related

Mule project migration from SOAP to JSON

I would like to understand whether we really have any tool to convert the WSDL to RAML for migrating the project from SOAP to JSON.
Share with me the tool if we have any.
There maybe some tools that perform a translation between WSDL and RAML but the standards are significantly different and any automated translations can be partial only. You are probably going to need to complete manually the translation. You might get better results by starting a RAML version from scratch without the artifacts left by a tool.

Read data from XBRL file with vb.net

I state that I don't have much experience with XBRL files.
I need to read some data from an XBRL file using vb.net.
I tried to look for examples but could not find anything clear.
Is there a class that read data from an xbrl file?
The XBRL files that I use are simple, with only the balance sheet and the income statement, I don't need to extract other data.
Thanks
There are a few .NET-friendly XBRL processors available. One possibility is Gepsio. Gepsio is a document object model class library for XBRL documents based on .NET Standard 2.1. It is open source at https://github.com/JeffFerguson/gepsio, a "Getting Started" Wiki at https://github.com/JeffFerguson/gepsio/wiki, and a NuGet package available at https://www.nuget.org/packages/Gepsio/.
Another popular choice is Arelle. Arelle is a project to provide the XBRL community with an easy to use open source platform for XBRL. It supports XBRL and its extension features in an extensible manner. It does this in a compact yet robust framework that can be used as a desktop application and can be integrated with other applications and languages utilizing its web service. You can find it at https://arelle.org/.

Json library for Cloud Dataproc

I need to find a json library for Google Cloud Dataproc.
I'm a bit not sure where can find a list of supported json libraries.
Or if I write my own, which dependencies can be taken into Dataproc?
Any data on this topic will be highly appreciated.
Best Regards,
Oleg
If you are talking about reading/parsing JSON objects, than you can use Gson library witch is a part of Hadoop distribution on Dataproc.
Also, you can use JSON library of your choice and any other dependencies, but you should create uber jar for your job and include all these libraries/dependencies into it.
If you are talking about Google JSON API Client libraries, than Dataproc by default deploys 1.20.0 version as part of GCS and BQ connectors. You still can use newer JSON API Client library version if you will relocate it inside your job's uber jar to avoid conflicts with version deployed to Dataproc.
See more detailed answer on conflicting dependencies management in Dataproc here.

JavaFX and JSON

Is it possible to process JSON with Java 7 or Java 8 without using 3rd party and without J2EE? I'd like to stick with JDK for a JavaFX desktop application. The only thing regarding JSON I've found so far is in J2EE. But even then it's very cirumstantial to use compared to libraries like gson. I had hopes that there's some implementation that uses JAXB to serialize into JSON instead of XML.
Thank you very much for the information.

On WindowsPhone for retrieving webservice data, which is applicable whether JSON or xml

I used xml services for post and retrieving data from webservices. I dont know about JSON parsing, whether JSON is easy than xml.
That depends, do you plan on supporting other platforms?
The .Net based platforms have more than ample resources for easily consuming services that are hosted with a variety of serialization methods (and many other variances). If you only plan on supporting Windows Phone or other .Net based platforms than you may find that XML Serialization is easy and can stick with it. When you start to consider other platforms then you may find that Xml serialization can at times be a pain and JSON is the preferred way.
If you want to go with JSON parsing in addition to the JSON serializer that comes with the .Net platforms you may also want to check out JSON.Net (which is much more flexible than what comes with the .Net libraries) and RestSharp for consuming REST based services with JSON serialization.