WikibaseLexeme
MediaWiki WikibaseLexeme extension
Loading...
Searching...
No Matches
Wikibase\Lexeme\Presentation\Rdf\LexemeSpecificComponentsRdfBuilder Class Reference

Rdf builder for parts of lexeme. More...

+ Inheritance diagram for Wikibase\Lexeme\Presentation\Rdf\LexemeSpecificComponentsRdfBuilder:
+ Collaboration diagram for Wikibase\Lexeme\Presentation\Rdf\LexemeSpecificComponentsRdfBuilder:

Public Member Functions

 __construct (RdfVocabulary $vocabulary, RdfWriter $writer, EntityMentionListener $entityMentionTracker)
 
 addPrefixes ()
 Adds the prefixes used by the lexeme RDF mapping to the writer It should be executed before the writer starts.
 
 addEntity (EntityDocument $entity)
 Map WikibaseLexeme entities to the RDF graph.
 

Private Member Functions

 addLexeme (Lexeme $lexeme)
 Map a Lexeme to the RDF graph.
 
 addLexemeTypes ( $lexemePrefix, $lexemeLName)
 Adds the types of the given lexeme to the RDF graph.
 
 addLemmas ( $lexemePrefix, $lexemeLName, TermList $lemmas)
 Adds the lemmas of the given lexeme to the RDF graph.
 
 addLanguage ( $lexemePrefix, $lexemeLName, ItemId $language)
 Adds the language of the given lexeme to the RDF graph.
 
 addLexicalCategory ( $lexemePrefix, $lexemeLName, ItemId $lexicalCategory)
 Adds the lexical category of the given lexeme to the RDF graph.
 
 addForms ( $lexemePrefix, $lexemeLName, FormSet $forms)
 Adds the forms of the given lexeme to the RDF graph.
 
 addSenses ( $lexemePrefix, $lexemeLName, SenseSet $senses)
 Adds the senses of the given lexeme to the RDF graph.
 
 addForm (Form $form)
 Map a Form to the RDF graph.
 
 addFormTypes ( $lexemePrefix, $formLName)
 Adds the types of the given form to the RDF graph.
 
 addRepresentations ( $lexemePrefix, $formLName, TermList $representations)
 Adds the representations of the given form to the RDF graph.
 
 addGrammaticalFeatures ( $lexemePrefix, $formLName, array $grammaticalFeatures)
 Adds the grammatical features of the given form to the RDF graph.
 
 addSense (Sense $sense)
 Map a Sense to the RDF graph.
 
 addSenseTypes ( $lexemePrefix, $senseLName)
 Adds the types of the given sense to the RDF graph.
 
 addGlosses ( $lexemePrefix, $senseLName, TermList $glosses)
 Adds the glosses of the given sense to the RDF graph.
 

Private Attributes

const NS_ONTOLEX = 'ontolex'
 
const NS_DUBLIN_CORE_TERM = 'dct'
 
 $vocabulary
 
 $writer
 
 $entityMentionTracker
 

Detailed Description

Rdf builder for parts of lexeme.

Author
Thomas Pellissier Tanon
Amir Sarabadani ladsg.nosp@m.roup.nosp@m.@gmai.nosp@m.l.co.nosp@m.m

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lexeme\Presentation\Rdf\LexemeSpecificComponentsRdfBuilder::__construct ( RdfVocabulary $vocabulary,
RdfWriter $writer,
EntityMentionListener $entityMentionTracker )

Member Function Documentation

◆ addEntity()

Wikibase\Lexeme\Presentation\Rdf\LexemeSpecificComponentsRdfBuilder::addEntity ( EntityDocument $entity)

Map WikibaseLexeme entities to the RDF graph.

Parameters
EntityDocument$entity

◆ addForm()

Wikibase\Lexeme\Presentation\Rdf\LexemeSpecificComponentsRdfBuilder::addForm ( Form $form)
private

Map a Form to the RDF graph.

Parameters
Form$form

◆ addForms()

Wikibase\Lexeme\Presentation\Rdf\LexemeSpecificComponentsRdfBuilder::addForms ( $lexemePrefix,
$lexemeLName,
FormSet $forms )
private

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

Parameters
string$lexemePrefix
string$lexemeLName
FormSet$forms

◆ addFormTypes()

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

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

Parameters
string$lexemePrefix
string$formLName

◆ addGlosses()

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

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

Parameters
string$lexemePrefix
string$senseLName
TermList$glosses

◆ addGrammaticalFeatures()

Wikibase\Lexeme\Presentation\Rdf\LexemeSpecificComponentsRdfBuilder::addGrammaticalFeatures ( $lexemePrefix,
$formLName,
array $grammaticalFeatures )
private

Adds the grammatical features of the given form to the RDF graph.

Parameters
string$lexemePrefix
string$formLName
ItemId[]$grammaticalFeatures

◆ addLanguage()

Wikibase\Lexeme\Presentation\Rdf\LexemeSpecificComponentsRdfBuilder::addLanguage ( $lexemePrefix,
$lexemeLName,
ItemId $language )
private

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

Parameters
string$lexemePrefix
string$lexemeLName
ItemId$language

◆ addLemmas()

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

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

Parameters
string$lexemePrefix
string$lexemeLName
TermList$lemmas

◆ addLexeme()

Wikibase\Lexeme\Presentation\Rdf\LexemeSpecificComponentsRdfBuilder::addLexeme ( Lexeme $lexeme)
private

Map a Lexeme to the RDF graph.

Parameters
Lexeme$lexeme

◆ addLexemeTypes()

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

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

Parameters
string$lexemePrefix
string$lexemeLName

◆ addLexicalCategory()

Wikibase\Lexeme\Presentation\Rdf\LexemeSpecificComponentsRdfBuilder::addLexicalCategory ( $lexemePrefix,
$lexemeLName,
ItemId $lexicalCategory )
private

Adds the lexical category of the given lexeme to the RDF graph.

Parameters
string$lexemePrefix
string$lexemeLName
ItemId$lexicalCategory

◆ addPrefixes()

Wikibase\Lexeme\Presentation\Rdf\LexemeSpecificComponentsRdfBuilder::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\LexemeSpecificComponentsRdfBuilder::addRepresentations ( $lexemePrefix,
$formLName,
TermList $representations )
private

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

Parameters
string$lexemePrefix
string$formLName
TermList$representations

◆ addSense()

Wikibase\Lexeme\Presentation\Rdf\LexemeSpecificComponentsRdfBuilder::addSense ( Sense $sense)
private

Map a Sense to the RDF graph.

Parameters
Sense$sense

◆ addSenses()

Wikibase\Lexeme\Presentation\Rdf\LexemeSpecificComponentsRdfBuilder::addSenses ( $lexemePrefix,
$lexemeLName,
SenseSet $senses )
private

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

Parameters
string$lexemePrefix
string$lexemeLName
SenseSet$senses

◆ addSenseTypes()

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

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

Parameters
string$lexemePrefix
string$senseLName

Member Data Documentation

◆ $entityMentionTracker

Wikibase\Lexeme\Presentation\Rdf\LexemeSpecificComponentsRdfBuilder::$entityMentionTracker
private

◆ $vocabulary

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

◆ $writer

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

◆ NS_DUBLIN_CORE_TERM

const Wikibase\Lexeme\Presentation\Rdf\LexemeSpecificComponentsRdfBuilder::NS_DUBLIN_CORE_TERM = 'dct'
private

◆ NS_ONTOLEX

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

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