WikibaseLexeme
MediaWiki WikibaseLexeme extension
|
Rdf builder for parts of lexeme. More...
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 | |
Rdf builder for parts of lexeme.
Wikibase\Lexeme\Presentation\Rdf\LexemeSpecificComponentsRdfBuilder::__construct | ( | RdfVocabulary | $vocabulary, |
RdfWriter | $writer, | ||
EntityMentionListener | $entityMentionTracker ) |
Wikibase\Lexeme\Presentation\Rdf\LexemeSpecificComponentsRdfBuilder::addEntity | ( | EntityDocument | $entity | ) |
Map WikibaseLexeme entities to the RDF graph.
EntityDocument | $entity |
|
private |
Map a Form to the RDF graph.
Form | $form |
|
private |
Adds the forms of the given lexeme to the RDF graph.
string | $lexemePrefix | |
string | $lexemeLName | |
FormSet | $forms |
|
private |
Adds the types of the given form to the RDF graph.
string | $lexemePrefix | |
string | $formLName |
|
private |
Adds the glosses of the given sense to the RDF graph.
string | $lexemePrefix | |
string | $senseLName | |
TermList | $glosses |
|
private |
Adds the grammatical features of the given form to the RDF graph.
string | $lexemePrefix | |
string | $formLName | |
ItemId[] | $grammaticalFeatures |
|
private |
Adds the language of the given lexeme to the RDF graph.
string | $lexemePrefix | |
string | $lexemeLName | |
ItemId | $language |
|
private |
Adds the lemmas of the given lexeme to the RDF graph.
string | $lexemePrefix | |
string | $lexemeLName | |
TermList | $lemmas |
|
private |
Map a Lexeme to the RDF graph.
Lexeme | $lexeme |
|
private |
Adds the types of the given lexeme to the RDF graph.
string | $lexemePrefix | |
string | $lexemeLName |
|
private |
Adds the lexical category of the given lexeme to the RDF graph.
string | $lexemePrefix | |
string | $lexemeLName | |
ItemId | $lexicalCategory |
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.
|
private |
Adds the representations of the given form to the RDF graph.
string | $lexemePrefix | |
string | $formLName | |
TermList | $representations |
|
private |
Map a Sense to the RDF graph.
Sense | $sense |
|
private |
Adds the senses of the given lexeme to the RDF graph.
string | $lexemePrefix | |
string | $lexemeLName | |
SenseSet | $senses |
|
private |
Adds the types of the given sense to the RDF graph.
string | $lexemePrefix | |
string | $senseLName |
|
private |
|
private |
|
private |
|
private |
|
private |