Hi Robert,

jq (JSON query) is a

sudo apt-get install jq


https://stedolan.github.io/jq/download/


On 03/02/2022 11:35, [email protected] wrote:
Hi everyone,
I am using jena fuseki 4.2.0.

Jena Fuseki 4.4.0 has just been released.

I created a dataset
"test" and tried to load triples with xloader command.

$JENA_HOME/bin/tdb2.xloader --loc
/opt/apache-jena-fuseki/apache-jena-fuseki-4.3.2/databases/test
/opt/config/materialize/158_0.ttl.gz

You're not running 4.2.0 :-)

If I create the dataset first I
get the following error:
ERROR Directory
/opt/apache-jena-fuseki/apache-jena-fuseki-4.3.2/databases/test already
exists

Yes - the loader is quite careful about notoverwriting an existing database. The xloader process only builds a compete new database from the data. It can't incremental add data.

Deleting the directory "test" and trying to load at some point
I get the following output:

  Command jq not found
11:01:11 INFO
Setup:
11:01:11 INFO Database:
/opt/apache-jena-fuseki/apache-jena-fuseki-4.3.2/databases/test
11:01:11
INFO Data: /opt/config/materialize/158_0.ttl.gz
11:01:11 INFO TMPDIR:
/opt/apache-jena-fuseki/apache-jena-fuseki-4.3.2/databases/test
11:01:11
INFO
11:01:11 INFO Load node table
11:01:14 INFO Nodes :: Build node
table
11:01:14 INFO Nodes :: Database =
/opt/apache-jena-fuseki/apache-jena-fuseki-4.3.2/databases/test
11:01:14
INFO Nodes :: TMPDIR =
/opt/apache-jena-fuseki/apache-jena-fuseki-4.3.2/databases/test
11:01:14
INFO Nodes :: Data files = /opt/config/materialize/158_0.ttl.gz
11:01:16
INFO Terms :: Sort finished
11:01:16 INFO Nodes :: == Parse: 0.856
seconds : 650 triples/quads 759 TPS
11:01:16 INFO Terms :: == Index:
0.109 seconds : 243 indexed RDF terms : 2,229 PerSecond
11:01:16 INFO
Nodes :: NodeTable - 1.450 seconds - 0h 00m 01s at 448 terms per
second
11:01:16 INFO
11:01:16 INFO Ingest data
11:01:18 INFO Data ::
Ingest data
11:01:20 INFO Data :: Total: 650 tuples : 1.08 seconds :
601.30 tuples/sec [2022/02/03 11:01:20 UTC]
11:01:20 INFO Data ::
Triples = 650 ; Quads =
0

/opt/apache-jena/apache-jena-4.3.2/bin/tdb2.xloader: line 391: jq:
command not found

In Jena 4.4.0, xloader checks of programs it depends on at the start.

jq (a JSON processor tool) can be installed from the Linux package manager of your distro:

https://stedolan.github.io/jq/download/

    Andy

Reply via email to