Help:Namespace

From semanticweb.org
Jump to: navigation, search

SMW provides only limited support for namespaces:

In-page queries do not show namespace prefixes of resulting pages (but link correctly)

Further, on the one hand, when specifying a pagename for a selection itself, or as subject of a relation in a selection, this denotes the set of all pages with that pagename, across all namespaces; specifying a specific page can only be done indirectly by intersecting with a namespace.

Also, confusingly, a redirect from e.g. A to B:C with namespace prefix B, cause the queries R::A and R::C to be replaced by R::A||C. Thus in the query R::C, "C" should be interpreted as "page C and the pages in the main namespace redirecting to any page across all namespaces with name C".

  • <ask debug=true>[[test redirect demo::redirect demo]]</ask> gives <ask debug=true>redirect demo</ask>
  • <ask debug=true>[[test redirect demo::redirect demo target name]]</ask> gives <ask debug=true>redirect demo target name</ask>
  • <ask debug=true>[[test redirect demo 2::redirect demo]]</ask> gives <ask debug=true>redirect demo</ask>
  • <ask debug=true>[[test redirect demo 2::redirect demo target name]]</ask> gives <ask debug=true>redirect demo target name</ask>



Special:SearchTriple shows namespace prefixes and allows specifying a namespace prefix in front of a (part of a) pagename; however it does not allow searching with a name, across namespaces.



All categories | properties | types

Advice on Annotation | Ask | Attribute name | Browsing and searching | Category | Chains of relations and attributes | Custom units | Namespace | Relation name | Selection | SearchTriple | Sorting | Templates in SMW


Personal tools
Namespaces

Variants
Actions
Navigation
services
Toolbox