|
| __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. More...
|
|
| addEntityStub (EntityId $entityId) |
| Map some aspect of an entity to the RDF graph, as it should appear in the stub representation of the entity. More...
|
|
|
| addLexemeStub (Lexeme $lexeme) |
| Map some aspect of a Lexeme to the RDF graph, as it should appear in the stub representation of the lexeme. More...
|
|
| addFormStub (Form $form) |
| Map some aspect of a Form to the RDF graph, as it should appear in the stub representation of the form. More...
|
|
| addSenseStub (Sense $sense) |
| Map some aspect of a Sense to the RDF graph, as it should appear in the stub representation of the sense. More...
|
|
| addFormTypes (string $lexemePrefix, string $formLName) |
| Adds the types of the given form to the RDF graph. More...
|
|
| addRepresentations (string $lexemePrefix, string $formLName, TermList $representations) |
| Adds the representations of the given form to the RDF graph. More...
|
|
| addLexemeTypes (string $lexemePrefix, string $lexemeLName) |
| Adds the types of the given lexeme to the RDF graph. More...
|
|
| addSenseTypes (string $lexemePrefix, string $senseLName) |
| Adds the types of the given sense to the RDF graph. More...
|
|
| addGlosses (string $lexemePrefix, string $senseLName, TermList $glosses) |
| Adds the glosses of the given sense to the RDF graph. More...
|
|
| addLemmas (string $lexemePrefix, string $lexemeLName, TermList $lemmas) |
| Adds the lemmas of the given lexeme to the RDF graph. More...
|
|
- Copyright
- GPL-2.0-or-later
◆ __construct()
Wikibase\Lexeme\Presentation\Rdf\LexemeStubRdfBuilder::__construct |
( |
RdfVocabulary |
$vocabulary, |
|
|
RdfWriter |
$writer, |
|
|
EntityLookup |
$entityLookup |
|
) |
| |
◆ 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
-
◆ 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
-
◆ 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
-
◆ 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
-
◆ 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 | |
◆ $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: