Page MenuHomePhabricator

Define bd: and hint: PREFIX namespaces to fulfill SPARQL validators
Closed, ResolvedPublic

Description

This query

PREFIX bd: <http://www.bigdata.com/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT ?q ?qLabel ?tag WHERE {
	?q <http://www.wikidata.org/prop/direct/P1482> ?tag .
	SERVICE wikibase:label {
		bd:serviceParam wikibase:language "en" .
	}
}

results in an error unless you omit PREFIX bd: <http://www.bigdata.com/>. Without this prefix definition, however, the query is no valid SPARQL (although blazegraph does not care). I guess the namespace http://www.bigdata.com/ is wrong?

P.S: The same applies to namespace hint: used in hint:Query hint:optimizer "None" .

Event Timeline

nichtich raised the priority of this task from to Needs Triage.
nichtich updated the task description. (Show Details)
nichtich subscribed.
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
nichtich renamed this task from Define bd: PREFIX namespace to fulfill SPARQL validators to Define bd: and hint: PREFIX namespaces to fulfill SPARQL validators.Oct 8 2015, 8:43 AM
nichtich updated the task description. (Show Details)
nichtich set Security to None.

bd: and hint: are internal Blazegraph namespaces. The definitions for them are:

PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX hint: <http://www.bigdata.com/queryHints#>

You can find the definitions in the Blazegraph sources in and /bigdata-rdf/src/java/com/bigdata/rdf/store/BD.java bigdata-rdf/src/java/com/bigdata/rdf/sparql/ast/QueryHints.java

Smalyshev claimed this task.