<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Andreas Eberhart on Medium]]></title>
        <description><![CDATA[Stories by Andreas Eberhart on Medium]]></description>
        <link>https://medium.com/@dashjoin?source=rss-50ca547d5ddd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*t5rJgd2mXI27O0f0OY5msw.png</url>
            <title>Stories by Andreas Eberhart on Medium</title>
            <link>https://medium.com/@dashjoin?source=rss-50ca547d5ddd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 04:07:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dashjoin/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com" rel="hub"/>
        <item>
            <title><![CDATA[Lightning-Fast Decisions and Classifications using Jev & Ollama]]></title>
            <link>https://dashjoin.medium.com/lightning-fast-decisions-and-classifications-using-jev-ollama-7c697c297891?source=rss-50ca547d5ddd------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c697c297891</guid>
            <category><![CDATA[typesafe-ai]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ollama]]></category>
            <category><![CDATA[system-one-model]]></category>
            <category><![CDATA[classification]]></category>
            <dc:creator><![CDATA[Andreas Eberhart]]></dc:creator>
            <pubDate>Tue, 06 Oct 2026 16:30:28 GMT</pubDate>
            <atom:updated>2026-10-07T12:43:20.423Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*llmNn6O52iBSxyzioQFPSw.jpeg" /></figure><p>In today’s fast-paced digital landscape, building software that processes text efficiently is a core requirement for modern automation. Whether you need to automatically react to customer emails, route support tickets to the correct department, or instantly determine the urgency of an incoming request, intelligent text classification is key.</p><p>While Large Language Models (LLMs) offer a solution through structured <a href="https://developers.openai.com/api/docs/guides/structured-outputs">JSON mode</a> that guarantee parsable outputs, relying on cloud-based APIs can often introduce unwanted latency and raise serious data privacy concerns.</p><p>This article introduces a powerful, secure alternative: using <a href="https://ollama.com/blog/ollama-now-supports-jev-style-decision-models">Jev-style</a> super-efficient models powered by a local Ollama instance. By bringing processing in-house, you can achieve near-instantaneous structured decisions without your data ever leaving your infrastructure. Read on to discover why Jev is different from LLMs and how to get started with a complete, step-by-step sample ticket classification application.</p><h3>Jev vs LLM’s JSON Mode</h3><p>Traditional large language models (LLMs) are generative AI systems built to output sequential, free-form text or strings. When developers need structured data for software integration, they use LLM JSON Mode. However, JSON Mode is still bound by autoregressive text generation; the LLM must still predict and generate every single character — such as bracket structures and key names — token by token, which requires subsequent text parsing and validation.</p><p>This is where Typesafe.ai comes in. Their decision model, <a href="https://typesafe.ai/blog/introducing-system-one-models-and-jev">Jev</a>, skips text generation entirely. Instead of executing a generation loop to produce prose or format syntactical structures, Jev maps data context directly to pre-defined schemas in a single hardware pass, returning type-safe decisions, scores, and calibrated probabilities with zero output token processing. Starting with version 0.35, Ollama supports a Jev-style API based on local models.</p><h3>Use Case</h3><p>Our use case will be a small ticket system. The user can enter tickets via a web form. The ticket is stored in a database. We will use Jev to automatically generate the following ticket fields:</p><ul><li>category: identifies the team that will handle the request</li><li>urgency: ticket priority for processing</li><li>security: does this ticket indicate a potentially active security incident</li></ul><p>Note that after this Jev-based routing and classification, tickets still might be auto-resolved by an LLM instead of being processed by a human.</p><h3>Setup</h3><p>We will use the Dashjoin Low Code Platform paired with a local Ollama service. First, we’ll pull the Ollama model and launch the Dashjoin Platform:</p><pre>ollama pull tev1:0.8b<br>docker run -p 8080:8080 -e DJ_ADMIN_PASS=djdjdj dashjoin/platform</pre><p>Login to the application at <a href="http://localhost:8080/">http://localhost:8080/</a> using “admin” with password “djdjdj” and navigate to /#/page/Notebook. Create the database using this command:</p><pre>$create(&#39;config&#39;, &#39;dj-database&#39;, {<br>  &#39;ID&#39;: &#39;dj/itsm&#39;,<br>  &#39;name&#39;: &#39;itsm&#39;,<br>  &#39;djClassName&#39;: &#39;org.dashjoin.service.SQLDatabase&#39;,<br>  &#39;url&#39;: &#39;jdbc:sqlite:itsm.db&#39;<br>})</pre><p>We can use the saveTable function as a shortcut to create our ticket table (for the sake of simplicity, we’ll use the ticket text as the primary key):</p><pre>$saveTable(<br>  &#39;Ignore&#39;, &#39;itsm&#39;, &#39;ticket&#39;, <br>  [<br>    {<br>      &#39;ID&#39;: &#39;cannot log in&#39;, <br>      &#39;category&#39;: &#39;test&#39;, <br>      &#39;urgency&#39;: 1, <br>      &#39;security&#39;: false<br>    }<br>  ]<br>)</pre><h3>System One API</h3><p>The latest versions of Ollama provide the /v1/systemone endpoint. “System One” refers to a new category of foundation models pioneered by Typesafe.ai. Consider the following example:</p><pre>$curl(&quot;POST&quot;, &quot;http://localhost:11434/v1/systemone&quot;, {<br>  &quot;model&quot;: &quot;tev1:0.8b&quot;,<br>  &quot;state&quot;: &quot;The user is complaining that their login button is grayed out and they cannot access their profile.&quot;,<br>  &quot;questions&quot;: {<br>    &quot;category&quot;: {<br>      &quot;type&quot;: &quot;choice&quot;,<br>      &quot;instructions&quot;: &quot;Classify the primary technical infrastructure category of this incident.&quot;,<br>      &quot;criteria&quot;: {<br>        &quot;identity_and_access&quot;: &quot;Authentication, SSO, Okta, Active Directory, password lockouts, credentials, or user access permissions.&quot;,<br>        &quot;network_and_connectivity&quot;: &quot;VPN timeouts, firewall rules, routing issues, DNS configurations, Wi-Fi, or network switches.&quot;,<br>        &quot;hardware_and_endpoints&quot;: &quot;Laptops, desktop peripherals, malfunctioning hardware, mobile phones, printers, or docking stations.&quot;,<br>        &quot;software_and_applications&quot;: &quot;SaaS application slow downs, corrupted software profiles, licensing issues, databases, or application logic bugs.&quot;,<br>        &quot;other&quot;: &quot;General requests, facilities issues, or tickets that do not fit the above technical buckets.&quot;<br>      }<br>    },<br>    &quot;urgency&quot;: {<br>      &quot;type&quot;: &quot;choice&quot;,<br>      &quot;instructions&quot;: &quot;Score the business operational impact and ticket urgency from 1 to 5.&quot;,<br>      &quot;criteria&quot;: {<br>        &quot;1&quot;: &quot;Low/Individual: Affects a single user for non-blocking software or minor peripheral issues.&quot;,<br>        &quot;2&quot;: &quot;Medium/Individual: Affects an individual user blocking essential daily functions (e.g. executive down).&quot;,<br>        &quot;3&quot;: &quot;Low/Team: Multiple users affected but partial or temporary manual workarounds exist.&quot;,<br>        &quot;4&quot;: &quot;High/Team: Complete failure of a core subsystem blocking an entire team or department.&quot;,<br>        &quot;5&quot;: &quot;Critical/Global: Widespread platform-wide outage blocking business operations for all or most corporate users.&quot;<br>      }<br>    },<br>    &quot;security&quot;: {<br>      &quot;type&quot;: &quot;noul&quot;,<br>      &quot;instructions&quot;: &quot;Does this ticket indicate a potentially active security incident, compromise, malicious code execution, or unauthorized breach that requires immediate endpoint isolation?&quot;,<br>      &quot;criteria&quot;: {<br>        &quot;true&quot;: &quot;Mentions malware, unauthorized privilege changes, malicious PowerShell, phishing alerts, or endpoint security quarantine.&quot;,<br>        &quot;false&quot;: &quot;Standard operational faults, configuration changes, normal software requests, or general infrastructure bugs.&quot;<br>      }<br>    }<br>  }<br>})</pre><p>We pass our input ticket text along with the name of the Jev model we’d like to use. The questions field contains the information we’d like the model to generate. Note that the textual descriptions of the choice criteria are key to enable to model to make the right classification choices. Both urgency and category are of type choice. The security question is of type noul. This instructs the model to return a probability between 0 and 1. The output of the call is as follows:</p><pre>{<br>  &quot;model&quot;: &quot;tev1:0.8b&quot;,<br>  &quot;answers&quot;: {<br>    &quot;category&quot;: {<br>      &quot;type&quot;: &quot;choice&quot;,<br>      &quot;choice&quot;: &quot;identity_and_access&quot;,<br>      &quot;probabilities&quot;: {<br>        &quot;identity_and_access&quot;: 0.9978638993151571,<br>        &quot;network_and_connectivity&quot;: 0.0018294707349202396,<br>        &quot;hardware_and_endpoints&quot;: 0.00005441075425641972,<br>        &quot;software_and_applications&quot;: 0.00011290708002735254,<br>        &quot;other&quot;: 0.00013931211563901553<br>      },<br>      &quot;confidence&quot;: 0.9897705337788276<br>    },<br>    &quot;urgency&quot;: {<br>      &quot;type&quot;: &quot;choice&quot;,<br>      &quot;choice&quot;: &quot;1&quot;,<br>      &quot;probabilities&quot;: {<br>        &quot;1&quot;: 0.6096181944234147,<br>        &quot;2&quot;: 0.3382696989519286,<br>        &quot;3&quot;: 0.045033646329309854,<br>        &quot;4&quot;: 0.0007899240469526776,<br>        &quot;5&quot;: 0.006288536248394273<br>      },<br>      &quot;confidence&quot;: 0.4746565131723629<br>    },<br>    &quot;security&quot;: {<br>      &quot;type&quot;: &quot;noul&quot;,<br>      &quot;noul&quot;: 0.02580175898436083<br>    }<br>  },<br>  &quot;usage&quot;: {<br>    &quot;input_tokens&quot;: 1591,<br>    &quot;output_tokens&quot;: 4<br>  }<br>}</pre><p>We get the top classification results, as well as probabilities that were assigned to the other options. The following <a href="http://jsonata.org">JSONata</a> expression converts this output to the structure aligned with the database table:</p><pre>answers.{<br>  &#39;category&#39;: category.choice,<br>  &#39;urgency&#39;: urgency.choice,<br>  &#39;security&#39;: security.noul &gt; 0.5<br>}</pre><h3>Putting It All Together</h3><p>The Dashjoin Platform allows defining database triggers. We’ll use the after-create trigger to perform the classification. The new record is passed as “object”:</p><pre>$update(&#39;itsm&#39;, &#39;ticket&#39;, object.ID, $curl(&quot;POST&quot;, &quot;http://localhost:11434/v1/systemone&quot;, {<br>  &quot;model&quot;: &quot;tev1:0.8b&quot;,<br>  &quot;state&quot;: object.ID,<br>  &quot;questions&quot;: ...<br>}).answers.{<br>  &#39;category&#39;: category.choice,<br>  &#39;urgency&#39;: urgency.choice,<br>  &#39;security&#39;: security.noul &gt; 0.5<br>})</pre><p>Whenever a new ticket is created via the API or the UI, the classification is run and the record is updated. The following screenshot shows the ticket table with some sample data:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bgFIzbOH7LhzciOhdIfENg.png" /></figure><p>To test the performance, you can use the following script. It iterates over sample tickets and calls $create() for each of them. On Apple silicon, we measured about 0.2 seconds per call.</p><pre>[<br>  &quot;Single Sign-On (SSO) failure - Users reporting a &#39;400 Bad Request&#39; error when trying to authenticate via Okta across all corporate portals.&quot;,<br>  &quot;Requesting a temporary Adobe Creative Cloud license (30 days) for the design team contractor working on the winter campaign.&quot;,<br>  &quot;High priority - SAP production instance is running extremely slow. Background batch jobs are stalling and blocking inventory updates.&quot;,<br>  &quot;Standard Change - SSL/TLS certificate renewal for the external customer facing portal (://company.com) before expiry next week.&quot;,<br>  &quot;The badge reader at the main entrance of Building B is completely offline. Employees are forced to route through the side reception desk.&quot;,<br>  &quot;Telecom - Requesting an international roaming data pack setup for the sales director traveling to Germany and France next Tuesday.&quot;,<br>  &quot;Security Alert - Endpoint security flagged a potentially malicious PowerShell execution on laptop LP-ENG-4412. Isolated from network.&quot;,<br>  &quot;Internal Wiki (Confluence) search index appears to be corrupted. Querying any keywords returns empty results or 500 error pages.&quot;,<br>  &quot;Facilities Request - The HVAC unit in server room 2B is blowing warm air. Ambient temperature has spiked to 26°C and needs immediate check.&quot;,<br>  &quot;Outbound emails to Microsoft 365 addresses are bouncing back with a &#39;Spam blocklist&#39; error. Need to check our SPF/DKIM DNS records.&quot;,<br>  &quot;Minor Change - Update firewall rules on the staging environment to allow inbound traffic from the new automated testing vendor IP range.&quot;,<br>  &quot;Salesforce integration with Hubspot failed to sync contacts overnight. Over 400 marketing leads are missing from the sales pipeline.&quot;,<br>  &quot;Hardware upgrade - Requesting an extra 16GB of RAM for standard developer workstation to handle heavy local Docker container loads.&quot;,<br>  &quot;Public website is throwing mixed content warnings in Google Chrome. Several asset links are still pointing to HTTP instead of HTTPS.&quot;,<br>  &quot;Account Termination - Offboarding request for departing employee effective Friday. Revoke Google Workspace, Slack, and VPN access at 5 PM.&quot;,<br>  &quot;Automated backup script for the customer database failed with an &#39;Out of disk space&#39; error on the dedicated network storage mount.&quot;,<br>  &quot;Phone system outage - Help desk incoming queue is instantly dropping calls instead of routing them to active customer agents.&quot;,<br>  &quot;Major Change - Migrating legacy file server contents (approx 2TB) to cloud-based SharePoint libraries over the weekend window.&quot;,<br>  &quot;Requesting access to the AWS billing console for the finance manager to track multi-department infrastructure spend metrics.&quot;,<br>  &quot;GitHub Actions CI/CD pipeline is stuck in a permanent queue state for the main repository, blocking code deployments to production.&quot;<br>].<br>$create(&#39;itsm&#39;, &#39;ticket&#39;, {&#39;ID&#39;: $})</pre><h3>Summary</h3><p>Jev-style decision models offer a fast and privacy-friendly alternative to using LLMs for structured text classification. Instead of generating JSON token by token, Jev maps input directly to predefined decisions and probabilities, enabling efficient local inference with Ollama.</p><p>This article demonstrates how to combine Jev, Ollama, and the Dashjoin Low Code Platform to automatically classify support tickets by category, urgency, and security relevance. Using database triggers and a simple JSONata transformation, incoming tickets can be classified instantly without sending sensitive data to a cloud AI service.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c697c297891" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Open Knowledge Format: A Human-Curated Alternative to RAG and Knowledge Graphs]]></title>
            <link>https://dashjoin.medium.com/open-knowledge-format-a-human-curated-alternative-to-rag-and-knowledge-graphs-248aef3b4303?source=rss-50ca547d5ddd------2</link>
            <guid isPermaLink="false">https://medium.com/p/248aef3b4303</guid>
            <category><![CDATA[okf]]></category>
            <category><![CDATA[retrieval-augmented-gen]]></category>
            <category><![CDATA[llm-wiki]]></category>
            <category><![CDATA[knowledge-management]]></category>
            <category><![CDATA[graphrag]]></category>
            <dc:creator><![CDATA[Andreas Eberhart]]></dc:creator>
            <pubDate>Tue, 01 Sep 2026 09:08:19 GMT</pubDate>
            <atom:updated>2026-09-03T09:18:07.732Z</atom:updated>
            <content:encoded><![CDATA[<h4>How a simple combination of markdown, metadata, links, AI agents, and human curation can turn organizational knowledge into an AI-ready knowledge base.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W_WgKLDGdCxTWsD_z3Gyug.png" /></figure><p>Earlier this year, Andrej Karpathy published an AI-assisted approach to structuring knowledge called <a href="https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f">LLM Wiki</a>. The fascinating aspect of this idea is that it only consists of a prompt that instructs agents like Claude or Copilot how to extract knowledge from a document corpus into the wiki and how to query the wiki in order to answer user questions. In June, Google formalized the LLM Wiki idea into the Open Knowledge Format (OKF) <a href="https://github.com/GoogleCloudPlatform/open-knowledge-format/blob/main/SPEC.md">specification</a>.</p><p>Why should you care?</p><p>Organizations have enormous amounts of knowledge in documents, emails, manuals, and other sources. RAG makes this knowledge searchable, but does not necessarily make it curated, structured, or maintainable. Knowledge graphs provide structure, but require substantially more modeling. OKF offers a pragmatic middle ground: AI can help build the knowledge base, while humans retain control over its structure and content.</p><p>This article provides a practical introduction to OKF. It:</p><ul><li>Explains what OKF is and how it can be used to structure organizational knowledge</li><li>Shows how to introduce and implement OKF within your organization</li><li>Demonstrates how to connect OKF to existing systems, data sources, and business applications</li><li>Compares OKF with other approaches, including RAG, GraphRAG, and knowledge graphs</li></ul><h3>Motivation of the Open Knowledge Format</h3><p>In AI, there are two schools of thought: the symbolic reasoning community focuses on logic and deduction in order to make systems intelligent. Take a chess program for instance. It calculates possible moves and evaluates positions in order to win games. The neural network community uses machine learning paradigms with Large Language Models (LLM) being the most prominent technology today. LLMs learn from massive amounts of texts and develop some form of understanding by generalizing from examples.</p><p>In knowledge management, these two schools of thought are also visible. The symbolic reasoning community tends to favor <a href="https://en.wikipedia.org/wiki/Knowledge_graph">Knowledge Graphs</a> (a graph structure of concepts and their relationships) to represent knowledge, whereas the neural network / LLM approach will likely involve <a href="https://de.wikipedia.org/wiki/Retrieval-Augmented_Generation">Retrieval Augmented Generation</a> or RAG (given a question, semantic search — in case of GraphRAG followed by a graph retrieval — is used to identify relevant text blocks which are then given to the LLM in order to answer).</p><p>In a way, OKF sits in the middle. It combines human editing and oversight with AI’s ability to process large amounts of text. This approach is very promising, since almost all organizational knowledge is captured in emails, manuals, papers, etc. With the help of AI, knowledge workers can process the information quickly without losing the ability to curate and structure the knowledge in a traditional way.</p><h3>Open Knowledge Format Spec</h3><p>The specification is quite simple. OKF defines so-called knowledge bundles. A bundle is a folder containing markdown files in the following structure:</p><pre>path/to/bundle/<br>  index.md          # Optional. Directory listing for progressive disclosure.<br>  log.md            # Optional. Chronological history of updates.<br>  &lt;concept&gt;.md      # A concept at the bundle root.<br>  &lt;subdirectory&gt;/   # Subdirectories organize concepts into groups.<br>    index.md<br>    &lt;concept&gt;.md<br>    &lt;subdirectory&gt;/<br>      ...</pre><p>A markdown file explains the concept and usually contains links to other concepts / files. Furthermore, you can encode concept metadata using YAML frontmatter before the markdown text:</p><pre>---<br>type: &lt;Type name&gt;                  # REQUIRED<br>title: &lt;Optional display name&gt;<br>description: &lt;Optional one-line summary&gt;<br>resource: &lt;Optional canonical URI for the underlying asset&gt;<br>tags: [&lt;tag&gt;, &lt;tag&gt;, ...]          # Optional<br># ... trust, lifecycle, provenance, and computation families<br># ... other producer-defined key/value pairs<br>---</pre><h3>Creating and Editing OKF</h3><p>The spec does not prescribe how the wiki is being edited. A common approach can be found in this <a href="https://github.com/Astro-Han/karpathy-llm-wiki/blob/main/SKILL.md">Claude skill file</a> which is derived from Andrej Karpathy’s original post. The wiki is assembled based on a corpus:</p><pre>raw/ — Immutable source material. You read, never modify. <br>wiki/ — Compiled knowledge articles</pre><p>These prompts (we show only a shortened version — please refer to the skill file for the full prompt) instruct the agent how to build the wiki from the corpus:</p><pre>Ingest<br>Fetch a source into raw/, then compile it into wiki/ — unless the source adds nothing new.<br><br>Compile (wiki/)<br>Determine where the new content belongs: Same core thesis as existing article → Merge into that article. <br>New concept → Create a new article in the most relevant topic directory<br><br>Post-Ingest<br>Update wiki/index.md: add or update entries for every touched article. Append to wiki/log.md</pre><p>After the agent suggests changes to the wiki, a human can review and edit the changes before committing them to a versioning system like Git. For a complete real-world example, you can have a look at this <a href="https://github.com/jacquescorbytuech/crm-open-knowledge-wiki">Customer Relationship Management</a> OKF. We will be using this example in this article.</p><h3>Implementing OKF</h3><p>In this section, we will show how you can roll out an existing OKF knowledge bundle in your organization using the Dashjoin Platform. This includes visualizing the wiki and its metadata, querying the wiki from a chatbot, and connecting the wiki with other enterprise systems. We will not cover how to construct a knowledge bundle, since there are countless tutorials on this already.</p><p>We use <a href="https://github.com/dashjoin/docker-compose">docker compose</a> to set up the platform and AI Assistant with this <a href="https://github.com/dashjoin/djapp-aia">AI app</a>:</p><pre>git clone https://github.com/dashjoin/docker-compose<br>cd docker-compose<br># add your API key to .env<br>docker compose up -d<br># make the knowledge bundle available to the app<br>cd volumes/dashjoin/app/upload<br>git clone https://github.com/jacquescorbytuech/crm-open-knowledge-wiki</pre><p><a href="http://localhost:8080/#/login">Login</a> using admin:djdjdj and navigate to the <a href="http://localhost:8080/#/config/dj-function">functions page</a>. The app already contains an import ETL function that parses the knowledge bundle:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bpVI2AY2MBjv4nHF6d6DQA.png" /><figcaption>Run the okf function to import the knowledge bundle</figcaption></figure><p>The import creates three tables:</p><ul><li>concept: contains every wiki concept with its markdown, metadata, and links to other concepts</li><li>type: all frontmatter types used</li><li>tag: all frontmatter tags used</li></ul><p>You can now browse, search, and visualize the wiki:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vTv0YhEpDmmUHVhQRvxRgQ.png" /><figcaption>Wiki page for “conversational messaging” along with a graph view showing other channel concepts</figcaption></figure><p>To query the wiki, go to the OKF page. Whenever you ask a question, it is answered using a two step approach. First, the AI queries for suitable concept pages and returns them using JSON mode. Then, the recommended pages are retrieved and added to the question answering context:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q4jocNF7xxEnUcPZBrzmPg.png" /><figcaption>Using the wiki to answer questions. The sources point back to it</figcaption></figure><p>Note that both the <a href="https://github.com/dashjoin/djapp-aia/blob/main/model/dj-function/okf.expression.jsonata">import script</a> as well as the <a href="https://github.com/dashjoin/djapp-aia/blob/main/model/page/OKF.onChat.jsonata">query algorithm</a> are encoded in the app and can be customized easily.</p><p>A key advantage of the Dashjoin Platform is its ability to connect to other data sources. We can create a customer table with a “channel” column that references our concepts. Once we add some data, we can visualize how customers were acquired via different channels which enables a whole new set of functionality by exposing this data to the AI via MCP. This allows asking questions like: which channel should we invest in, in order to drive product upsell.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*gJcfF9nq5eIsBiNH0Fjbcg.png" /><figcaption>Linking CRM master data to our knowledge bundle</figcaption></figure><p>Now that you saw OKF in action, let’s compare it to other technologies in the area:</p><h3>OKF vs. RAG</h3><p>From a user’s perspective, querying RAG vs. OKF looks very similar. Both answer questions by referencing the sources they used. The key difference lies in the way the knowledge base is established:</p><p>A typical RAG system automates much of the process of turning a document corpus into a searchable knowledge base. The stack splits up the corpus, computes semantic embeddings for the chunks and stores them in a vector database. Once a query comes in, the embedding is computed for the question and semantically similar chunks are retrieved from the vector database. These chunks are then added to the LLM context in order to generate an answer.</p><p>The automatic ingestion process is both a blessing and a curse. On the one hand, adding content requires no manual effort. On the other hand, the system is somewhat of a black box. The user sees which chunks were selected, but never knows which other relevant chunks were omitted. This becomes a problem with larger RAG systems where different topics use similar wording. This can lead to irrelevant — and when used in the wrong context even wrong — information being added to the context.</p><p>OKF requires manual effort when assembling the wiki. But it also gives the author way more control over which information is added to the context. Note that OKF and RAG are not mutually exclusive. An OKF knowledge base can itself serve as the source for a RAG system.</p><h3>OKF vs. Knowledge Graphs</h3><p>Looking at the screenshot above, OKF can already be viewed as a graph structure. So the question is how a knowledge graph is different. Knowledge graphs go beyond a simple “link” relationship between nodes and introduce labelled links as shown in this example of a CRM knowledge graph:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/557/0*El2zR2uFS1SPfEQB" /><figcaption>CRM knowledge graph</figcaption></figure><p>The nodes and edges are stored in a graph database and can be queried using <a href="https://en.wikipedia.org/wiki/SPARQL">SPARQL</a> or <a href="https://en.wikipedia.org/wiki/Cypher_(query_language)">Cypher</a>. Knowledge graphs adhere to <a href="https://en.wikipedia.org/wiki/Ontology_(information_science)">ontologies</a>. An ontology is the conceptual blueprint or rulebook, while a knowledge graph is the populated database of concrete facts built using that blueprint. Ontologies also let you infer new facts from symbolic rules.</p><p>While both OKF and knowledge graphs are methods for representing knowledge, they are quite different. A knowledge graph is more a database of structured information. Textual descriptions are part of the database, but they are not a first class citizen.</p><p>OKF on the other hand is very text centric with the graph structure being more of a side product.</p><h3>OKF vs. GraphRAG</h3><p><a href="https://github.com/microsoft/graphrag">GraphRAG</a> is the technology closest to OKF. Like OKF, there is a building and a query phase. In the building phase, AI is used to construct a knowledge graph from the corpus. The process works as follows:</p><ul><li>Like in RAG, the corpus is sliced into chunks</li><li>An LLM scans each text unit to extract “nodes” (people, places, dates, objects, concepts) and “edges” (the specific relationships connecting them)</li><li>LLM merges duplicate entities and generates short, descriptive summaries for every node</li><li>Interconnected entities are clustered into “communities”</li><li>LLM generates summary reports for these communities at multiple levels</li></ul><p>To answer a query, it uses vector search to find relevant entities within the knowledge graph. From there, it traverses the graph’s edges to pull in neighboring nodes, their relationships, and the original source text chunks. This provides the LLM with a context-rich map of connections. Questions asking for summaries or overarching themes use the pre-generated community summaries.</p><p>Both GraphRAG and OKF leverage AI to assemble the knowledge base. They differ in the storage format (markdown files vs. graph database).</p><p>The key difference is how user edits are handled. In principle, GraphRAG allows for users to edit the resulting knowledge graph. However, once new content is added to the corpus, it can be tricky to merge this data with user edits.</p><h3>Summary</h3><p>In this article we looked at OKF as an emerging technology for AI-assisted knowledge management. Compared to RAG, knowledge graphs, and GraphRAG, its main benefit is the low barrier to entry. AI agents are available to almost all users. OKF is based on the popular markdown format allowing its contents to be consumed by AI and humans alike. The storage format of markdown files, YAML frontmatter, and a simple folder structure makes it portable and suitable for standard version control and collaboration systems like Git. The degree of AI automation vs. human control is up to teams. They can establish a rigorous review process or they can vibe code the knowledge base with almost no review at all. Tools like <a href="https://obsidian.md/">Obsidian</a> allow interacting with OKF seamlessly. We also showed how Dashjoin can be used to link the knowledge base to other systems. In the future, OKF might adopt ideas from <a href="https://en.wikipedia.org/wiki/Semantic_MediaWiki">Semantic Mediawiki</a> in order to add labels to the links from one concept to another. Another way to extract a proper knowledge graph from OKF might be to support <a href="https://w3c.github.io/yaml-ld/">YAML-LD</a> in frontmatter.</p><p>OKF isn’t simply another retrieval technology; it is a human-curated, AI-assisted knowledge representation format that sits between unstructured documents and fully structured knowledge graphs.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=248aef3b4303" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Demystifying Palantir: Features and Open Source Alternatives]]></title>
            <link>https://dashjoin.medium.com/demystifying-palantir-features-and-open-source-alternatives-ed3ed39432f9?source=rss-50ca547d5ddd------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed3ed39432f9</guid>
            <category><![CDATA[palantir]]></category>
            <category><![CDATA[digital-sovereignty]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Andreas Eberhart]]></dc:creator>
            <pubDate>Fri, 21 Nov 2025 13:17:26 GMT</pubDate>
            <atom:updated>2026-02-05T09:23:29.954Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*L9V_zLdlJsSz_I6M.png" /></figure><p>Recently, I watched Palantir’s CEO <a href="https://www.youtube.com/watch?v=mqa1yEd891o">Alex Karp’s response</a> to Michael Burry shorting NVIDIA and Palantir. This one line stuck with me: “The idea that chips and ontology is what you want to short is bats — — crazy”. So he used “ontology” (a term that pops up in the context of <a href="https://en.wikipedia.org/wiki/Knowledge_graph">Knowledge Graphs</a>) as the one word to describe what Palantir is about, which I found quite interesting because the average CNBC viewer probably has no clue what he means by this.</p><p>This led me to dig into Palantir’s technology. With the current discussion in Europe around digital sovereignty in mind, this article looks at whether Palantir could be replaced with a stack of Open Source technology.</p><h3>Palantir Foundry Features</h3><p>This section explains what’s behind the <a href="https://www.palantir.com/docs/foundry/">six core features</a> that make up the various Palantir products:</p><h4>Data Integration</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fvi9RWB0TedXWAe4Tbxzeg.png" /></figure><p>To get started, Palantir needs to access data. No big surprises there: We find a number of connectors and engines that transform data. A lot of the terminology is familiar from data warehouses and data lakes. Note that Palantir does not need to ingest all data. It is also possible to federate some queries to other big data systems in order to access very large or realtime datasets.</p><h4>Model Integration</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*td5TuklU82w51NAImjBHYw.png" /></figure><p>The term model is a bit confusing here. It refers to machine learning models and not data models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6Jaq1WDhOJqcRxAv.png" /></figure><p>This screenshot shows how <a href="https://en.wikipedia.org/wiki/Torch_(machine_learning)">Torch</a> is used to develop classification and predition models. Example use cases would be disease classification from medical images or time-series forecasting.</p><h4>Ontology</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vj0PTw2wDR0RCwNQdtdKIw.png" /></figure><p>Ontology is an operational layer that maps digital assets — datasets, virtual tables, and models — to their real-world counterparts. Ontology differs from a traditional database entity relationship model:</p><ul><li>Object types and link types between them try to use real world terminology as much as possible. They also ignore application or performance specific artefacts such as a table for materializing intermediate results.</li><li>Object types and link types emphasize documentation and metadata you typically find in data catalogs (author, creation date, etc.)</li><li>Link types and object properties can be shared across objects. For instance, you would find the same “date of birth” property in both the employee and contractor object types.</li></ul><p>Palantir applications are built on top of the ontology. Data sources are mapped onto this terminology allowing for multiple sources to be integrated into a single conceptual model.</p><h4>Analytics</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9jerUvSbB6zyKjeOy0eWsQ.png" /></figure><p>The analytics features are comprised of a set of functionalities known from business intelligence (BI) applications. The user can compose dashboards, display charts, pivot-controls, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IbRK2kL3sddhn8UP.png" /></figure><p>The charts are driven by database queries (using the ontology terminology). Palantir supports writing queries in <a href="https://www.palantir.com/docs/foundry/slate/concepts-queries/?utm_source=chatgpt.com#sql-queries">SQL</a>, R, Java, Python, or Typescript.</p><h4>Application Building</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DZB3mFobwNEPjs06FZrYJQ.png" /></figure><p>Palantir describes an application as supporting a “specific decision-making process and allow users to capture their decisions via data writeback”. An application mostly consists of dashboards and data entry forms. It can also include workflows and custom data visualizations.</p><h4>Security</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g6ForK25HsGLvnmqpm4pLA.png" /></figure><p>Applications are secured in a variety of ways. First, an organization’s identity management (IDM) system is connected via OpenID. User and role information is used to decide whether a specific data record can be viewed, queried, or changed. Finally, data can be encrypted at rest and across the network.</p><h3>Palantir Products</h3><h4>Apollo</h4><p>Using Palantir requires a lot of customization: Writing mappings and queries, training models, composing dashboards, configuring access control. In order to manage these assets and deploy them safely Apollo provides CI/CD features.</p><h4>Artificial Intelligence Platform (AIP)</h4><p>The AIP integrates large language models for a variety of tasks. Of course chatbots are part of the package, but this also includes information retrieval, classification, sentiment analysis, trainslation, etc.</p><h4><strong>Gotham</strong></h4><p>Gotham is a bundle of Palatir technology that is marketed for law enforcement and defense use cases. Note that Palatir does not act as a data broker. Specifically, buying into the platform does not give you access to intelligence data.</p><h3>Alternatives</h3><p>Palantir offers a very comprehensive feature set. It packages and combines the best of breed tooling from data warehouses / ETL, machine learning, data integration / Ontology, business intelligence, application development and delivery, and security into a comprehensive solution. However, this comes with a hefty price tag generally running into hundreds of thousands or millions of dollars annually depending on the complexity and scale of the customer’s needs.</p><p>Let’s look at alternative Open Source offerings:</p><p><strong>Data Integration</strong>: There are plenty of ETL offerings. <a href="https://www.talend.com/resources/get-started-talend-open-studio-data-integration/">Talend open studio</a> for instance offers a powerful, yet free version of its flagship product. Open source databases like <a href="https://www.postgresql.org/">Postgres</a> and <a href="https://spark.apache.org/">Apache Spark</a> provide powerful engines for storing and querying datasets.</p><p><strong>Model Integration</strong>: The Palantir screenshot shows that they also rely on open source solutions like Torch for machine learning tasks. A management UI is also available from <a href="https://torchstudio.ai/">Torch Studio</a>.</p><p><strong>Ontology</strong>: One can argue that a data warehouse also uses an Ontology by mapping datasets into a common vocabulary. The <a href="https://github.com/dashjoin/platform">Dashjoin low code platform</a> takes this up a notch by establishing a linked data graph over a set of data sources. The system allows to seamlessly browse over any incoming or outgoing relationship of any data record. Palantir’s data catalog features are well-covered by <a href="https://open-metadata.org/">Open Metadata</a> for instance.</p><p><strong>Analytics</strong>: There are plenty of very good open source BI solutions, most notably <a href="https://superset.apache.org/">Apache Superset</a>.</p><p><strong>Apollo / Application Building</strong>: Palantir applications can be compared to a low code platform, since it allows building functionality on top of powerful platform features and libraries. <a href="https://dashjoin.github.io/platform/latest/development-production/">Dashjoin Studio</a> offers comparable functionality by shipping with a browser-based VS Code and integrated GitOps application delivery features.</p><p><strong>Security</strong>: OpenID integration and <a href="https://www.postgresql.org/docs/current/encryption-options.html">encryption options</a> are standard for pretty much all offerings.</p><p><strong>AIP</strong>: Palantir exposes features of large language models. All of these are available either via the vendor APIs like OpenAI or Mistral or by exposing local GPU and <a href="https://huggingface.co/">open source LLMs</a> compute via <a href="https://ollama.com/">Ollama</a>. You can use AI-enabled UIs like <a href="https://www.librechat.ai/">Librechat</a> to consume this functionality.</p><h3>Conclusion</h3><p>Palantir provides a powerful, integrated platform for data integration, machine learning, ontology, analytics, and secure application building, all tied together by its ontology layer. However, many of these capabilities can be achieved with open source tools — most notably <strong>Dashjoin</strong>, which offers a unified solution covering data integration, ontology, analytics, application building, and deployment in a single platform. While assembling an open source stack traditionally requires combining multiple tools, Dashjoin simplifies this process, providing flexibility, transparency, and cost efficiency. For organizations seeking control without compromising functionality, Dashjoin represents a compelling alternative to proprietary solutions like Palantir.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed3ed39432f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vibe Coding Low Code Apps]]></title>
            <link>https://dashjoin.medium.com/vibe-coding-low-code-apps-81fdd84b4acb?source=rss-50ca547d5ddd------2</link>
            <guid isPermaLink="false">https://medium.com/p/81fdd84b4acb</guid>
            <category><![CDATA[low-code]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[vibe-coding]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Andreas Eberhart]]></dc:creator>
            <pubDate>Wed, 15 Oct 2025 14:16:33 GMT</pubDate>
            <atom:updated>2025-10-15T16:23:51.712Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g-t4G0wR4yYW9uuWdh5pEQ.png" /></figure><p>Both Vibe Coding and Low Code promise to empower users to develop software without requiring a formal computer science training.</p><p>Low Code achieves this by providing a point &amp; click user interface and by offering larger building blocks to the developer. We described this as the simplicity vs. expressiveness tradeoff <a href="https://medium.com/@dashjoin/simplicity-vs-53571b9d3ef8">this this paper</a>.</p><p>Vibe coding takes a different approach. Users describe what they would like to build in English and the large language model (LLM) writes the code. LLMs have been trained on a vast amount of code samples using different programming languages and frameworks. Therefore, with Vibe Coding the user can ether specify the tools of choice, or the LLM picks a suitable one. Andrej Karpathy, who coined the term Vibe Coding, describes it as “<a href="https://x.com/karpathy/status/1617979122625712128?lang=en">The hottest new programming language is English</a>”.</p><p>In this paper, we look at the pros and cons of Vibe Coding and explore how the two worlds can be combined.</p><h3>Pros of Vibe Coding</h3><p>Vibe Coding is extremely useful whenever you are not 100% familiar with the programming language or the tooling. In the old days, developers would resort to StackOverflow in order to find code examples and answers to their questions. Vibe Coding is way more powerful because AI is able to generalize from the massive amount of training data in order to answer specific user questions.</p><p>Another advantage is the integration into integrated development environments (IDE) like VScode / Copilot. The screenshot below shows how a simple prompt “display user info in a card” is immediately converted to react code in this example. From looking at the project, Copilot knows that we are using the MUI framework and React.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*RZ6tm0rPQWl8xORcg79dkw.png" /></figure><p>AI can also interact with a bugtracker and auto-suggest fixes in the code.</p><h3>Vibe Coding Cons</h3><p>AI suggests plenty of edits. At some point, you might not have the time to understand the generated code. You simply accept the changes and keep prompting. While this is great for prototyping, it can lead to serious problems down the line:</p><h4>Poor code quality and maintainability</h4><p>AI-generated code can be verbose, poorly structured, and lack efficiency, making it difficult to maintain and scale over time. This can lead to “technical debt” that is hard to manage.</p><h4>Security vulnerabilities</h4><p>Vague prompts can lead to insecure code, with risks like arbitrary code execution, memory corruption, and misconfigurations that allow unauthorized access to data.</p><h4>Debugging and troubleshooting</h4><p>Debugging AI-generated code can be a “time sink” because its logic may be opaque. The effort to fix errors can outweigh the time saved by AI generation.</p><h3>The best of both Worlds</h3><p>The risks of Vibe Coding all arise after the point when you simply trust AI can do not understand or verify the generated code. Therefore we propose the following approach:</p><p>A Low Code framework hides a lot of the verbose and nitty gritty details by providing larger building blocks to work with. As a consequence, the code is much more compact. So if we use Vibe Coding to generate a Low Code App, the code is concise and therefore easier to understand. This mitigates most of the risks outlined above.</p><p>The following screenshot shows an example of a dashboard written using the Dashjoin Low Code Platform.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SBfxTJ2jAOdvRFe8DlmG1g.png" /></figure><p>The code consists of a concise JSON file describing the page layout with a chart widget. We are able to “teach” the AI about Dashjoin by providing a <a href="https://github.com/dashjoin/platform/blob/master/llms.txt">llms.txt</a> file in the context (think of <a href="https://www.youtube.com/watch?v=6AOpomu9V6Q">Trinity learning to fly a helicopter</a> in The Matrix). llms.txt is a proposed standard file for websites that provides a structured list of URLs and content summaries to help large language models (LLMs) better understand and use a website’s information. In our case, llms.txt contains an AI-friendly version of the documentation. It contains a large number of examples allowing the AI to generalize from those.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LBGS1ngFrjvPR9FVtoSR_g.png" /></figure><h3>Summary</h3><p>Vibe Coding offers tremendous opportunities, especially in situations where users are not 100% proficient in a certain environment. The integration into IDEs is very powerful and AI can generalize from LLM-friendly documentation and provide meaningful assistance.</p><p>Choosing a Low Code Platform for your Vibe Coding projects makes sure that the code is concise and remains manageable, even if it was auto-generated to a large extent. This avoids many of the common Vibe Coding pitfalls.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81fdd84b4acb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[API Schemas: Exploring Validation and Code Generation]]></title>
            <link>https://dashjoin.medium.com/api-schemas-exploring-validation-and-code-generation-23b5a2ede303?source=rss-50ca547d5ddd------2</link>
            <guid isPermaLink="false">https://medium.com/p/23b5a2ede303</guid>
            <category><![CDATA[json-schema]]></category>
            <category><![CDATA[open-api]]></category>
            <dc:creator><![CDATA[Andreas Eberhart]]></dc:creator>
            <pubDate>Sun, 05 Jan 2025 19:46:02 GMT</pubDate>
            <atom:updated>2025-05-08T08:38:41.397Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*LhHjlrrO93XkZTMO1Ajyaw.jpeg" /></figure><p>Recently, I traveled to <a href="https://www.apidays.global/paris/">API Days in Paris</a> where I attended the <a href="https://conference.json-schema.org/">JSON Schema Conference</a> and helped staff the JSON Schema, AsyncAPI, OpenAPI, GraphQL booth. Overall, the vibe on JSON Schema was very positive, but there were some grumblings about problems with code generation. Specifically, people complained about certain schema constructs not being supported by tooling for the target language. There are also ongoing debates about how the different schema languages compare to each other and which one “is better”. <a href="https://www.linkedin.com/posts/erikwilde_unpopular-opinion-xml-schema-was-a-better-activity-7267856239269756928-_tnU/">This thread</a>, for instance, debates XML Schema vs. JSON Schema.</p><p>There are also alternative schema languages being proposed. <a href="https://jsontypedef.com/">JSON Type Definition</a> is a minimal subset of JSON Schema and is designed to “Enable code generation from JTD schemas”. <a href="https://github.com/clemensv/json-cs">JSON Compact Schema</a> uses some of JSON Schema and “and aims for compatibility where possible”, but differs vastly in some areas. The <a href="https://datatracker.ietf.org/doc/html/rfc8610">Concise Data Definition Language</a> is yet another alternative and looks more like a grammar.</p><p>In this article, we first look at the basics. We evolve a basic API client with the help of OpenAPI and JSON Schema and highlight the problems this solves. The second part identifies common problem areas where implementations tend to behave incorrectly and inconsistently. Finally, we outline some general guidelines for tools to avoid these problems.</p><h3>OpenAPI Basics</h3><p>Let’s look at some basics first. With the rise of AJAX and Single Page (JavaScript) Applications, JSON has replaced XML as the goto serialization format. OpenAPI has also emerged as the de-facto standard for describing APIs. Therefore, we focus on calling an OpenAPI JSON service using Java. We will start with a vanilla client, and step by step, introduce validation and code generation to make our lives easier.</p><p>Note that the concepts also apply for both clients using other languages as well as code that implements the server side.</p><h4>cURL</h4><p>We will use the <a href="https://petstore.swagger.io/#/user/getUserByName">Petstore’s getUserByName service</a>. We can test the service (using the username: user1) using the Swagger API tooling. The system presents us with a cURL command line to perform the call from a shell. We encode the username in the URL, set an HTTP header, and run a GET request:</p><pre>curl -X &#39;GET&#39; \<br>  &#39;https://petstore.swagger.io/v2/user/user1&#39; \<br>  -H &#39;accept: application/json&#39;</pre><h4>Vanilla Java Client</h4><p>That’s a good start. We can easily translate this to Java:</p><pre>URLConnection con = new URL(&quot;https://petstore.swagger.io/v2/user/user1&quot;)<br>  .openConnection();<br>con.setRequestProperty(&quot;Accept&quot;, &quot;application/json&quot;);<br>try (InputStream in = con.getInputStream()) {<br>  String raw = IOUtils.toString(in, Charset.defaultCharset());<br>  System.out.println(raw);<br>}</pre><h4>OpenAPI Description</h4><p>The Swagger UI is is driven by the <a href="https://petstore.swagger.io/v2/swagger.json">OpenAPI description</a> of the service:</p><pre>{<br>  &quot;host&quot;: &quot;petstore.swagger.io&quot;,<br>  &quot;basePath&quot;: &quot;/v2&quot;,<br>  &quot;schemes&quot;: [ &quot;https&quot; ],<br>  &quot;paths&quot;: {<br>    &quot;/user/{username}&quot;: {<br>      &quot;get&quot;: {<br>        &quot;operationId&quot;: &quot;getUserByName&quot;,<br>        &quot;produces&quot;: [ &quot;application/json&quot; ],<br>        &quot;parameters&quot;: [<br>          {<br>            &quot;name&quot;: &quot;username&quot;,<br>            &quot;in&quot;: &quot;path&quot;,<br>            &quot;description&quot;: &quot;The name that needs to be fetched. Use user1 for testing. &quot;,<br>            &quot;required&quot;: true,<br>            &quot;type&quot;: &quot;string&quot;<br>          }<br>        ],<br>        &quot;responses&quot;: {<br>          &quot;200&quot;: {<br>            &quot;description&quot;: &quot;successful operation&quot;,<br>            &quot;schema&quot;: {<br>              &quot;$ref&quot;: &quot;#/definitions/User&quot;<br>            }<br>...</pre><p>This descriptions contains a lot of information we find in our Java Client:</p><ul><li>Scheme, host, and basePath make up the service URL</li><li>The parameter and the path template describe how to attach the username to the URL</li><li>We learn that the service answers in JSON and that the response conforms to a schema called #/definitions/User (more on that later)</li></ul><h4>Our First Stub</h4><p>A <a href="https://en.wikipedia.org/wiki/Stub_(distributed_computing)">stub</a> hides the details of the underlying network communication and allows accessing the service as if it were local. Using the information of the OpenAPI description, a stub could look like this:</p><pre>public class Store {<br>  String scheme;<br>  String host;<br>  String basePath;<br><br>  public Store(String scheme, String host, String basePath) {<br>    this.scheme = scheme;<br>    this.host = host;<br>    this.basePath = basePath;<br>  }<br><br>  public String getUserByName(String username) throws IOException {<br>    URLConnection con = new URL(scheme + &quot;://&quot; + host + basePath + &quot;/user/&quot;<br>        + URLEncoder.encode(username, Charset.defaultCharset())).openConnection();<br>    con.setRequestProperty(&quot;Accept&quot;, &quot;application/json&quot;);<br>    try (InputStream in = con.getInputStream()) {<br>      return IOUtils.toString(in, Charset.defaultCharset());<br>    }<br>  }<br>}</pre><p>We find service name, operation id, parameter name and type, scheme, host, and basePath in the code. Currently, the method getUserByName simply returns a string. We will fix that in the next section.</p><p>Using this stub generated from the OpenAPI description, our client becomes a lot simpler:</p><pre>new Store(&quot;https&quot;, &quot;petstore.swagger.io&quot;, &quot;/v2&quot;).getUserByName(&quot;user1&quot;)</pre><h4>Interpreting the Result</h4><p>Let’s assume we need to access the user’s ID. Since we’re not using JavaScript, we need to parse JSON and access it via some API. In the Java world, this is typically done using the <a href="https://github.com/FasterXML/jackson">Jackson ObjectMapper</a>. The server response looks like this:</p><pre>{<br>  &quot;id&quot;:2020,<br>  &quot;username&quot;:&quot;user1&quot;,<br>  &quot;firstName&quot;:&quot;Rita&quot;,<br>  ...<br>}                                   </pre><p>The following code parses the result, makes sure it is an object, gets the id field, if it exists, makes sure it is an integer, and finally prints the value. In other words, it validates the result in order to avoid null pointer or number parsing exceptions:</p><pre>String res = new Store(&quot;https&quot;, &quot;petstore.swagger.io&quot;, &quot;/v2&quot;)<br>  .getUserByName(&quot;user1&quot;);<br>ObjectMapper om = new ObjectMapper();<br>JsonNode tree = om.readTree(res);<br>if (!(tree instanceof ObjectNode))<br>  throw new RuntimeException(&quot;expected a JSON object&quot;);<br>JsonNode id = tree.get(&quot;id&quot;);<br>if (id == null)<br>  System.out.println(&quot;no id present&quot;);<br>if (id instanceof LongNode)<br>  System.out.println(id.asLong());<br>else<br>  throw new RuntimeException(&quot;illegal id&quot;);</pre><h4>Making Use of JSON Schema</h4><p>In the service definition above, we saw that the response references a JSON Schema via the pointer #/definitions/User. This schema is defined in the bottom part of the OpenAPI description:</p><pre>  &quot;definitions&quot;: {<br>    &quot;User&quot;: {<br>      &quot;type&quot;: &quot;object&quot;,<br>      &quot;properties&quot;: {<br>        &quot;id&quot;: {<br>          &quot;type&quot;: &quot;integer&quot;,<br>          &quot;format&quot;: &quot;int64&quot;<br>        },<br>        ...<br>      }<br>    }<br>  }</pre><p>Using this schema, we can enhance our stub by having getUserByName return a Java Object instead of a string. The User object is defined according to the JSON Schema. It contains an id getter that returns a long 64 bit integer or null if no id is present:</p><pre>public class User {<br>  JsonNode tree;<br><br>  public User(String json) throws IOException {<br>    ObjectMapper om = new ObjectMapper();<br>    this.tree = om.readTree(json);<br>    if (!(tree instanceof ObjectNode))<br>      throw new RuntimeException(&quot;expected a JSON object&quot;);<br>  }<br><br>  public Long getId() {<br>    JsonNode id = tree.get(&quot;id&quot;);<br>    if (id == null)<br>      return null;<br>    if (id instanceof LongNode)<br>      return id.asLong();<br>    else<br>      throw new RuntimeException(&quot;illegal id&quot;);<br>  }<br>}</pre><p>The only changes to the stub are the User return type and returning new User(json) rather than json directly:</p><pre>public User getUserByName(String username) throws IOException {<br>  URLConnection con = new URL(scheme + &quot;://&quot; + host + basePath + &quot;/user/&quot;<br>      + URLEncoder.encode(username, Charset.defaultCharset())).openConnection();<br>  con.setRequestProperty(&quot;Accept&quot;, &quot;application/json&quot;);<br>  try (InputStream in = con.getInputStream()) {<br>    String json = IOUtils.toString(in, Charset.defaultCharset());<br>    return new User(json);<br>  }<br>}</pre><p>Since the checks are now performed by the stub, our client can be simplified to:</p><pre>new Store(&quot;https&quot;, &quot;petstore.swagger.io&quot;, &quot;/v2&quot;)<br>  .getUserByName(&quot;user1&quot;)<br>  .getId()</pre><h3>What Did We Achieve So Far?</h3><p>So far this looks pretty good! Our client looks very handy. This can be achieved by two core concepts:</p><h4>Code Generation</h4><p>In the section above, we specifically wrote a simplified stub by hand based on the information we found in the OpenAPI description. In practise, there are a number of <a href="https://json-schema.org/tools">tools available</a> for this job.</p><p>Code generation dramatically reduces the amount of code required to write the client. We can call services without having to worry about the details of HTTP methods and headers and we can access data, without having to worry about internal JSON structures.</p><h4>Validation</h4><p>Apart from the HTTP paths and parameters, the schema information allows us to validate the response. It’s good to trust the server to deliver the data in the structure that was promised, but it’s even better to double check. Therefore, the manual versions of the client contain checks about the response being an object and the id (if present) being an integer. The generated code not only provides a nice way of accessing the data, it also validates the schema so the client does not have to.</p><h3>Great! So What’s the Problem?</h3><p>So far things look great. Why are people complaining then? Obviously the example so far is very simplistic. Let’s look at some common issues:</p><h4>Mapping Primitive Types</h4><p>Every runtime environment has built-in primitive types that must be mapped to JSON types in order for the stub API to feel natural. Schemas often use the <a href="https://json-schema.org/understanding-json-schema/reference/string#format">format keyword</a> to provide hints to implementations, especially when dealing with date/time values. Runtimes also have certain rules which types can be cast to others. A SQL database, for example, may treat the numbers 0 and 1 as false and true.</p><p>This is a common source for inconsistencies. In our example, id has the format int64 and therefore is mapped to a 64 bit long value. If the code generation library chose a 32 bit int, the stub API might not be able to process a valid response.</p><h4>Required Values</h4><p>Programming languages have different ways of expressing that a value is required. In Java, primitive values can be represented as an int or Integer. The difference is, that Integer may be null. int on the other hand, are always present and default to 0. In out example, id is not a required field in the user object. Therefore, the return type of getId was chosen to be an Integer.</p><h4>Open vs. Closed</h4><p>By default, a JSON Schema object is still valid if an unknown key is added by the server. This is a common situation when a new version of an API adds a new field to a response. XML Schema defaults to invalidating an element with unknown child elements and requires to explicitly override this behaviour with <a href="https://www.w3schools.com/xml/schema_complex_any.asp">xsd:any</a>.</p><p>In runtime environments, this behaviour varies between implementations. Consider our Jackson JSON parser. We wrote the User object by adding a getter around the raw JSON node object. Alternatively, Jackson offers a mapping to plain old Java objects. We can define the User objects as follows:</p><pre>public class User {<br>  public Integer id;<br>  public String username;<br>  ...<br>}</pre><p>A JSON stream can then be parsed to the User object as follows:</p><pre>User user = om.readValue(json, User.class);</pre><p>This looks convenient, however, the semantics differ from the JSON Schema because additional fields will cause errors. To fix this, we have to add the following class annotation:</p><pre>@JsonIgnoreProperties(ignoreUnknown = true)</pre><h4>Compositional Types</h4><p>Consider a scenario where a email might be a single string or an array of strings. In JSON Schema, this can be defined as:</p><pre>&quot;email&quot;: {<br>  &quot;anyOf&quot;: {<br>    {&quot;type&quot;: &quot;string&quot;},<br>    {&quot;type&quot;: &quot;array&quot;, &quot;items&quot;: {&quot;type&quot;: &quot;string&quot;}}<br>  }<br>}</pre><p>Mapping this structure to code is not that straightforward. A common pattern is for generators to expose methods to detect the content (also see this example of the <a href="https://github.com/corvus-dotnet/Corvus.JsonSchema/blob/main/docs/GettingStartedWithJsonSchemaCodeGeneration.md#json-schema-and-union-types">Corvus .NET toolkit</a> dealing with a anyOf type for otherNames):</p><pre>if (object.email.isString()) {<br>  String s = object.email.asString();<br>}<br>if (object.email.isStringArray()) {<br>  String[] s = object.email.asStringArray();<br>}</pre><h4>Inheritance</h4><p>Class hierarchies are common in object oriented software. When serializing these objects to JSON, a <a href="https://spec.openapis.org/oas/latest.html#discriminator-object">discriminator field</a> is typically used to identify the type of the instance. Let’s assume we have a base class Animal and a subclass Cat. The server can use the field petType to signal which type of animal we are dealing with:</p><pre>{<br>  &quot;id&quot;: 12345,<br>  &quot;petType&quot;: &quot;Cat&quot;<br>}</pre><p>This allows code generators to create the type hierarchy accordingly:</p><pre>Animal animal = res.getAnimal();<br>if (animal instanceof Cat) {<br>  Cat cat = (Cat)animal;<br>  ...<br>}</pre><p>Note that the discriminator is currently defined as an OpenAPI specific extension to JSON Schema.</p><h4>Non-Structural Constraints</h4><p>Schema languages allow defining constraints on legal value ranges. We can limit the pattern and length of strings, restrict the size of array, and much more. We call these non-structural constrains, because they focus on the value ranges rather than the structure of objects.</p><p>An approach take up by some of the tools, is to map these constraints to a constraint system in the respective runtime. In Java, the <a href="https://www.baeldung.com/java-validation">bean validation</a> framework is a candidate.</p><p>Let’s consider a user property aboutMe which should be a string between 10 and 200 characters:</p><pre>&quot;aboutMe&quot;: {<br>  &quot;type&quot;: &quot;string&quot;,<br>  &quot;description&quot;: &quot;About Me must be between 10 and 200 characters&quot;,<br>  &quot;minLength&quot;: 10,<br>  &quot;maxLength&quot;: 200<br>}</pre><p>This translates to the following annotation:</p><pre>public class User {<br>    @Size(min = 10, max = 200, message <br>      = &quot;About Me must be between 10 and 200 characters&quot;)<br>    private String aboutMe;<br>}</pre><h4>Communalities</h4><p>All of these examples show, that is it all but trivial to map a schema language designed to work with any runtime to the types and frameworks of a specific runtime. In this context, mapping means two things:</p><p>First, the validation behaviour must be the same.</p><p>Second, the generated code must provide programmatic access to all parts of a valid message. For example, our User plain old Java object loses any additional properties sent by the server. This would be an example where parts of a valid message cannot be read by the client anymore.</p><p>To a tool implementer, this may not seem like a big deal and it is certainly tempting (and generally a good idea) to use existing, well established frameworks like the Jackson JSON library in our examples. However, one has to carefully consider the long term effects these design decisions have under certain circumstances, for example, an older version of a client communicating with a newer server sending along additional data.</p><h3>Guidelines for Avoiding These Issues</h3><p>It seems like trying to catch two birds with one stone — i.e. trying to solve JSON data access and validation in one step — is the root cause of many problems. Why not seperate the two? There are plenty of great JSON Schema validators out there that have <a href="https://bowtie.report/">100% compatibility with the specification</a>.</p><p>Once a message passes validation, we can worry about presenting the data to the application. A rule of thumb should be to never use a type that is more restrictive than its schema counterpart. It probably is also a good idea to retain the raw data and expose it as a last resort via the API rather than forcing it into a not quite fitting shape and lose information in the process.</p><p>For high-volume application, there might be a performance penalty unless a high performance validator is available. However, for other scenarios the impact should be minimal and the benefits far outweigh this issue.</p><p>Finally — truth be told — the rapid pace of development on JSON Schema certainly does not help with the stability and conformity in the JSON Schema ecosystem. This actually is another reason to use a dedicated validation library when writing code generators. This allows you to focus on good type mappings.</p><p>What are your thoughts on this issue? We are planning to look deeper into good API patterns that can be generated from JSON Schema.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23b5a2ede303" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JSON Schema, OpenAPI & Low Code: A Match Made in Heaven]]></title>
            <link>https://dashjoin.medium.com/json-schema-openapi-low-code-a-match-made-in-heaven-d29723e543ac?source=rss-50ca547d5ddd------2</link>
            <guid isPermaLink="false">https://medium.com/p/d29723e543ac</guid>
            <category><![CDATA[no-code]]></category>
            <category><![CDATA[json-schema]]></category>
            <category><![CDATA[low-code]]></category>
            <category><![CDATA[open-api]]></category>
            <dc:creator><![CDATA[Andreas Eberhart]]></dc:creator>
            <pubDate>Wed, 16 Oct 2024 13:29:05 GMT</pubDate>
            <atom:updated>2024-10-16T17:56:22.104Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ecMdN59mu0pN3xif" /><figcaption>Photo by <a href="https://unsplash.com/@afgprogrammer?utm_source=medium&amp;utm_medium=referral">Mohammad Rahmani</a> on <a href="https://unsplash.com?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Standards are crucial for saving time and money in development and integration projects. After having lived through the days of <a href="https://en.wikipedia.org/wiki/Common_Object_Request_Broker_Architecture">CORBA</a> and <a href="https://en.wikipedia.org/wiki/List_of_web_service_specifications">WS*</a>, luckily for us, the following stack is becoming widely used:</p><ul><li>JSON makes it possible to serialize data independent of operating system or programming language</li><li>JSON Schema describes what data to expect</li><li>OpenAPI defines how to exchange data and invoke applications in a RESTful way</li></ul><p>In this article, we show how to leverage this stack from a Low Code environment in order to build powerful applications quickly.</p><h3>Petstore Example</h3><p>In our scenario, we will use the <a href="https://petstore.swagger.io/">Petstore</a> eCommerce example which exposes its data and business processes using OpenAPI. Swagger UI loads this API specification, shows the embedded documentation, and allows testing right in the browser:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*1rz1g8hvanmBA4RVE0v-Rg.png" /></figure><p>Scrolling to the bottom of the page, you can see JSON Schema in action. It describes API inputs and outputs:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*GS7gSUQQMA0VI21bQqCKyg.png" /></figure><h3>Low Code Applications</h3><p>Now let’s look at some examples on how we can quickly leverage these assets for application development. We will focus on Low Code environments such as the <a href="https://github.com/dashjoin/platform">Dashjoin Platform</a> that allow creating applications via a graphical user interface and some glue code.</p><h4>Displaying GET Results</h4><p>The pet store offers an API for getting the order status:</p><pre>curl -X &#39;GET&#39; \<br>  &#39;https://petstore.swagger.io/v2/store/order/5&#39; \<br>  -H &#39;accept: application/json&#39;</pre><p>Let’s assume we have a JSON array containing our order IDs. We can retrieve this information from the API and display the result using the following widget definition:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*vwNd8Rz56_agoMvvjQNDAQ.png" /></figure><p>The expression is declared using a snippet of <a href="https://jsonata.org/">JSONata</a> code. We iterate over the orderIDs array, make the API call by appending the current orderID to the base URL, and return an array of orders which is automatically displayed as a table with pagination, filtering, and sorting:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*r5TyEoJu5IcMFXit_t9P9g.png" /></figure><h4>Forms for PUT and POST</h4><p>Now let’s build a UI that shows a form for adding new pets to the store. The API works as follows:</p><pre>curl -X &#39;POST&#39; \<br>  &#39;https://petstore.swagger.io/v2/pet&#39; \<br>  -H &#39;accept: application/json&#39; \<br>  -H &#39;Content-Type: application/json&#39; \<br>  -d &#39;{<br>  &quot;id&quot;: 0,<br>  &quot;category&quot;: {<br>    &quot;id&quot;: 0,<br>    &quot;name&quot;: &quot;string&quot;<br>  },<br>  &quot;name&quot;: &quot;doggie&quot;,<br>  &quot;photoUrls&quot;: [<br>    &quot;string&quot;<br>  ],<br>  &quot;tags&quot;: [<br>    {<br>      &quot;id&quot;: 0,<br>      &quot;name&quot;: &quot;string&quot;<br>    }<br>  ],<br>  &quot;status&quot;: &quot;available&quot;<br>}&#39;</pre><p>We can see that the input is fairly complex, but luckily, it is described in OpenAPI via the JSON Schema definitions. The schema makes use of <a href="https://json-schema.org/understanding-json-schema/structuring">$ref</a> in order to make the components reusable. Therefore, we first normalize the schema:</p><pre>redocly bundle --dereferenced https://petstore.swagger.io/v2/swagger.json &gt; petstore.yaml</pre><p>One of the benefits of JSON Schema is the ability to <a href="https://json-schema.org/tools">generate forms</a>. We will leverage this in order to implement our functionality using a button widget.</p><pre>{<br>  &quot;widget&quot;: &quot;button&quot;,<br>  &quot;schemaExpression&quot;: &quot;$openYaml(&#39;file:upload/petstore.yaml&#39;).paths.\&quot;/pet\&quot;.post.parameters.schema&quot;,<br>  &quot;print&quot;: &quot;$curl(&#39;POST&#39;, &#39;https://petstore.swagger.io/v2/pet&#39;, form)&quot;,<br>}</pre><p>The schema expression field contains a JSONata expression that computes the JSON Schema to drive the form. It loads the normalized OpenAPI specification and retrieves the schema for the POST call to /pet. The second JSONata expression then calls the API using the user entries (“form”) as the payload.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*6GTxG0MfG-m0xQcUuPZ9vA.png" /></figure><p>Note that the form automatically supports the “required” constraints defined in the schema. It also automatically translates the status enum to a select field.</p><h3>Conclusion</h3><p>It is quite exciting to see how the various pieces in a JSON centric development stack fit together:</p><ul><li>JSON Schema and OpenAPI provide a standardized and lightweight option to integrate APIs</li><li>UI frameworks make it possible to generate complex forms using JSON Schema</li><li>Languages like TypeScript, Python, or JSONata make processing JSON very simple</li></ul><p>The examples show how three lines of code are enough to drive an application on top of a REST API.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d29723e543ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simplicity vs Expressiveness: Leverage Cloud Development Environments to Solve this Low Code…]]></title>
            <link>https://dashjoin.medium.com/simplicity-vs-53571b9d3ef8?source=rss-50ca547d5ddd------2</link>
            <guid isPermaLink="false">https://medium.com/p/53571b9d3ef8</guid>
            <category><![CDATA[low-code]]></category>
            <category><![CDATA[cloud-development]]></category>
            <category><![CDATA[citizen-developer]]></category>
            <dc:creator><![CDATA[Andreas Eberhart]]></dc:creator>
            <pubDate>Tue, 16 Jan 2024 15:12:36 GMT</pubDate>
            <atom:updated>2024-04-16T15:10:44.019Z</atom:updated>
            <content:encoded><![CDATA[<h3>Simplicity vs Expressiveness: Leverage Cloud Development Environments to Solve this Low Code Dilemma</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*48pk5uVZjj8TnsKS" /></figure><p>Low Code development platforms allow citizen developers to quickly develop custom applications. These platforms abstract from the nitty-gritty details of traditional development approaches and provide a framework for modeling the domain and application logic in a quick and concise manner.</p><p>“Hiding the nitty-gritty details” inevitably involves the platform making a compromise between forcing citizen developers to adhere to predefined — and thereby easy to use — standards and the complete freedom of writing things from scratch.</p><p>In this paper, we first show how this tension between simplicity and expressiveness manifests itself in low code platforms. Then, we show how a hybrid approach based on Cloud Development Environments (CDE) can solve this dilemma.</p><h3>Simplicity vs. Expressiveness in Low Code Editors</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HvaJ45_rplBNEegynoSg_w.png" /><figcaption>The GrapesJS editor exposes several options for a screen element (seen on the right)</figcaption></figure><p>Consider this screenshot of the <a href="https://grapesjs.com/">GrapesJS</a> UI editor. It hides the underlying HTML code, but it does expose around 100 options even for a simple text element. The target audience for GrapesJS are web designers, so it certainly makes sense to show all of these options. However, a normal citizen developer would probably be overwhelmed by the sheer number of options and by terminology like flex layout and text decorations.</p><p>In the <a href="https://github.com/dashjoin/platform">Dashjoin Low Code platform</a>, we try to limit the options. The text editor looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AB-ujHJQxD2GyeFi-Q1qMg.png" /><figcaption>Dashjoin editor for a text widet</figcaption></figure><p>This is certainly easier to use, but it raises the question: “what if I really want this text to be italic green?”</p><p>Another place where the dilemma surfaces is the widget library. The following screenshot shows the available elements of the <a href="https://manual.bubble.io/help-guides/design/the-component-library">Bubble</a> platform:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/195/1*LFvIjah55yMOAM8YHyGgGg.png" /><figcaption>Visual elements for building App with Bubble.io (partial list)</figcaption></figure><p>We can see a mix of very generic widgets (text, icon, button, table) and very specific ones (facebook like, shoprocket buy button). Obviously, it is impossible to build a widget for every use case. Therefore, low code platforms typically allow some sort of plugin mechanism. Bubble, for instance, <a href="https://manual.bubble.io/account-and-marketplace/building-plugins/building-elements">provides some HTML and JavaScript</a> hooks for this purpose:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aspWSPyT_VAv3sOezynWUA.png" /><figcaption>Bubble editor for custom elements</figcaption></figure><p>Obviously, this is not ideal. You are forced into the world of regular coding (which is understandable), but you’re left without the proper tools (editor, debugger, etc.) and with severe limitations (i.e. you cannot use the NPM library of your choice).</p><h3>Cloud Development Environments</h3><p>The previous section showed that Low Code platforms must provide a way for developers to express requirements that are outside the simplicity provided by the platform defaults.</p><p>We believe that Cloud Development Environments (CDE) are the solution. CDE leverage cloud packaging and deployment methods to provision coding workspaces right in the browser. The advantage is that new team members can get started immediately, without having to go through an elaborate setup procedure. Furthermore, sentences like “it works on my machine…” can no longer serve as an excuse since everybody has a standardized environment. It either works or it doesn’t.</p><p>Companies like <a href="https://www.gitpod.io/">Gitpod</a> offer CDEaaS solutions, and CDE features like <a href="https://github.com/features/codespaces">Codespaces</a> are being added to existing solutions like Github. <a href="https://dashjoin.github.io/platform/latest/development-production/#dashjoin-studio">Dashjoin Studio</a> is the first Low Code CDE available.</p><p>Let’s step through an example to see how this works: Assume you’re building a life science application that is based on data about molecules. The data includes <a href="https://en.wikipedia.org/wiki/Simplified_molecular-input_line-entry_system">SMILES</a> strings describing the molecule structure, and you would like to use a <a href="https://github.com/reymond-group/smilesDrawer">3rd party library</a> to visualize the molecules. Obviously, the core platform does not provide a widget for this very specialized purpose. So we need to build it.</p><p>The first step is to provision the CDE:</p><pre>docker run -p 3000:3000 -p 8080:8080 -p 8081:8081 -e DJ_ADMIN_PASS=djdjdj dashjoin/studio</pre><p>Next, we open http://localhost:8081/ and login using admin and djdjdj (the password provided on the docker command line). This opens VS Code in your browser. From the menu, open a new terminal in the “Dashjoin Platform UI” folder and type:</p><pre>yarn add smiles-drawer<br>yarn dev</pre><p>Yarn is a JavaScript package manager that will retrieve the latest version of the library and all other required components. The command “yarn dev” starts the development webserver.</p><p>Now we add the widget code Smiles.tsx in src/widgets:</p><pre>import { Icon } from &quot;@mui/material&quot;<br>import { Widget } from &quot;../model/widget&quot;<br>import { expression, title } from &quot;../api/Const&quot;<br>import { useEffect, useRef } from &quot;react&quot;<br>import { Loading } from &quot;ra-ui-materialui&quot;<br>import { PrintError } from &quot;../components/PrintError&quot;<br>import { useExpression } from &quot;../hooks/useExpression&quot;<br>const SmilesDrawer = require(&#39;smiles-drawer&#39;)<br><br>export const Smiles = ({ widget }: { widget: Widget }) =&gt; {<br><br>    const imgRef = useRef&lt;HTMLImageElement&gt;(null);<br>    const drawer = new SmilesDrawer.SmiDrawer();<br><br>    let { data, isLoading, error } = useExpression(widget.expression)<br>    useEffect(() =&gt; {<br>        drawer.draw(data ? data : &#39;C&#39;, imgRef.current, &#39;light&#39;);<br>    });<br><br>    if (isLoading) return &lt;Loading /&gt;<br>    if (error) return &lt;PrintError error={error}&gt;&lt;/PrintError&gt;<br><br>    return (<br>        &lt;div&gt;<br>            &lt;img ref={imgRef} width={300}&gt;&lt;/img&gt;<br>        &lt;/div&gt;<br>    );<br>}<br><br>export const config = {<br>    id: &#39;smiles&#39;,<br>    title: &#39;Smiles&#39;,<br>    description: &#39;Renders a SMILES string as a 3D molecule&#39;,<br>    version: 1,<br>    icon: &lt;Icon&gt;science&lt;/Icon&gt;,<br>    controls: {<br>        type: &#39;autoform&#39;,<br>        schema: {<br>            properties: {<br>                title: title,<br>                expression: expression<br>            }<br>        }<br>    }<br>}</pre><p>This code contains two blocks. The first block is the actual widget. It gets the parameter “widget”, which is a JSON structure, to configure the widget. The rest of the code is taken from the library’s documentation. The key point is the line where the result of widget.expression is passed as the parameter to the draw function (the call drawer.draw(…)). This parameter contains a <a href="https://jsonata.org/">JSONata</a> expression to compute the SMILES string passed to the widget.</p><p>The second part defines what the widget edit dialog looks like. It contains an icon, some description, and a list of controls. In this case, we allow for editing the widget title (this is a property shared by all widgets) and the expression to compute the SMILES string. You could add other properties. For instance, the width of the generated image is fixed at 300 pixels. This could be replaced with a widget parameter.</p><p>Now edit the file CustomWidgets.tsx in src and add the following lines:</p><pre>import { config } from &quot;./widgets/Smiles&quot;;<br>import { Smiles } from &quot;./widgets/Smiles&quot;;<br><br>export const customWidgets = [<br>    {<br>        widget: Smiles,<br>        config: config<br>    }<br>]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q5kF3xAmVFk69WDdXGyWIA.png" /><figcaption>Dashjoin Cloud Development Environment including VS Code, Git, and custom plugins</figcaption></figure><p>As soon as these changes are made, they become available on <a href="http://localhost:3000.">http://localhost:3000.</a> Specifically, the new SMILES widget can be added to a page using the regular layout editor:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rO6-6M02tZrvOISvEroKpA.png" /><figcaption>The new SMILES widget in the widget library</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Cm_-lgO4iPzNVR49ENyseA.png" /><figcaption>The widget is configured with the SMILE string constant for Glucose (“OC[C@@H](O1)[C@@H](O)[C@H](O)[C@@H](O)[C@H](O)1”)</figcaption></figure><p>Please note that the platform can access external REST services and databases. Rather than providing a constant string, we can retrieve the SMILES string via a more complex expression such as $openJson(url).smiles or $read(“life-science-db”, “molecule-table”, “Glucose”).</p><p>Obviously, adding a new widget requires ReactJS know-how and is not something a typical citizen developer would do. Therefore, we provide the option of packaging these changes for re-use. Once a ReactJS developer implemented the widget, it looks like just another widget for the citizen developer.</p><h3>Summary</h3><p>We have shown how Cloud Development Environments can benefit Low Code platforms in cases where a citizen developer needs to escape from the platform defaults in order to implement a certain requirement. Leveraging CDEs has the advantage that familiar tools such as VS Code, git, yarn etc. are available and that developers are free to use any 3rd party ReactJS library available on NPM.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53571b9d3ef8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JQ vs. JSONata: Language and Tooling Compared]]></title>
            <link>https://dashjoin.medium.com/jq-vs-jsonata-language-and-tooling-compared-5f0f7acc778e?source=rss-50ca547d5ddd------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f0f7acc778e</guid>
            <dc:creator><![CDATA[Andreas Eberhart]]></dc:creator>
            <pubDate>Tue, 08 Aug 2023 11:39:47 GMT</pubDate>
            <atom:updated>2023-08-08T18:33:04.138Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*bdCEOzjYiR8moM7E6uLb-g.png" /></figure><p>JQ refers to both a <a href="https://en.wikipedia.org/wiki/Jq_(programming_language)">functional programming language</a> and a <a href="https://jqlang.github.io/jq/">command line tool</a> for processing JSON data. The jq website describes jq as “sed for JSONata”. It was designed by Stephen Dolan in 2012 and is very popular in the data science community. For instance, it is bundled with the Anaconda data science platform.</p><p>JSONata is a JSON query and transformation language that is inspired by the location path semantics of XPath 3.1. It was invented by Andrew Coleman and his colleagues at IBM in 2016. It is mostly used as an NPM package for browser- and NodeJS-based integration applications.</p><p>From a language point of view, jq and JSONata are quite similar, but they were inspired with different use cases in mind. For jq, it was having a JSON-aware command line tool. For JSONata, it was integrating RESTful applications. However, there are extensions to JSONata, such as <a href="https://github.com/dashjoin/jsonata-cli">jsonata-cli</a> and <a href="https://github.com/blgm/jfq">jfq</a>, that make it available via the command line, making them competitors. Therefore, in this paper, we’re comparing the two from both a language semantics and a tooling point of view.</p><p>Note that there are several other languages like JMESPath, JSONiq, XPath 3.1, and <a href="https://stackoverflow.com/questions/777455/is-there-a-query-language-for-json">many others</a> which you might consider for your use case.</p><h4>Language Semantics</h4><p>Both programming languages are Turing complete and provide constructs for traversing, filtering, sorting, and transforming JSON trees. They also both offer support for variables, scoping, and closures.</p><p>The following table shows sample queries on the <a href="https://try.jsonata.org/">JSONata invoice example</a> in both jq and JSONata.</p><pre><strong>Query <br></strong>jq <br>JSONata <br><br><strong>Entire document <br></strong>. <br>$ <br><br><strong>Project field account name <br></strong>.Account.&quot;Account Name&quot; <br>Account.&quot;Account Name&quot; <br><br><strong>Get all product IDs <br></strong>.Account.Order[].Product[].ProductID <br>Account.Order.Product.ProductID <br><br><strong>Get a list of projects with SKU and product name (rename to Name) <br></strong>.Account.Order[].Product[] | {&quot;SKU&quot;: .SKU, &quot;Name&quot;: &quot;Product Name&quot;} <br>Account.Order.Product.{&quot;SKU&quot; : SKU, &quot;Name&quot;: &quot;Product Name&quot;} <br><br><strong>Products costing more than 40 <br></strong>.Account.Order[].Product[] | select(.Price &gt; 40) <br>Account.Order.Product[Price &gt; 40] <br><br><strong>Total price of the order <br></strong>[.Account.Order[].Product[] | .Price * .Quantity] | add <br>$sum(Account.Order.Product.(Price * Quantity)) <br><br><strong>Get all colors <br></strong>.. | .Colour? | select( . != null) <br>**.Colour <br><br><strong>Sort orders by price <br></strong>.Account.Order[].Product | sort_by(.Price) <br>Account.Order.Product^(Price) <br><br><strong>Group by <br></strong>.Account.Order[].Product | group_by(.&quot;Product Name&quot;) <br>Account.Order.Product{`Product Name`: Price} <br><br><strong>Sum implemented as reduce <br></strong>reduce .Account.Order[].Product[] as $item (0;.+$item.Price*$item.Quantity)<br>$reduce(Account.Order.Product, function($a,$v){$a+$v.Price*$v.Quantity},0) <br><br><strong>Variables <br></strong>.Account.&quot;Account Name&quot; as $var | &quot;The order is for: &quot; + $var <br>( $var := Account.&quot;Account Name&quot;; &quot;The order is for: &quot; &amp; $var ) <br><br><strong>Defining functions <br></strong>def add(x): . + x; add(1) <br>( $add := function($x, $y){$x+$y}; $add($) ) <br><br><strong>If then else <br></strong>if .Account.Order[].Product[].Price &gt; 30 then &quot;expensive&quot; else &quot;cheap&quot; end <br>Account.Order.Product.(Price &gt; 30 ? &quot;expensive&quot; : &quot;cheap&quot;) <br><br><strong>Add key value to top level object <br></strong>. += {&quot;key&quot;: &quot;value&quot;} <br>$ ~&gt; | $ | {&quot;key&quot;: &quot;value&quot;} | <br><br><strong>Built-in functions <br></strong>.Account.&quot;Account Name&quot; | length <br>$length(Account.&quot;Account Name&quot;) <br><br><strong>Extending <br></strong>include &quot;urldecode&quot;; .http.referrer | url_decode <br>Handled via engine’s registerFunction API </pre><h4>Similarities</h4><p>As we can see from the table, the languages are quite similar in terms of their expressiveness. Jq is heavily inspired by UNIX pipes. Note that JSONata also offers an alternative syntax for nested function calls. Consider for example the selection of the account name followed by computing the string length: $length(Account.”Account Name”). This expression can also be written as: Account.”Account Name” ~&gt; $length making is even more like its jq expression: .Account.”Account Name” | length.</p><h4>Differences</h4><p><strong>Array Handling</strong></p><p>JSONata is more lenient in terms of how arrays are treated. When writing an expression, JSONata intuitively does the right thing when it encounters an array vs a simple type. Jq requires you to explicitly iterate over arrays, otherwise an error is raised. This can be seen in the frequent Order[] constructs in the examples. Likewise, subexpressions must be wrapped in square brackets before being fed into an aggregation. This can be seen in the example computing the total price of the order.</p><p><strong>Streaming</strong></p><p>Jq immediately allows you to stream data line by line. Therefore, it distinguishes between the input [1,2] and 1 newline 2. The former can be immediately piped into the add function. The latter can be converted to an array using the slurp command line option. This streaming feature is missing completely from JSONata and would have to be handled by an external component that somehow converts an input stream into a sequence of JSON trees before calling JSONata.</p><p><strong>Syntax</strong></p><p>The JSONata syntax is more concise and uses the JavaScript notation for writing functions, which seems more natural.</p><h4>Tooling</h4><p><strong>jq</strong></p><p>Jq is written in C and is available for <a href="https://jqlang.github.io/jq/download/">many platforms</a>. It offers a rich set of command line options that support reading from files with different streaming options. There is also a popular <a href="https://github.com/itchyny/gojq">Go implementation</a> available. Both options can be used from the command line or as a library within custom software.</p><p><strong>JSONata</strong></p><p>The JSONata reference is implemented in JavaScript and ships via <a href="https://www.npmjs.com/package/jsonata">NPM</a>. There are also implementations available in Rust, Go, Java, Python, and .NET, some of which use JavaScript interpreters to ensure compatibility. The Java implementation <a href="https://github.com/dashjoin/jsonata-java">jsonata-java</a> is notable because it was ported 1:1 from the original and thus combines compatibility with very good performance. It is also available as a native-compiled <a href="https://github.com/dashjoin/jsonata-cli">command line tool</a>.</p><h4>Performance</h4><p>When measuring performance of JSON CLI tools, the throughput of (possibly large) JSON files as such is an important base line. The performance of “common” transformations use cases must be measured against this baseline. The latter is obviously highly specific to the complexity of the transformation.</p><p>All in all, jsonata-cli offers decent performance for most JSON processing and transformation tasks. It performs comparably to, and often even faster than, jq or alternate implementations like gojq and jaq. It has reasonable memory and CPU consumption. With JSONata at its core, it is an easy to understand yet powerful JSON transformation solution.</p><p>Detailed results are <a href="https://github.com/dashjoin/jsonata-cli#performance">available here</a>.</p><h4>Conclusion</h4><p>While jq and JSONata address JSON querying and transformation from very different angles, there are quite a few similarities. JSONata is a bit easier to use, especially with its intuitive handling of arrays. Jq excels with its built-in support for streaming. JSONata can easily be used on the web whereas jq is built for the command line. However, JSONata is available for command line use via some 3rd party extensions. Likewise, jq might be usable on the web via web assembly. Ultimately, it is a matter of choice and personal preference which one you choose.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f0f7acc778e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Release Management in the Low Code World]]></title>
            <link>https://dashjoin.medium.com/release-management-in-the-low-code-world-ae1683eba431?source=rss-50ca547d5ddd------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae1683eba431</guid>
            <category><![CDATA[release-management]]></category>
            <category><![CDATA[no-code]]></category>
            <category><![CDATA[governance]]></category>
            <category><![CDATA[compliance]]></category>
            <category><![CDATA[low-code]]></category>
            <dc:creator><![CDATA[Andreas Eberhart]]></dc:creator>
            <pubDate>Mon, 24 Oct 2022 12:49:51 GMT</pubDate>
            <atom:updated>2022-10-24T16:21:57.011Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2dL9tKokTw4RkHwZxHKy7g.jpeg" /></figure><p>No Code and Low Code platforms are great tools for speeding up the development process. They empower departmental users to build software without having to wait for scarce IT and development resources to become available.</p><p>However, these technologies are no silver bullet for making every project a success. Specifically, issues around collaboration, version management, automated testing, and deployment are frequently cited as problems that haunt not only classical development projects, but also plague the rising no code / low code movement.</p><p>In this article, we describe the problems in more detail and show how some of the traditional tools and processes can help to remedy the situation without loosing the no code / low code agility.</p><h4>Managing Development and Production Environments</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3C7jMm11CGDNu1ia" /><figcaption>Photo by <a href="https://unsplash.com/@imgix?utm_source=medium&amp;utm_medium=referral">imgix</a> on <a href="https://unsplash.com?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Once the first version of a product is released, the product team usually starts thinking about adding new features or fixing bugs in the current version. If the system performs write operations on databases, calls services with side effects, or has to be concerned about introducing load on production systems, the development team has to work in a sandbox environment that uses development databases and services. <a href="https://www.flosum.com/blog/why-you-need-a-low-code-salesforce-release-management-strategy">This article on Salesforce release strategy</a> describes how content “usually moves across multiple environments until it is finally deployed in production” in the context of Salesforce Low Code applications.</p><p>The solution to this challenge is to make it as easy as possible for team members to get access to a sandbox instance that can be configured with development resources. In the Dashjoin Low Code platform, this is achieved by simply <a href="https://dashjoin.github.io/platform/3.0/development-production/#specifying-development-resources">parameterizing a Docker container</a> that serves the sandbox environment either on a developer’s computer or a cloud based instance.</p><h4>Version Control</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*imlwMLHNO0Vn2brFb3b8jA.jpeg" /></figure><p>Compared to classical software, low code projects will be more concise with respect to lines of code. No code platforms typically contain small code fragments and software configurations such as forms or backend mappings. From a version control perspective, it makes no difference how you express application logic, and issues around versioning are frequently mentioned in the No Code / Low Code worlds.</p><p>The <a href="https://www.mendix.com/low-code-guide/the-low-code-manifesto/">Mendix Guide to Low Code Development</a> lists version management as one of the key aspects to consider when choosing a Low Code platform. Another issue is how multiple developers collaborate on a project. The Salesforce paper mentioned above mentions that “it is not uncommon to have frequent changes or even accidental overwrites to your orgs”.</p><p>Obviously, the solution to this challenge is to introduce version control in one form or the other. Mendix, for instance, allows for versioning, branching, tagging, etc. in the <a href="https://docs.mendix.com/refguide/version-control/">Mendix Team Server</a>. At Dashjoin, we believe that off the shelf solutions like GIT / GitHub are better suited for this task. Any code fragment or project configuration is serialized in JSON files, and thus, can be placed under version control easily. The platform <a href="https://dashjoin.github.io/platform/3.0/development-production/#automatic-git-checkout">can be configured to pull a project upon startup</a>, making it very easy to transport an app from development to production.</p><p>Obviously, version control must be optional for small projects with only one or two developers. It is a must for large projects, no matter whether No Code, Low Code, or traditional coding is used.</p><h4>Automated Testing</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/1*mTVSkaKohTgxUjbYqZRP7g.jpeg" /></figure><p>In order to ensure a high quality, software testing is a must. Automated testing requires some initial investment, but it certainly pays off in the long run. A 2022 <a href="https://www.computer.org/publications/tech-news/research/survey-of-low-code-challenges">IEEE empirical Study of Developer Discussions on Low-Code Software Development Challenges</a> found that “low-code developers face challenges with automated testing.”</p><p>Obviously, end to end testing frameworks like <a href="https://www.cypress.io/">Cypress</a> or <a href="https://www.selenium.dev/">Selenium</a> are applicable to any kind of web-based application, regardless of the technology that was used to build it.</p><p>However, we believe that it is important for the No Code / Low Code platform to offer built-in support for unit testing. <a href="https://docs.mendix.com/appstore/modules/unit-testing/">Mendix</a>, <a href="https://docs.appian.com/suite/help/22.3/testing-applications.html">Appian</a>, and other vendors offer this feature. The Dashjoin platform relies heavily on <a href="https://jsonata.org/">JSONata</a> expressions that are embedded in page layouts and platform functions. These expressions can be unit tested by <a href="https://github.com/dashjoin/dashjoin-demo#unit-testing-the-app">providing inputs and desired outputs</a>.</p><h4>Deployment Governance &amp; Control</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*hua9dor69apPIYte5ts5mg.jpeg" /></figure><p>Agility, the blessing of No Code / Low Code, can also be its biggest problem. <a href="https://www.informationweek.com/software/4-common-reasons-low-code-projects-fail">This InformationWeek article</a> looks at 4 common reasons Low-Code projects fail. It lists “not dealing with deployment and maintenance” and “focusing on building the application and not considering how to deliver it” as two of these. This <a href="https://hbr.org/2021/06/when-low-code-no-code-development-works-and-when-it-doesnt">Harvard Business Review</a> article states that “broad use of these tools institutionalizes the shadow IT phenomenon, which has bedeviled IT organizations for decades — and could make the problem much worse, if not governed properly.”</p><p>In our view, governance and control is tightly coupled to version management and documentation. The article states that a developer “may leave the company, and no one knows how to change or support the system they developed”, a problem that can be addressed by documenting changes in the source code management system.</p><p>Defining a proper release process is also critical in avoiding these problems. We recommend tagging a released version in GIT, and instructing the production instances to use the tagged version of the app. This allows development to proceed safely without impacting production.</p><h4>Summary</h4><p>In this article, we have shown that Low Code / No Code projects — while benefiting greatly from concise application logic and reduced development times — are much like classical software projects after all, despite using a different development technology. We think that a best of breed approach that combines Low Code technology with “classical” tooling and approaches for unit testing and version control can successfully address these challenges. For more details on how this approach is realized in the Dashjoin platform, please check out the <a href="https://github.com/dashjoin/platform">project page</a> as well as the video below.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fl7607Kekk2g%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dl7607Kekk2g&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fl7607Kekk2g%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f0551ebd9a6d3494890a3e7acaee9e72/href">https://medium.com/media/f0551ebd9a6d3494890a3e7acaee9e72/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ae1683eba431" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Low Code as the Basis for Your Data and Application Strategy]]></title>
            <link>https://dashjoin.medium.com/low-code-as-the-basis-for-your-data-and-application-strategy-61cb50146b93?source=rss-50ca547d5ddd------2</link>
            <guid isPermaLink="false">https://medium.com/p/61cb50146b93</guid>
            <category><![CDATA[low-code]]></category>
            <category><![CDATA[data-integration]]></category>
            <category><![CDATA[json-schema]]></category>
            <category><![CDATA[it-strategy]]></category>
            <dc:creator><![CDATA[Andreas Eberhart]]></dc:creator>
            <pubDate>Fri, 25 Jun 2021 13:15:01 GMT</pubDate>
            <atom:updated>2021-06-25T13:15:01.552Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uQXGyVad6tMCv1-o" /><figcaption>Photo by <a href="https://unsplash.com/@campaign_creators?utm_source=medium&amp;utm_medium=referral">Campaign Creators</a> on <a href="https://unsplash.com?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Low Code platforms are rapidly gaining momentum in the IT industry. They are a great fit for digital transformation and IT projects that cannot be addressed by using off the shelf solutions. This is not surprising since the alternative is starting a development project using a classical development stack. Various PaaS offerings certainly make this task easier, however, a team still needs to address a complex mix of technologies, architecture, security, etc. The following picture shows some of the dimensions and choices. You could spend all day every day just evaluating things without doing any actual project work…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3Fk6PMO4pYipCQjs.png" /><figcaption>Source: <a href="https://tech.foodora.com/tech-stack/">https://tech.foodora.com/tech-stack/</a></figcaption></figure><p>The case for low code platforms is that you can avoid — at least some of — this mess. Research and Markets estimates that “<a href="https://www.researchandmarkets.com/reports/5184624/low-code-development-platform-market-research">the global low-code development platform market is predicted to generate a revenue of $187.0 billion by 2030, rising from $10.3 billion in 2019, and is expected to advance at a fast pace, 31.1% CAGR, during the forecast period (2020–2030)</a>.” The report also features low code platforms offered by Outsystems, Microsoft, Appian, and others.</p><p>Looking at this massive list of vendors, are we just going from bad to worse by switching from having to choose a technology stack to having to pick a low code platform? We believe that low code platforms are definitely worth adopting. However, customers should develop a bigger data and application strategy around low code, rather than just treating a low code project as an isolated one-off endeavor. This way, customers can establish a rich ecosystem of data and apps that reinforce each other and also build up in house expertise to drive this process. This should be the guiding principle in choosing a platform.</p><p>This article provides some guidance for developing such a strategy. We also describe some of the features a low code platform should bring to the table in order to support the strategy.</p><p>Note that we (Dashjoin) <a href="https://dashjoin.com/">offer an Open Source &amp; Cloud Native Low Code development and integration platform</a>, so we obviously are not neutral. However, we hope to raise some important points in helping you decide on the best approach for your situation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PQNYw7E_ViWcq3ea" /><figcaption>Photo by <a href="https://unsplash.com/@nasa?utm_source=medium&amp;utm_medium=referral">NASA</a> on <a href="https://unsplash.com?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>The Web: A Source of Inspiration for the Strategy</h3><p>Why did Tim Berners-Lee create the Web? He describes it as: “<a href="https://achievement.org/achiever/sir-timothy-berners-lee/#interview">Creating the web was really an act of desperation</a>.” His desperation was caused by the hoops one had to jump through in order to access a research document located at a different site or a site using different technology.</p><p>The solution was a system that</p><ol><li>Is open — The Web enables everyone to participate.</li><li>Uses a common address (URL) to locate documents.</li><li>Is standards-based — The Web is based on standards and allows a heterogeneous set of technologies to interoperate on a higher level.</li><li>Is decentralized — The Web embraces the philosophy that it is not the end of the world, if a server is down or a hyperlink points to nowhere.</li></ol><p>For our analysis, it is important to note that the technology does not dictate the organizational scope and context of where the technology is used. HTML, HTTP, web servers, and browsers can be used on a global and public scale as well as on a corporate intranet with a limited user base.</p><h3>Web of Data Strategy</h3><p>We can draw an analogy from the web (of documents) to the web of data and the question becomes: Under which circumstances can we exchange and access data in a uniform way? Let’s look at some existing approaches:</p><h4>OpenAPI, JSON:API, GraphQL, OData, Semantic Web</h4><p>Today, the web of data world is definitely based on RESTful principles with a couple of noteworthy and prominent approaches:</p><p>OpenAPI is a widely used description language for RESTful services. It was born out of the Swagger tool which is a generic web based tool to test and document RESTful services. Internally, it uses JSON Schema to describe data types and structures. In our context, it is an interesting technology since it establishes a standard way to describe and invoke services. However, OpenAPI services are way too heterogeneous to be able to form a universal data access layer.</p><p>JSON:API establishes some best practices on how to structure APIs in order to best handle CRUD operations, pagination, filtering, and much more. JSON:API also employs the “<a href="https://www.w3.org/2001/sw/wiki/Linking_patterns#.E2.80.9CFollow_your_nose.E2.80.9D">follow your nose</a>” principle by embedding URLs for subsequent REST calls in the responses, thereby addressing some of OpenAPI’s shortcomings for our use case. However, JSON:API is not concerned with query languages.</p><p>GraphQL and OData are both technologies that aim at standardizing the way clients query and update a data source over the web. Consequently, both contain a query language. OData is older and clearly has its roots in SQL. GraphQL was largely inspired by giving (mobile) clients fine grained control over what data is transferred. While OData has a <a href="https://en.wikipedia.org/wiki/Open_Data_Protocol#A_sample_OData_JSON_data_payload">notion of context</a> that identifies data uniquely, GraphQL does not.</p><p>The Semantic Web takes a radically different approach by basing on a graph data model. Note that despite having “graph” in its name, the GraphQL data model can be described as “<a href="https://graphql.org/learn/thinking-in-graphs/">a pattern similar to Object-Oriented Programming: types that reference other types</a>”, whereas a graph data model is based on nodes and labelled edges linking the nodes. The Semantic Web stack is based on SPARQL, a RESTful graph database query language and the RDF graph data model. While the ideas of the Semantic Web are intriguing, its adoption is often hampered by its over-reliance on the graph data model, which is quite uncommon in most systems today.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QBPUZ6IcJSRpc1ZF" /><figcaption>Photo by <a href="https://unsplash.com/@danclear?utm_source=medium&amp;utm_medium=referral">Dan Clear</a> on <a href="https://unsplash.com?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Web of Data Design Principles</h4><p>In order to realize the web of data vision, we propose merging ideas from the technologies introduced above into the following design principles:</p><p><strong>Uniform *Record* (or Table) Locator</strong></p><p>Being able to “point to” data is key to the vision. We define a “record” as a self contained unit of data. This can be a row in a relational database table, a document in a MongoDB, a node with some properties in a property graph database, or an object in an application that exposes its data via an API only. It can be located using 4 “coordinates”:</p><ol><li>the address of the system we use to access the data</li><li>the name of the database containing the record</li><li>the name of the table (see next section) containing the record</li><li>the IDs used to find the record within the table</li></ol><p>Furthermore, we define a “table” as a collection holding a number of records. This can be a table in a relational database, a collection in a MongoDB, a node type in a graph database, or a concept in an application (e.g. an issue in Jira). A table can be identified using coordinates 1–3 from the list above.</p><p><strong>Schema Metadata is Data Too</strong></p><p>For clients to “understand” data, we need to make the schema available as well. Borrowing from OpenAPI, we express the table structure as a JSON Schema. Databases contain a set of tables and a data access system contains a set of databases that is manages. We end up with a hierarchical structure which we model as four tables (system, database, table, field) which are exposed as if they were regular data. We borrow this idea from the RDF data model, where ontologies are also represented as a graph that is stored with the “normal” data.</p><p><strong>Relationships as First Class Citizens</strong></p><p>When we speak of a Web of data, it is clear, that the relationships between records are crucial. Since we are able to identify record fields, we can store the information that a certain field is (part of) the primary key of the record. Likewise, we represent the information that a field references another field. This information is stored in the schema metadata.</p><p><strong>Uniform CRUD and Query API</strong></p><p>The architecture defines a standardized API for CRUD and query operations. This API is used for both the data and the metadata layer and uses the identifiers introduced above. The API design follows several of the JSON:API principles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rskFpcUUFktK1c6YnruxeA.png" /><figcaption>Universal Data Browser of the Dashjoin Platform</figcaption></figure><p>The screenshot above shows an example of these principles. The URL points to https://demo.my.dashjoin.com/#/table/northwind/ORDERS and identifies the order table of the northwind sample database. Note that the tables displays links for all key columns. The first row in the ship_via column, for instance, points to <a href="https://demo.my.dashjoin.com/#/resource/northwind/SHIPPERS/3.">https://demo.my.dashjoin.com/#/resource/northwind/SHIPPERS/3.</a> Also note that the page displays a form for creating new entries. The order id is required and the shipment date can be entered via a date picker. As we will explain in the next section, this interface is constructed solely based on the metadata described above.</p><p><strong>Leverage the Native Query Language</strong></p><p>Other than OData, GraphQL, or the Semantic Web, we do not standardize on a single query language. The rationale for this is that the CRUD API already provides for a database agnostic access and allows for a follow your nose type navigation. This way, more advanced and specialized applications can still take advantage of specialized features of the underlying database.</p><p><strong>Allow all Systems and Databases to Participate</strong></p><p>This architecture allows any kind of database or backend system to be included in the ecosystem. The minimal requirement is to expose the CRUD API and publish the metadata about tables and record structures.</p><p><strong>Access Control</strong></p><p>Clearly, a web of data architecture needs to have strong access control built into the system. Rather than delegating access control to the underlying system, we propose embedding a per table access control mechanism based on OpenID users and roles in the data access layer.</p><p>We believe that these design principles follow the example of the Web: It is open to very different kinds of databases and backend APIs, it uses a common way to address data, it is based on a common metadata format and standardized API, and finally it is decentralized by allowing references to point not just into other databases but even into databases registered in a different data access system. This allows for a decentralized approach where different teams can share and reuse each others data by just linking to it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RSq-4fobdX9JROc8" /><figcaption>Photo by <a href="https://unsplash.com/@marvelous?utm_source=medium&amp;utm_medium=referral">Marvin Meyer</a> on <a href="https://unsplash.com?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Web of (Low Code) Applications</h3><p>Now a Web of data is nice, but we still need the equivalent of a web browser to make use of the data and the equivalent of an HTML editor to create content.</p><h4>Universal Data Browser</h4><p>A universal data browser allows to search and navigate the data. This must work out of the box, without any development effort. After all, the metadata about tables, fields, keys, and relationships is available via a standardized API. This must work in the same way as a Swagger UI is able to provide a default user interface when fed an OpenAPI description.</p><p>There is another important inspiration we can draw from the Semantic MediaWiki project, which enhances MediaWiki by tagging the links between wiki pages and thereby creating data and relations between pages. A key principle we can draw from Semantic MediaWiki is that a record is visualized using a constant URL.</p><p>This is a very important principle since this allows any other page of a related record to show a hyperlink pointing to this URL. This works much like the Wikipedia page of the US showing a link that points to its neighbor Canada and vice versa. Likewise, the screenshot above shows this principle being applied to employees, customers, and orders.</p><h4>JSON Schema for Universal Forms</h4><p>JSON Schema is a well accepted standard for describing the structure of JSON records and documents. It is a central piece of the metadata layer described in the section above and it also plays a crucial role for realizing “universal forms.” This term describes a generic user interface on top of the CRUD API. In other words, it provides the ability to create, read / display, update, and delete records in the web of data.</p><p>Besides describing API payloads, the second major use case of JSON Schema is the generation of forms. This is demonstrated by the large number of <a href="https://json-schema.org/implementations.html#web-ui-generation">implementations covering this</a>. In the screenshot above, the form is driven by JSON Schema, which in turn was generated by inspecting the database metadata.</p><p>Note that this JSON Schema can be enhanced with additional information entered through the low code interface. An example would be layout hints in order to control the form’s appearance and style.</p><h4>Widget and Template Based User Interface</h4><p>The universal data browser and the universal forms provide a good basis for exploring data. However, an application must do more than that. Depending on the user’s role, additional elements should be available. For instance there must be active elements that trigger things like sending email or that invoke another RESTful service. Other pages should display charts for the current context. For instance, a user might like to see the total sales numbers for the product, when viewing the product page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wCKejJxQeL7QBjUnyan7iA.png" /><figcaption>A JSONata expression is used to specify query parameters of a tree widget</figcaption></figure><p>A low code platform must offer a large variety of widgets in order to address these kinds of use cases. These widgets provide a set of options that control their appearance and also their behavior. A key question is how a low code platform maps JSON input and output data of a RESTful service to the widget. For instance, how can a chart widget translate user input into query parameters and display results the right way? Another example would be a generic invocation of a service. Parameters need to be collected and fed into the call.</p><p>We suggest using JSONata for this purpose. It is a “<a href="https://docs.jsonata.org/overview.html">lightweight query and transformation language for JSON data</a>.” The screenshot above show an example of this approach. The low code developer is customizing a tree widget that shows an org chart. The widget is based on a recursive database query that requires the ID of the root node. The following JSONata expression is used to transform the current record context into the required structure:</p><pre>{“node”: value.EMPLYOEE_ID}</pre><h4>App Editors</h4><p>Just like we need browsers, we also need low code app editors. Now low code means “low code” and not “we enter lots of code in the browser rather than an IDE.” The code sample above is probably acceptable, but we certainly need several types of editors.</p><p>We already saw one representative of its kind in the screenshot above, namely a layout editor. Another important asset of a low code platform is the ability to graphically assemble queries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NNjR_x_X17xXJ5h-Sdw9cw.png" /><figcaption>Graphical SQL Editor</figcaption></figure><p>Ideally, this editor should support all query languages that are supported in the framework.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*utoqEITpIWWQMgQlOBE8NQ.png" /><figcaption>The same editor used for constructing a Firebase query</figcaption></figure><p>Finally, a key feature of integration platforms is the ability to map between data structures. We believe that it makes sense to also leverage JSONata for this task since it allows expressing complex mapping and transformation rules in a very concise manner. The next screenshot shows an example where a mapping is constructed by placing smaller JSONata snippets into a graphical mapping editor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6VrV6oUEzZJmLYeMp_lEMg.png" /><figcaption>Data Import Mapping Editor</figcaption></figure><h4>Cloud Native Deployment</h4><p>When we speak of a web of data and applications, a system obviously must be scalable and easy to handle from an administrative / DevOps point of view. So you definitely should make sure that your low code platform has horizontal scale out options, can be deployed in a cloud native fashion, or can be consumed as a service.</p><h3>Non Technical Considerations</h3><p>So far, our discussion has been fairly technical. But there obviously are other considerations that are important when adopting a low code platform.</p><p>Probably the most important factor is you team’s skillset. Even if the platform is low code, this does not mean that everybody will be productive with it from the get go. This is the main reason why it makes little sense to simply base a single project on a low code platform. Ideally, your staff or your consulting partner develops a deep skillset in order to handle most future projects using that technology.</p><p>Second, the platform should be open and should be based on open standards. Not every task can be accomplished using a low code approach. If — for some reason — you decide or are forced to switch to another platform or technology, you should make sure that you’re not stuck on a deeply proprietary platform.</p><p>Obviously, licensing costs are a major factor too. As you scale up and develop more know-how using a platform, make sure your benefit and cost savings are not eaten up by the cost of the platform.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61cb50146b93" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>