I am executing the following query in the WebConsole (which also fails and returns no result in my Javascript code):
SELECT DISTINCT ?p ?o WHERE { GRAPH ?g { fibo-fnd-acc-aeq:Capital ?p ?o}}
The prefix fibo-fnd-acc-aeq is defined in my database -
The following query works and returns the proper result:
SELECT DISTINCT ?p ?o WHERE {GRAPH ?g {fibo-fnd-acc-aeq:Capital ?p ?o}}
I assumed from reading the documentation that Stardog would expand any prefix that was registered in namespaces to the full URL.
Moreover, in the WebConsole query prefix pane, these fibo- prefixes do not show up when I try to add them, although sm, purl and skos do show up, and they were added to the namespace at the same time as the ones starting with fibo-.
Is it possible that the hyphens are causing a problem? They are legal in XML namespace prefixes. What else might be causing the problem?
I was hoping to avoid having to submit dozens of PREFIX statements in my SPARQL queries that are executed from Javascript code.