Skip to content

Commit

Permalink
chore: Rename iql to gensql
Browse files Browse the repository at this point in the history
  • Loading branch information
KingMob committed Apr 29, 2024
1 parent 6a4568b commit 9f7364f
Show file tree
Hide file tree
Showing 12 changed files with 389 additions and 376 deletions.
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# inferenceql.publish
![tests](https://github.com/InferenceQL/inferenceql.publish/workflows/tests/badge.svg)
![linter](https://github.com/InferenceQL/inferenceql.publish/workflows/linter/badge.svg)
# GenSQL.publish
![tests](https://github.com/OpenGen/GenSQL.publish/workflows/tests/badge.svg)
![linter](https://github.com/OpenGen/GenSQL.publish/workflows/linter/badge.svg)

## Usage

``` shell
java -jar inferenceql.publish.jar --help
java -jar gensql.publish.jar --help
```

## Developing
Expand Down Expand Up @@ -37,16 +37,16 @@ clojure -M:run --help

### Including SPPL support

[inferenceql.gpm.sppl](https://github.com/inferenceql/inferenceql.gpm.sppl) is not included as a dependency by default. If you intend to use SPPL models you will want to provide the `sppl` alias when either launching the REPL or running build commands.
[gensql.gpm.sppl](https://github.com/OpenGen/GenSQL.gpm.sppl) is not included as a dependency by default. If you intend to use SPPL models you will want to provide the `sppl` alias when either launching the REPL or running build commands.

If you intend to query SPPL models you will need to have a Python environment with SPPL installed into it in such a way that [libpython-clj](https://github.com/clj-python/libpython-clj) can find it. The easiest way to use that is to start the inferenceql.gpm.sppl Nix development shell before running publish.
If you intend to query SPPL models you will need to have a Python environment with SPPL installed into it in such a way that [libpython-clj](https://github.com/clj-python/libpython-clj) can find it. The easiest way to use that is to start the gensql.gpm.sppl Nix development shell before running publish.

``` shell
nix develop github:inferenceql/inferenceql.gpm.sppl -c java -jar inferenceql.publish.jar --help
nix develop github:OpenGen/GenSQL.gpm.sppl -c java -jar gensql.publish.jar --help
```

``` shell
nix develop github:inferenceql/inferenceql.gpm.sppl -c clj -A:dev:sppl
nix develop github:OpenGen/GenSQL.gpm.sppl -c clj -A:dev:sppl
```

### Building a JAR file
Expand Down
2 changes: 1 addition & 1 deletion build.edn
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{:main inferenceql.publish.client
{:main gensql.publish.client
:output-to "resources/js/index.js"
:output-dir "resources/js"
:asset-path "js"
Expand Down
8 changes: 4 additions & 4 deletions build/build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
(not)))

(def default-opts
{:lib 'inferenceql/inferenceql.publish
:main 'inferenceql.publish
{:lib 'OpenGen/gensql.publish
:main 'gensql.publish
:target "target"
:clojure-src-dirs ["src"]
:version (current-sha :short true)
Expand Down Expand Up @@ -57,12 +57,12 @@
bundler-input (or bundler-input
"js/main.js")
bundler-outfile (or bundler-outfile
(str (class-dir opts) "/js/inferenceql.publish.js"))]
(str (class-dir opts) "/js/gensql.publish.js"))]
(with-reporting "Bundling JavaScript files"
(let [{:keys [exit]} (build/process {:command-args ["pnpm" "esbuild" bundler-input
"--bundle"
"--format=iife"
"--global-name=inferenceql.publish"
"--global-name=gensql.publish"
"--sourcemap"
(str "--outfile=" bundler-outfile)]})]
(when-not (zero? exit)
Expand Down
10 changes: 5 additions & 5 deletions deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
com.cognitect/transit-cljs {:mvn/version "0.8.280"}
com.stuartsierra/component {:mvn/version "1.1.0"}
hiccup/hiccup {:mvn/version "1.0.5"}
io.github.inferenceql/inferenceql.gpm.sppl {:git/sha "52f8316e094b3644709dccde8f0a935f9b55f187"}
io.github.inferenceql/inferenceql.inference {:git/sha "27b1b6c34830b98c2c7258b5577f0b7611538355"}
io.github.inferenceql/inferenceql.query {:git/sha "a85bba882016a06b006abf7bf43f53b4cfa4465c"}
io.github.OpenGen/GenSQL.gpm.sppl {:git/sha "52f8316e094b3644709dccde8f0a935f9b55f187"}
io.github.OpenGen/GenSQL.inference {:git/sha "27b1b6c34830b98c2c7258b5577f0b7611538355"}
io.github.OpenGen/GenSQL.query {:git/sha "a85bba882016a06b006abf7bf43f53b4cfa4465c"}
lambdaisland/fetch {:mvn/version "1.0.41"}
metosin/reitit {:mvn/version "0.5.18"}
org.asciidoctor/asciidoctorj {:mvn/version "2.5.3"}
Expand All @@ -28,8 +28,8 @@
:ns-default build}
:dev {:extra-paths ["dev"]
:extra-deps {org.clojure/tools.namespace {:mvn/version "1.3.0"}}}
:run {:main-opts ["-m" "inferenceql.publish"]}
:sppl {:extra-deps {io.github.inferenceql/inferenceql.gpm.sppl {:git/sha "594d4bced407826129723e84907954ebab71b315"}}}
:run {:main-opts ["-m" "gensql.publish"]}
:sppl {:extra-deps {io.github.OpenGen/GenSQL.gpm.sppl {:git/sha "594d4bced407826129723e84907954ebab71b315"}}}
:test {:extra-paths ["test"]
:extra-deps {io.github.cognitect-labs/test-runner {:git/tag "v0.5.1" :git/sha "dfb30dd"}
org.clojure/test.check {:mvn/version "0.10.0"}}
Expand Down
8 changes: 4 additions & 4 deletions dev/user.clj
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
[clojure.java.io :as io]
[clojure.tools.namespace.repl :as repl]
[com.stuartsierra.component :as component]
[inferenceql.inference.gpm :as gpm]
[inferenceql.publish :as publish]
[inferenceql.query.permissive :as permissive]
#_[inferenceql.query.strict :as strict]))
[gensql.inference.gpm :as gpm]
[gensql.publish :as publish]
[gensql.query.permissive :as permissive]
#_[gensql.query.strict :as strict]))

(def system nil)

Expand Down
2 changes: 1 addition & 1 deletion examples/db.edn

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions examples/satellites.adoc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
= Exploring satellite data with InferenceQL
= Exploring satellite data with GenSQL

The InferenceQL query language extends a subset of SQL.
The GenSQL query language extends a subset of SQL.

[iql]
[source,gensql]
----
SELECT * FROM satellites LIMIT 10
----
Expand All @@ -11,7 +11,7 @@ SELECT * FROM satellites LIMIT 10

In addition to querying the data you can query infinite streams of synthetic data generated by the model. Here are a few rows of synthetic data.

[iql]
[source,gensql]
----
SELECT * FROM
GENERATE
Expand All @@ -24,7 +24,7 @@ LIMIT 10

These infinite streams of data can be used to explore hypotheticals. Which country most likely to operate of a satellite in geosynchronous orbit with a dry mass of 500 kilograms?

[iql]
[source,gensql]
----
SELECT
COUNT(*) AS count,
Expand All @@ -42,7 +42,7 @@ LIMIT 10

What is the most likely purpose of a satellite in geosynchronous orbit with a dry mass of 500 kilograms?

[iql]
[source,gensql]
----
SELECT
COUNT(*) AS Count_Purpose_Country,
Expand All @@ -63,7 +63,7 @@ LIMIT 10

In addition to querying the data you can query how probable the data is under the model.

[iql]
[source,gensql]
----
SELECT
PROBABILITY OF Period_minutes
Expand All @@ -79,7 +79,7 @@ LIMIT 10

You can also find values that are anomalous only if you consider other values in the row.

[iql]
[source,gensql]
----
SELECT
PROBABILITY OF Period_minutes
Expand Down
2 changes: 1 addition & 1 deletion js/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const React = require('react');
const ReactDOM = require('react-dom');
const components = require('@inferenceql/inferenceql.react');
const components = require('@OpenGen/GenSQL.react');

const execute = function(s) {
return fetch('/api/query', {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": true,
"dependencies": {
"@emotion/react": "^11.10.4",
"@inferenceql/inferenceql.react": "inferenceql/inferenceql.react#b54a02e5dad1a26bfa73873262f411f8b3019974",
"@OpenGen/GenSQL.react": "OpenGen/GenSQL.react#b54a02e5dad1a26bfa73873262f411f8b3019974",
"highlight.js": "^11.5.1",
"prop-types": "^15.8.1",
"react": "^17.0",
Expand Down
Loading

0 comments on commit 9f7364f

Please sign in to comment.