Semantic MediaWiki and related extensions
Defines.php File Reference

Variables

const SMW_HEADERS_SHOW 2
 
const SMW_HEADERS_PLAIN 1
 
const SMW_HEADERS_HIDE 0
 
const SMW_OUTPUT_HTML 1
 
const SMW_OUTPUT_WIKI 2
 
const SMW_OUTPUT_FILE 3
 
const SMW_FACTBOX_HIDDEN 1
 
const SMW_FACTBOX_SPECIAL 2
 
const SMW_FACTBOX_NONEMPTY 3
 
const SMW_FACTBOX_SHOWN 5
 
const SMW_EQ_NONE 0
 
const SMW_EQ_SOME 1
 
const SMW_EQ_FULL 2
 
const SMW_PROPERTY_QUERY 1
 
const SMW_CATEGORY_QUERY 2
 
const SMW_CONCEPT_QUERY 4
 
const SMW_NAMESPACE_QUERY 8
 
const SMW_CONJUNCTION_QUERY 16
 
const SMW_DISJUNCTION_QUERY 32
 
const SMW_ANY_QUERY 0xFFFFFFFF
 
const CONCEPT_CACHE_ALL 4
 
const CONCEPT_CACHE_HARD 1
 
const CONCEPT_CACHE_NONE 0
 
const SMW_HEADER_TOOLTIP 2
 
const SMW_HEADER_SORTTABLE 3
 
const SMW_HEADER_STYLE 4
 
const SMW_CMP_EQ 1
 
const SMW_CMP_LEQ 2
 
const SMW_CMP_GEQ 3
 
const SMW_CMP_NEQ 4
 
const SMW_CMP_LIKE 5
 
const SMW_CMP_NLKE 6
 
const SMW_CMP_LESS 7
 
const SMW_CMP_GRTR 8
 
const SMW_MDY 785
 
const SMW_DMY 673
 
const SMW_YMD 610
 
const SMW_YDM 596
 
const SMW_MY 97
 
const SMW_YM 76
 
const SMW_Y 9
 
const SMW_YEAR 1
 
const SMW_DAY 2
 
const SMW_MONTH 4
 
const SMW_DAY_MONTH_YEAR 7
 
const SMW_DAY_YEAR 3
 
const SMW_PREC_Y 0
 
const SMW_PREC_YM 1
 
const SMW_PREC_YMD 2
 
const SMW_PREC_YMDT 3
 
const SMW_PREC_YMDTZ 4
 
const SMW_SPARQL_QF_NONE 0
 
const SMW_SPARQL_QF_REDI 2
 
const SMW_SPARQL_QF_SUBP 4
 
const SMW_SPARQL_QF_SUBC 8
 
const SMW_VL_SD 1
 
const SMW_VL_PL 2
 
const SMW_VL_PV 4
 
const SMW_VL_PS 8
 
const SMW_UJ_PM_NP 2
 
const SMW_UJ_PM_CLASTMDATE 4
 
const SMW_HTTP_DEFERRED_ASYNC true
 
const SMW_HTTP_DEFERRED_SYNC_JOB 4
 
const SMW_HTTP_DEFERRED_LAZY_JOB 8
 
const SMW_DV_NONE 0
 
const SMW_DV_PROV_REDI 2
 
const SMW_DV_MLTV_LCODE 4
 
const SMW_DV_NUMV_USPACE 8
 
const SMW_DV_PVAP 16
 
const SMW_DV_WPV_DTITLE 32
 
const SMW_DV_PROV_DTITLE 64
 
const SMW_DV_PVUC 128
 
const SMW_DV_TIMEV_CM 256
 
const SMW_DV_PPLB 512
 
const SMW_DV_PROV_LHNT 1024
 
const SMW_FT_NONE 0
 
const SMW_FT_BLOB 2
 
const SMW_FT_URI 4
 
const SMW_FT_WIKIPAGE 8
 
const SMW_ADM_NONE 0
 
const SMW_ADM_REFRESH 2
 
const SMW_ADM_DISPOSAL 4
 
const SMW_ADM_SETUP 8
 
const SMW_ADM_PSTATS 16
 
const SMW_ADM_FULLT 32
 
const SMW_LINV_PCRE 2
 
const SMW_LINV_OBFU 4
 
const SMW_RF_NONE 0
 
const SMW_RF_TEMPLATE_OUTSEP 2
 

Variable Documentation

const CONCEPT_CACHE_ALL 4

Constants for defining which concepts to show only if cached

const CONCEPT_CACHE_HARD 1
const CONCEPT_CACHE_NONE 0
const SMW_ADM_DISPOSAL 4
const SMW_ADM_FULLT 32
const SMW_ADM_NONE 0

