Difference between revisions of "Semantic MediaWiki/data"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
(filling in the blanks with blanks)
(remaining gaps filled in; key tables boldfaced; one more explanation)
Line 1: Line 1:
 
==Tables==
 
==Tables==
 
As of SMW version 1.7:
 
As of SMW version 1.7:
* [[/smw_atts2]]: relationships where the value is numerically/logically significant, or a "string" (non-page type)
+
* '''[[/smw_atts2]]''': relationships where the value is numerically/logically significant, or a "string" (non-page type)
* [[/smw_conc2]]: [[smw:Help:Concepts|concepts]]
+
* [[/smw_conc2]]: not sure; probably [[smw:Help:Concepts|concepts]]
* [[/smw_conccache]]
+
* [[/smw_conccache]]: not sure; presumably a cache for concepts
* [[/smw_ids]]: assigns IDs to all properties and some values
+
* '''[[/smw_ids]]''': assigns IDs to all properties, and values that map to a (potential) wiki page
 
* [[/smw_inst2]]: not sure
 
* [[/smw_inst2]]: not sure
 
* [[/smw_redi2]]: not sure; redirects?
 
* [[/smw_redi2]]: not sure; redirects?
* [[/smw_rels2]]: relationships where the value refers to a hypothetical wiki page
+
* '''[[/smw_rels2]]''': relationships where the value refers to a (potential) wiki page
 
* [[/smw_spec2]]: URLs to SWiVT specs
 
* [[/smw_spec2]]: URLs to SWiVT specs
* [[/smw_subp2]]
+
* [[/smw_subp2]]: not sure; sub-property map?
* [[/smw_subs2]]
+
* [[/smw_subs2]]: not sure; looks like a mapping of categories to sub-categories
* [[/smw_text2]]: relationships where the value is a long text/data blob
+
* '''[[/smw_text2]]''': relationships where the value is a long text/data blob
 +
 
 +
Core tables are boldfaced; the others seem to be primarily for optimization or auxiliary purposes.
 
==Explanations==
 
==Explanations==
 
* Semantic relationships are defined in [[/smw rels2]], [[/smw_text2]], and [[/smw_atts2]].
 
* Semantic relationships are defined in [[/smw rels2]], [[/smw_text2]], and [[/smw_atts2]].
 
* Correspondence between SMW entities (property names and some property values) and MediaWiki pages is defined in [[/smw_ids]]
 
* Correspondence between SMW entities (property names and some property values) and MediaWiki pages is defined in [[/smw_ids]]
 +
* 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.

Revision as of 19:41, 17 December 2012

Tables

As of SMW version 1.7:

  • /smw_atts2: relationships where the value is numerically/logically significant, or a "string" (non-page type)
  • /smw_conc2: not sure; probably concepts
  • /smw_conccache: not sure; presumably a cache for concepts
  • /smw_ids: assigns IDs to all properties, and values that map to a (potential) wiki page
  • /smw_inst2: not sure
  • /smw_redi2: not sure; redirects?
  • /smw_rels2: relationships where the value refers to a (potential) wiki page
  • /smw_spec2: URLs to SWiVT specs
  • /smw_subp2: not sure; sub-property map?
  • /smw_subs2: not sure; looks like a mapping of categories to sub-categories
  • /smw_text2: relationships where the value is a long text/data blob

Core tables are boldfaced; the others seem to be primarily for optimization or auxiliary purposes.

Explanations

  • Semantic relationships are defined in /smw rels2, /smw_text2, and /smw_atts2.
  • Correspondence between SMW entities (property names and some property values) and MediaWiki pages is defined in /smw_ids
  • 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.