Hello
I want to use a bash script (with Jenkins) for making automatic tests, but i need to restore the database, i delete the database, i create it, i add the ontology files but i still need to add the names space by my self.
Is there a way to add namespace with the script ?
Thanks
pgha
(Pierre Grenon)
September 4, 2018, 9:22am
#2
Hi,
Are you looking for a stardog command to run?
There is:
https://www.stardog.com/docs/man/namespace-add
For example:
stardog namespace add MyDB --prefix top --uri http://example.org/top# --prefix mid --uri http://example.org/mid# --prefix bot --uri http://example.org/bot#
Best,
P
stephen
(stephen)
September 4, 2018, 11:24am
#3
There is also https://www.stardog.com/docs/man/namespace-import , which takes an RDF file as input and adds all of its declared namespaces to your db:
stardog namespace import myDB /path/to/my/file.ttl
Thank you to both of you
It works pefectly