Aus SubmersWiki

Wechseln zu: Navigation, Suche

Property values are written simply as a question mark followed by the property name.

Example:

?population
  • This prints the values for «population» of all query results.

On Special:Ask, the result of each printout is shown in a table column that is labeled by the name of the property. One can change that label for a printout. Doing this would be very useful when using queries on wiki pages (it is not really relevant on Special:Ask of course). The equals ( = )symbol is used to change the label:

?population = Number of inhabitants
  • The above still prints population, but nor with the modified label in the table header.

As mentioned above, property printouts may have an empty result for some pages, e.g. if something does not have any population. Property conditions with wildcards (see above) can be used to ensure that all elements in a query result have some value for the printed property, if this is desired.


Copyright © 2009 Ontoprise GmbH.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the article "GNU Free Documentation License".


Diese Seite wurde zuletzt am 12. Dezember 2010 um 12:47 Uhr geändert.Diese Seite wurde bisher 1.478-mal abgerufen.