Hi Guys,
When I make a SPARQL query in Stardog for some reason the
prefix is not used, and the whole URI is shown?
In my 'database namespaces' the prefix I am referring to is defined.
Also in the Query page under 'prefixes' the prefix is there. But
when getting my results it does not appear.
Are you running these SPARQL queries via the web console, CLI, or some other method? Are the prefixes showing as defined if you run stardog namespace list <myDb> on the CLI?
As you can see the full URI is given in the results. This is not a problem as such. I am just curious as to why this happens. Because I have tried other graphs where this is not the case.
I believed that when sending a graph to my database via CLI the prefixes would be registrered automatically? Because the prefix in my Stardog server i sent through CLI interface because it wouldnt record if I just add a graph to my database.
The set of namespaces in the database generally has to be managed explicitly. They are only added automatically when bulk loading RDF files during database creation.