Difference between revisions of "Semantic MediaWiki/data"
Jump to navigation
Jump to search
(explanation about the numbering) |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
==Tables== | ==Tables== | ||
− | I | + | All of this information has been reverse-engineered, mostly from examination of data in a single SMW instance. I was not able to find any data-structure documentation in the [https://doc.semantic-mediawiki.org/index.html official code docs]. |
+ | |||
+ | Note that the ''schema'' version numbers are generally higher than the corresponding SMW version<ref name=versions />. | ||
{| | {| | ||
|- | |- | ||
| valign=top | | | valign=top | | ||
===schema version 3=== | ===schema version 3=== | ||
− | These are present in SMW version 1.9 alpha: | + | These are present in SMW version 1.9 alpha<ref name=versions />: |
− | * [[/smw_di_blob]] | + | * '''[[/smw_di_*]]''': |
− | * [[/smw_di_bool]] | + | ** [[/smw_di_blob]] |
− | * [[/smw_di_coords]] | + | ** [[/smw_di_bool]] |
− | * [[/smw_di_number]] | + | ** [[/smw_di_coords]] |
− | * [[/smw_di_time]] | + | ** [[/smw_di_number]] |
− | * [[/smw_di_url]] | + | ** [[/smw_di_time]] |
− | * [[/smw_di_wikipage]] | + | ** [[/smw_di_url]] |
+ | ** [[/smw_di_wikipage]] | ||
* [[/smw_fpt_ask]] | * [[/smw_fpt_ask]] | ||
* [[/smw_fpt_askde]] | * [[/smw_fpt_askde]] | ||
Line 41: | Line 44: | ||
* [[/smw_prop_stats]] | * [[/smw_prop_stats]] | ||
| valign=top | | | valign=top | | ||
+ | |||
===schema version 2=== | ===schema version 2=== | ||
These were present in SMW version 1.7, and may also be valid for 1.8 (but not 1.9): | These were present in SMW version 1.7, and may also be valid for 1.8 (but not 1.9): | ||
Line 61: | Line 65: | ||
* Presumably the type of storage can be determined by looking up the SMW ID in [[/smw_spec2]], making it unnecessary to check multiple tables (rels2, text2, atts2) for each property. but it does not seem to have been designed for this purpose. | * Presumably the type of storage can be determined by looking up the SMW ID in [[/smw_spec2]], making it unnecessary to check multiple tables (rels2, text2, atts2) for each property. but it does not seem to have been designed for this purpose. | ||
|} | |} | ||
+ | ==Footnote== | ||
+ | <references> | ||
+ | <ref name=versions>I'm presuming that there was a schema version 1 based on the naming of the version 2 tables (they all end in '2'), but this may be incorrect. In any case, schema version 2 corresponds approximately to SMW v1.x, and schema version 3 to SMW 2.x (and some high-numbered 1.x beta releases).</ref> | ||
+ | </references> |
Revision as of 23:08, 10 July 2020
Tables
All of this information has been reverse-engineered, mostly from examination of data in a single SMW instance. I was not able to find any data-structure documentation in the official code docs.
Note that the schema version numbers are generally higher than the corresponding SMW version[1].
schema version 3These are present in SMW version 1.9 alpha[1]:
|
schema version 2These were present in SMW version 1.7, and may also be valid for 1.8 (but not 1.9):
Core tables are boldfaced; the others seem to be primarily for optimization or auxiliary purposes. Explanations
|