Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\Rdf\SiteLinksRdfBuilder Class Reference

RDF mapping for entity SiteLinks. More...

+ Inheritance diagram for Wikibase\Repo\Rdf\SiteLinksRdfBuilder:
+ Collaboration diagram for Wikibase\Repo\Rdf\SiteLinksRdfBuilder:

Public Member Functions

 __construct (RdfVocabulary $vocabulary, RdfWriter $writer, SiteList $siteLookup, array $sites=null)
 
 setDedupeBag (DedupeBag $dedupeBag)
 
 addEntity (EntityDocument $entity)
 Add the entity's sitelinks to the RDF graph. More...
 
 addEntityStub (EntityDocument $entity)
 Does nothing, since SiteLinks should not be part of entity stubs. More...
 

Private Member Functions

 isSiteIncluded ( $lang)
 Site filter. More...
 

Private Attributes

 $vocabulary
 
 $writer
 
 $siteLookup
 
 $sites
 
 $dedupeBag
 

Detailed Description

RDF mapping for entity SiteLinks.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\Rdf\SiteLinksRdfBuilder::__construct ( RdfVocabulary  $vocabulary,
RdfWriter  $writer,
SiteList  $siteLookup,
array  $sites = null 
)
Parameters
RdfVocabulary$vocabulary
RdfWriter$writer
SiteList$siteLookup
string[] | null$sites

Member Function Documentation

◆ addEntity()

Wikibase\Repo\Rdf\SiteLinksRdfBuilder::addEntity ( EntityDocument  $entity)

Add the entity's sitelinks to the RDF graph.

Parameters
EntityDocument$entitythe entity to output.

Implements Wikibase\Repo\Rdf\EntityRdfBuilder.

◆ addEntityStub()

Wikibase\Repo\Rdf\SiteLinksRdfBuilder::addEntityStub ( EntityDocument  $entity)

Does nothing, since SiteLinks should not be part of entity stubs.

See also
EntityRdfBuilder::addEntityStub
Parameters
EntityDocument$entitythe entity to output.

Implements Wikibase\Repo\Rdf\EntityRdfBuilder.

◆ isSiteIncluded()

Wikibase\Repo\Rdf\SiteLinksRdfBuilder::isSiteIncluded (   $lang)
private

Site filter.

Parameters
string$lang
Returns
bool

◆ setDedupeBag()

Wikibase\Repo\Rdf\SiteLinksRdfBuilder::setDedupeBag ( DedupeBag  $dedupeBag)

Member Data Documentation

◆ $dedupeBag

Wikibase\Repo\Rdf\SiteLinksRdfBuilder::$dedupeBag
private

◆ $siteLookup

Wikibase\Repo\Rdf\SiteLinksRdfBuilder::$siteLookup
private

◆ $sites

Wikibase\Repo\Rdf\SiteLinksRdfBuilder::$sites
private

◆ $vocabulary

Wikibase\Repo\Rdf\SiteLinksRdfBuilder::$vocabulary
private

◆ $writer

Wikibase\Repo\Rdf\SiteLinksRdfBuilder::$writer
private

The documentation for this class was generated from the following file: