Skip to content

Commit

Permalink
#513 Update CLI information in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
luigi-asprino committed Dec 5, 2024
1 parent 977cfae commit f2173b8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 17 deletions.
35 changes: 23 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -551,9 +551,9 @@ An executable JAR can be obtained from the [Releases](https://github.com/spice-h
The jar can be executed as follows:

```
usage: java -jar sparql.anything-<version> -q query [-f <output format>] [-v
<filepath | name=value> ... ] [-c option=value] [-l path] [-o
filepath]
usage: java -jar sparql.anything-<version> -q query [-f <output format>]
[-v <filepath | name=value> ... ] [-c option=value] [-l
filepath] [-o filepath] [-j filepath]
-q,--query <query or URL or filepath> The path or the URL to the file
storing the query to execute or
the query itself.
Expand All @@ -577,9 +577,10 @@ usage: java -jar sparql.anything-<version> -q query [-f <output format>] [-v
-f,--format <string> OPTIONAL - Format of the output
file. Supported values: JSON,
XML, CSV, TEXT, TTL, NT, NQ.
[Default: CSV (for SELECT queries)
or TEXT (for ASK queries) or TTL
(for CONSTRUCT queries)]
[Default: CSV (for SELECT
queries) or TEXT (for ASK
queries) or TTL (for CONSTRUCT
queries)]
-s,--strategy <strategy> OPTIONAL - Strategy for query
evaluation. Possible values: '1'
- triple filtering (default), '0'
Expand Down Expand Up @@ -621,6 +622,11 @@ usage: java -jar sparql.anything-<version> -q query [-f <output format>] [-v
The argument can be passed
multiple times (one for each
option to be set).
-j,--load-jar <filepath> OPTIONAL - Filepath to an
executable JAR to be dynamically
included. The argument can be
passed multiple times (one for
each JAR file to be included).
```

Logging can be configured adding the following option (SLF4J).
Expand All @@ -645,13 +651,18 @@ the [Releases](https://github.com/spice-h2020/sparql.anything/releases) page.
The jar can be executed as follows:

```
usage: java -jar sparql-anything-server-<version>.jar [-p port] [-e
usage: java -jar sparql-anything-fuseki-<version>.jar [-p port] [-e
sparql-endpoint-path] [-g endpoint-gui-path]
-e,--path <path> The path where the server will be running on (Default
/sparql.anything).
-g,--gui <gui> The path of the SPARQL endpoint GUI (Default /sparql).
-p,--port <port> The port where the server will be running on (Default
3000 ).
-e,--path <path> The path where the server will be running on
(Default /sparql.anything).
-g,--gui <gui> The path of the SPARQL endpoint GUI (Default
/sparql).
-j,--load-jar <filepath> OPTIONAL - Filepath to an executable JAR to be
dynamically included. The argument can be
passed multiple times (one for each JAR file
to be included).
-p,--port <port> The port where the server will be running on
(Default 3000 ).
```

Also, a docker image can be used by following the instructions [here](BROWSER.md).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import io.github.sparqlanything.engine.FXSymbol;
import io.github.sparqlanything.engine.FacadeX;
import io.github.sparqlanything.engine.FacadeXOpExecutor;
import io.github.sparqlanything.model.PluginInitializer;
import io.github.sparqlanything.model.SPARQLAnythingConstants;
import io.github.sparqlanything.model.Utils;
import org.apache.commons.cli.ParseException;
Expand Down Expand Up @@ -48,18 +47,14 @@
import org.slf4j.LoggerFactory;

import java.io.*;
import java.lang.reflect.InvocationTargetException;
import java.net.MalformedURLException;
import java.net.URISyntaxException;
import java.net.URL;
import java.net.URLClassLoader;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.*;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.jar.JarEntry;
import java.util.jar.JarInputStream;
import java.util.regex.Pattern;

public class SPARQLAnything {
Expand Down

0 comments on commit f2173b8

Please sign in to comment.