Skip to content

Instantly share code, notes, and snippets.

@mhgrove
Created March 19, 2014 10:44
Show Gist options
  • Save mhgrove/9639292 to your computer and use it in GitHub Desktop.
Save mhgrove/9639292 to your computer and use it in GitHub Desktop.
CLI output
mhgrove:dist mhgrove$ cat input.nt
<urn:foo> <urn:bar> "literal".
mhgrove:dist mhgrove$ ./bin/stardog-admin db create -n foo -s input.nt
Bulk loading data to new database.
Parsing triples: 100% complete in 00:00:00 (1 triples - 0.2K triples/sec)
Parsing triples finished in 00:00:00.005
Creating index: 100% complete in 00:00:00 (0.2K triples/sec)
Creating index finished in 00:00:00.005
Computing statistics: 100% complete in 00:00:00 (0.2K triples/sec)
Computing statistics finished in 00:00:00.006
Loading complete.
Inserted 1 triples in 00:00:00.053 at 0.0 triples/sec
Bulk load complete. Loaded 1 triples from 1 file(s) in 00:00:00 @ 0K triples/sec.
Successfully created database 'foo'.
mhgrove:dist mhgrove$ ./bin/stardog query search -q "literal" foo
+-------+-------+---------+
| Index | Score | Hit |
+-------+-------+---------+
| 1 | 1.046 | urn:foo |
+-------+-------+---------+
mhgrove:dist mhgrove$ ./bin/stardog query search -q "literal" -l 10 foo
+-------+-------+---------+
| Index | Score | Hit |
+-------+-------+---------+
| 1 | 1.046 | urn:foo |
+-------+-------+---------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment