|
Wikibase
MediaWiki Wikibase extension
|
Factory to return Rdf builders for special parts of properties. More...
Inheritance diagram for Wikibase\Repo\Rdf\PropertyRdfBuilder:
Collaboration diagram for Wikibase\Repo\Rdf\PropertyRdfBuilder:Public Member Functions | |
| __construct (RdfVocabulary $vocabulary, RdfWriter $writer, array $dataTypes=[]) | |
| addEntity (EntityDocument $entity) | |
| Map a property to the RDF graph. | |
| addEntityStub (EntityDocument $entity) | |
| Map some aspects of a property to the RDF graph, as it should appear in the stub representation of the property. | |
Public Attributes | |
| const | OBJECT_PROPERTY = 'ObjectProperty' |
| const | DATATYPE_PROPERTY = 'DatatypeProperty' |
| const | NO_NORMALIZATION = null |
Private Member Functions | |
| writePropertyPredicates ( $localName, $repositoryName, $propertyRdfType, $normalizedPropertyRdfType) | |
| Write predicates linking property entity to property predicates. | |
| getPropertyRdfType (Property $property) | |
| Check if the property describes link between objects or just data item. | |
| getNormalizedPropertyRdfType (Property $property) | |
| writeNovalueClass ( $localName, $repositoryName) | |
| Write definition for wdno:P123 class to use as novalue. | |
| addProperty (Property $property) | |
Private Attributes | |
| $vocabulary | |
| $writer | |
| $dataTypes | |
Factory to return Rdf builders for special parts of properties.
| Wikibase\Repo\Rdf\PropertyRdfBuilder::__construct | ( | RdfVocabulary | $vocabulary, |
| RdfWriter | $writer, | ||
| array | $dataTypes = [] |
||
| ) |
| Wikibase\Repo\Rdf\PropertyRdfBuilder::addEntity | ( | EntityDocument | $entity | ) |
Map a property to the RDF graph.
| EntityDocument | $entity |
Implements Wikibase\Repo\Rdf\EntityRdfBuilder.
| Wikibase\Repo\Rdf\PropertyRdfBuilder::addEntityStub | ( | EntityDocument | $entity | ) |
Map some aspects of a property to the RDF graph, as it should appear in the stub representation of the property.
| EntityDocument | $entity |
Implements Wikibase\Repo\Rdf\EntityRdfBuilder.
|
private |
|
private |
| Property | $property |
|
private |
Check if the property describes link between objects or just data item.
| Property | $property |
|
private |
Write definition for wdno:P123 class to use as novalue.
| string | $localName | |
| string | $repositoryName |
|
private |
Write predicates linking property entity to property predicates.
| string | $localName | |
| string | $repositoryName | |
| string | $propertyRdfType | OWL data type (OBJECT_PROPERTY or DATATYPE_PROPERTY) |
| string | null | $normalizedPropertyRdfType | Does the property have normalized predicates, and if so does the property normalize to data or objects? |
|
private |
|
private |
|
private |
| const Wikibase\Repo\Rdf\PropertyRdfBuilder::DATATYPE_PROPERTY = 'DatatypeProperty' |
| const Wikibase\Repo\Rdf\PropertyRdfBuilder::NO_NORMALIZATION = null |
| const Wikibase\Repo\Rdf\PropertyRdfBuilder::OBJECT_PROPERTY = 'ObjectProperty' |