WikibaseLexeme
MediaWiki WikibaseLexeme extension
Loading...
Searching...
No Matches
Wikibase\Lexeme\Presentation\Rdf\LexemeStubRdfBuilder Class Reference
+ Inheritance diagram for Wikibase\Lexeme\Presentation\Rdf\LexemeStubRdfBuilder:
+ Collaboration diagram for Wikibase\Lexeme\Presentation\Rdf\LexemeStubRdfBuilder:

Public Member Functions

 __construct (RdfVocabulary $vocabulary, RdfWriter $writer, EntityLookup $entityLookup)
 
 addPrefixes ()
 Adds the prefixes used by the lexeme RDF mapping to the writer It should be executed before the writer starts.
 
 addEntityStub (EntityId $entityId)
 Map some aspect of an entity to the RDF graph, as it should appear in the stub representation of the entity.
 

Private Member Functions

 addLexemeStub (Lexeme $lexeme)
 Map some aspect of a Lexeme to the RDF graph, as it should appear in the stub representation of the lexeme.
 
 addFormStub (Form $form)
 Map some aspect of a Form to the RDF graph, as it should appear in the stub representation of the form.
 
 addSenseStub (Sense $sense)
 Map some aspect of a Sense to the RDF graph, as it should appear in the stub representation of the sense.
 
 addFormTypes (string $lexemePrefix, string $formLName)
 Adds the types of the given form to the RDF graph.
 
 addRepresentations (string $lexemePrefix, string $formLName, TermList $representations)
 Adds the representations of the given form to the RDF graph.
 
 addLexemeTypes (string $lexemePrefix, string $lexemeLName)
 Adds the types of the given lexeme to the RDF graph.
 
 addSenseTypes (string $lexemePrefix, string $senseLName)
 Adds the types of the given sense to the RDF graph.
 
 addGlosses (string $lexemePrefix, string $senseLName, TermList $glosses)
 Adds the glosses of the given sense to the RDF graph.
 
 addLemmas (string $lexemePrefix, string $lexemeLName, TermList $lemmas)
 Adds the lemmas of the given lexeme to the RDF graph.
 

Private Attributes

const NS_ONTOLEX = 'ontolex'
 
 $vocabulary
 
 $writer
 
 $entityLookup
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lexeme\Presentation\Rdf\LexemeStubRdfBuilder::__construct ( RdfVocabulary $vocabulary,
RdfWriter $writer,
EntityLookup $entityLookup )

Member Function Documentation

◆ addEntityStub()

Wikibase\Lexeme\Presentation\Rdf\LexemeStubRdfBuilder::addEntityStub ( EntityId $entityId)

Map some aspect of an entity to the RDF graph, as it should appear in the stub representation of the entity.

Parameters
EntityId$entityId

◆ addFormStub()

Wikibase\Lexeme\Presentation\Rdf\LexemeStubRdfBuilder::addFormStub ( Form $form)
private

Map some aspect of a Form to the RDF graph, as it should appear in the stub representation of the form.

Parameters
Form$form

◆ addFormTypes()

Wikibase\Lexeme\Presentation\Rdf\LexemeStubRdfBuilder::addFormTypes ( string $lexemePrefix,
string $formLName )
private

Adds the types of the given form to the RDF graph.

Parameters
string$lexemePrefix
string$formLName

◆ addGlosses()

Wikibase\Lexeme\Presentation\Rdf\LexemeStubRdfBuilder::addGlosses ( string $lexemePrefix,
string $senseLName,
TermList $glosses )
private

Adds the glosses of the given sense to the RDF graph.

Parameters
string$lexemePrefix
string$senseLName
TermList$glosses

◆ addLemmas()

Wikibase\Lexeme\Presentation\Rdf\LexemeStubRdfBuilder::addLemmas ( string $lexemePrefix,
string $lexemeLName,
TermList $lemmas )
private

Adds the lemmas of the given lexeme to the RDF graph.

Parameters
string$lexemePrefix
string$lexemeLName
TermList$lemmas

◆ addLexemeStub()

Wikibase\Lexeme\Presentation\Rdf\LexemeStubRdfBuilder::addLexemeStub ( Lexeme $lexeme)
private

Map some aspect of a Lexeme to the RDF graph, as it should appear in the stub representation of the lexeme.

Parameters
Lexeme$lexeme

◆ addLexemeTypes()

Wikibase\Lexeme\Presentation\Rdf\LexemeStubRdfBuilder::addLexemeTypes ( string $lexemePrefix,
string $lexemeLName )
private

Adds the types of the given lexeme to the RDF graph.

Parameters
string$lexemePrefix
string$lexemeLName

◆ addPrefixes()

Wikibase\Lexeme\Presentation\Rdf\LexemeStubRdfBuilder::addPrefixes ( )

Adds the prefixes used by the lexeme RDF mapping to the writer It should be executed before the writer starts.

◆ addRepresentations()

Wikibase\Lexeme\Presentation\Rdf\LexemeStubRdfBuilder::addRepresentations ( string $lexemePrefix,
string $formLName,
TermList $representations )
private

Adds the representations of the given form to the RDF graph.

Parameters
string$lexemePrefix
string$formLName
TermList$representations

◆ addSenseStub()

Wikibase\Lexeme\Presentation\Rdf\LexemeStubRdfBuilder::addSenseStub ( Sense $sense)
private

Map some aspect of a Sense to the RDF graph, as it should appear in the stub representation of the sense.

Parameters
Sense$sense

◆ addSenseTypes()

Wikibase\Lexeme\Presentation\Rdf\LexemeStubRdfBuilder::addSenseTypes ( string $lexemePrefix,
string $senseLName )
private

Adds the types of the given sense to the RDF graph.

Parameters
string$lexemePrefix
string$senseLName

Member Data Documentation

◆ $entityLookup

Wikibase\Lexeme\Presentation\Rdf\LexemeStubRdfBuilder::$entityLookup
private

◆ $vocabulary

Wikibase\Lexeme\Presentation\Rdf\LexemeStubRdfBuilder::$vocabulary
private

◆ $writer

Wikibase\Lexeme\Presentation\Rdf\LexemeStubRdfBuilder::$writer
private

◆ NS_ONTOLEX

const Wikibase\Lexeme\Presentation\Rdf\LexemeStubRdfBuilder::NS_ONTOLEX = 'ontolex'
private

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