Wikibase
MediaWiki Wikibase extension
|
Fully reified RDF mapping for wikibase statements, including deprecated and non-"best" statements, ranks, qualifiers, and references. More...
Public Member Functions | |
__construct (RdfVocabulary $vocabulary, RdfWriter $writer, SnakRdfBuilder $snakBuilder) | |
setDedupeBag (DedupeBag $dedupeBag) | |
getProduceQualifiers () | |
setProduceQualifiers ( $produceQualifiers) | |
getProduceReferences () | |
setProduceReferences ( $produceReferences) | |
addStatements (EntityId $entityId, StatementList $statementList) | |
Adds Statements to the RDF graph. | |
addEntity (EntityDocument $entity) | |
Add fully reified statements for the given entity to the RDF graph. | |
Private Member Functions | |
addMainSnak (EntityId $entityId, $statementLName, Statement $statement, $isBest) | |
Adds the given Statement's main Snak to the RDF graph. | |
Private Attributes | |
$dedupeBag | |
$produceQualifiers = true | |
$produceReferences = true | |
$vocabulary | |
$statementWriter | |
$referenceWriter | |
$snakBuilder | |
Fully reified RDF mapping for wikibase statements, including deprecated and non-"best" statements, ranks, qualifiers, and references.
This modells statements as identifiable objects and does not output a direct property to value mapping as the TruthyStatementRdfBuilder does. If both forms (direct and full) are desired, use TruthyStatementRdfBuilder in addition to FullStatementRdfBuilder.
Wikibase\Repo\Rdf\FullStatementRdfBuilder::__construct | ( | RdfVocabulary | $vocabulary, |
RdfWriter | $writer, | ||
SnakRdfBuilder | $snakBuilder ) |
Wikibase\Repo\Rdf\FullStatementRdfBuilder::addEntity | ( | EntityDocument | $entity | ) |
Add fully reified statements for the given entity to the RDF graph.
This may include qualifiers and references, depending on calls to setProduceQualifiers() resp. setProduceReferences().
EntityDocument | $entity | the entity to output. |
Implements Wikibase\Repo\Rdf\EntityRdfBuilder.
|
private |
Adds the given Statement's main Snak to the RDF graph.
EntityId | $entityId | |
string | $statementLName | |
Statement | $statement | |
bool | $isBest | Is this best ranked statement? |
Wikibase\Repo\Rdf\FullStatementRdfBuilder::addStatements | ( | EntityId | $entityId, |
StatementList | $statementList ) |
Adds Statements to the RDF graph.
EntityId | $entityId | |
StatementList | $statementList |
Wikibase\Repo\Rdf\FullStatementRdfBuilder::getProduceQualifiers | ( | ) |
Wikibase\Repo\Rdf\FullStatementRdfBuilder::getProduceReferences | ( | ) |
Wikibase\Repo\Rdf\FullStatementRdfBuilder::setDedupeBag | ( | DedupeBag | $dedupeBag | ) |
Wikibase\Repo\Rdf\FullStatementRdfBuilder::setProduceQualifiers | ( | $produceQualifiers | ) |
boolean | $produceQualifiers |
Wikibase\Repo\Rdf\FullStatementRdfBuilder::setProduceReferences | ( | $produceReferences | ) |
boolean | $produceReferences |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |