Semantic MediaWiki and related extensions
|
Public Member Functions | |
__construct (ParserData $parserData, NamespaceExaminer $namespaceExaminer, CitationTextTemplateRenderer $citationTextTemplateRenderer, MediaWikiNsContentMapper $mediaWikiNsContentMapper, BibtexProcessor $bibtexProcessor) | |
setStrictParserValidationState ( $strictParserValidationState) | |
doProcess (ParserParameterProcessor $parserParameterProcessor, PreTextFormatter $preTextFormatter=null) | |
#scite: is used the create a citation resource with a reference to be accessible wiki-wide trough a unique citation key.
[[CiteRef: ... ]] | [[Citation reference:: ...]] is used to create an in-text reference link to a citation resource.
GNU GPL v2+
SCI\SciteParserFunction::__construct | ( | ParserData | $parserData, |
NamespaceExaminer | $namespaceExaminer, | ||
CitationTextTemplateRenderer | $citationTextTemplateRenderer, | ||
MediaWikiNsContentMapper | $mediaWikiNsContentMapper, | ||
BibtexProcessor | $bibtexProcessor | ||
) |
ParserData | $parserData | |
NamespaceExaminer | $namespaceExaminer | |
CitationTextTemplateRenderer | $citationTextTemplateRenderer | |
MediaWikiNsContentMapper | $mediaWikiNsContentMapper | |
BibtexProcessor | $bibtexProcessor |
SCI\SciteParserFunction::doProcess | ( | ParserParameterProcessor | $parserParameterProcessor, |
PreTextFormatter | $preTextFormatter = null |
||
) |
Identifiers that have a id-property mapping are to be annotated as semantic property. The property mapped to an identifier should be maintained accordantly with the the expected type it ought to represent (e.g. 'url' => 'Has url', with 'Has url' being of [[Has type::URL]])
Only identifiers used in #scite: that have an appropriate mapping will be created as semantic annotation. For example, identifiers important for the citation output are not necessarily notable for a semantic assignment (e.g. 'pages', 'page reference', or 'available').
{{#scite:Segon & Booth 2011 |type=online |author=Segon, M;Booth, C|+sep=; |year=2011 |title=Bribery: what do Australian managers know and what do they do? |journal=Journal of Business Systems, Governance and Ethics |volumn=vol. 6, no. 3 |pages=15-29 |url=http://www.jbsge.vu.edu.au/issues/vol06no3/Segon_&_Booth.pdf |available=20 October 2014 |template=scite-formatter-online }}
OR
{{#scite:Einstein, Podolsky, and Nathan 1935 |bibtex={einstein1935can, title={Can quantum-mechanical description of physical reality be considered complete?}, author={Einstein, Albert and Podolsky, Boris and Rosen, Nathan}, journal={Physical review}, volume={47}, number={10}, pages={777}, year={1935}, publisher={APS} } |authors=Albert Einstein, Boris Podolsky, Nathan Rosen|+sep=, }}
The citation style is determined by the template assigned and stored in its own semantic property. To apply for individual formatting rules, use |template=
For any free text assignment use, |citation text=
ParserParameterProcessor | $parserParameterProcessor |
SCI\SciteParserFunction::setStrictParserValidationState | ( | $strictParserValidationState | ) |
boolean | $strictParserValidationState |