Constants for admin features

const SMW_ADM_PSTATS 16
const SMW_ADM_REFRESH 2
const SMW_ADM_SETUP 8
const SMW_ANY_QUERY 0xFFFFFFFF
const SMW_CATEGORY_QUERY 2
const SMW_CMP_EQ 1

Comparators for datavalues

const SMW_CMP_GEQ 3
const SMW_CMP_GRTR 8
const SMW_CMP_LEQ 2
const SMW_CMP_LESS 7
const SMW_CMP_LIKE 5
const SMW_CMP_NEQ 4
const SMW_CMP_NLKE 6
const SMW_CONCEPT_QUERY 4
const SMW_CONJUNCTION_QUERY 16
const SMW_DAY 2
const SMW_DAY_MONTH_YEAR 7
const SMW_DAY_YEAR 3
const SMW_DISJUNCTION_QUERY 32
const SMW_DMY 673
const SMW_DV_MLTV_LCODE 4
const SMW_DV_NONE 0

Constants DV features

const SMW_DV_NUMV_USPACE 8
const SMW_DV_PPLB 512
const SMW_DV_PROV_DTITLE 64
const SMW_DV_PROV_LHNT 1024
const SMW_DV_PROV_REDI 2
const SMW_DV_PVAP 16
const SMW_DV_PVUC 128
const SMW_DV_TIMEV_CM 256
const SMW_DV_WPV_DTITLE 32
const SMW_EQ_FULL 2
const SMW_EQ_NONE 0

Constants for regulating equality reasoning

const SMW_EQ_SOME 1
const SMW_FACTBOX_HIDDEN 1

Constants for displaying the factbox

const SMW_FACTBOX_NONEMPTY 3
const SMW_FACTBOX_SHOWN 5
const SMW_FACTBOX_SPECIAL 2
const SMW_FT_BLOB 2
const SMW_FT_NONE 0

Constants for Fulltext types

const SMW_FT_URI 4
const SMW_FT_WIKIPAGE 8
const SMW_HEADER_SORTTABLE 3
Deprecated:
Module removed. Vanishes in SMW 1.7 at the latest.
const SMW_HEADER_STYLE 4
Deprecated:
Use module 'ext.smw.style', see SMW_Ouptuts.php. Vanishes in SMW 1.7 at the latest.
const SMW_HEADER_TOOLTIP 2

Constants for identifying javascripts as used in SMWOutputs

Deprecated:
Use module 'ext.smw.tooltips', see SMW_Ouptuts.php. Vanishes in SMW 1.7 at the latest.
const SMW_HTTP_DEFERRED_ASYNC true

Constants for DeferredRequestDispatchManager update modes

const SMW_HTTP_DEFERRED_LAZY_JOB 8
const SMW_HTTP_DEFERRED_SYNC_JOB 4
const SMW_LINV_OBFU 4
const SMW_LINV_PCRE 2

Constants for LinksInValue features

const SMW_MDY 785

Constants for date formats (using binary encoding of nine bits: 3 positions x 3 interpretations)

const SMW_MONTH 4
const SMW_MY 97
const SMW_NAMESPACE_QUERY 8
const SMW_OUTPUT_FILE 3
const SMW_OUTPUT_HTML 1

Constants for denoting output modes in many functions: HTML or Wiki? "File" is for printing results into stand-alone files (e.g. building RSS) and should be treated like HTML when building single strings. Only query printers tend to have special handling for that.

const SMW_OUTPUT_WIKI 2
const SMW_PREC_Y 0

Constants for date/time precision

const SMW_PREC_YM 1
const SMW_PREC_YMD 2
const SMW_PREC_YMDT 3
const SMW_PREC_YMDTZ 4
const SMW_PROPERTY_QUERY 1

Flags to classify available query descriptions, used to enable/disable certain features

const SMW_RF_NONE 0

Constants for ResultPrinter

const SMW_RF_TEMPLATE_OUTSEP 2
const SMW_SPARQL_QF_NONE 0

Constants for SPARQL supported features (mostly SPARQL 1.1) because we are unable to verify against the REST API whether a feature is supported or not

const SMW_SPARQL_QF_REDI 2
const SMW_SPARQL_QF_SUBC 8
const SMW_SPARQL_QF_SUBP 4
const SMW_UJ_PM_CLASTMDATE 4
const SMW_UJ_PM_NP 2

Constants for UpdateJob ParserMode

const SMW_VL_PL 2
const SMW_VL_PS 8
const SMW_VL_PV 4
const SMW_VL_SD 1

Constants for ValueLookupStore

const SMW_Y 9
const SMW_YDM 596
const SMW_YEAR 1
const SMW_YM 76
const SMW_YMD 610