Old Release

This documentation covers an old version of Fedora. Looking for another version? See all documentation.

Namespaces

SPARQL-Update

To ensure that specific namespaces are used (i.e., treated as sacred) by Fedora 4 when doing a SPARQL update, ensure that the namespace prefix URI includes a terminating character. Otherwise system-generated JCR namespaces (e.g., ns001, ns002), and not the user-supplied namespaces, will get registered. Therefore, the following statement could lead to unexpected namespaces. F4 will register a system-generated namespace and you would not find "http://myurl.org" namespace in the system.

 

Problematic Usage
PREFIX esc: <http://myurl.org>
INSERT {
<>
esc:package "ppp";
}
WHERE { }

 

Therefore, the URI prefix in line 1 should have a terminating character, e.g., a slash or a hash. 

 

Recommended Usage
PREFIX esc: <http://myurl.org/>
. . .

 

 

 

 

 

 

 

  • No labels