Uses of Interface
org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue
Package
Description
Package for mostly static helper code to work with data objects.
Basic implementation for objects representing Wikibase data and related factories.
Interfaces for representing Wikibase data and related factories.
Components for downloading and processing Wikibase dump files.
Package for example programs that demonstrate how to use Wikidata Toolkit in practice.
Serializer for RDF
Package for code related to the conversion of data values to RDF in various ways.
Components for accessing the Web API of a Wikibase website, such as wikidata.org.
-
Uses of PropertyIdValue in org.wikidata.wdtk.datamodel.helpers
Modifier and TypeMethodDescriptionDatamodelConverter.copy
(PropertyIdValue object) Copies aPropertyIdValue
.static PropertyIdValue
Datamodel.makePropertyIdValue
(String id, String siteIri) Creates aPropertyIdValue
.static PropertyIdValue
Datamodel.makeWikidataPropertyIdValue
(String id) Creates aPropertyIdValue
.Modifier and TypeMethodDescriptionDatamodelConverter.copy
(PropertyIdValue object) Copies aPropertyIdValue
.static PropertyUpdateBuilder
PropertyUpdateBuilder.forBaseRevisionId
(PropertyIdValue propertyId, long revisionId) Creates new builder object for constructing update of property entity with given revision ID.static PropertyUpdateBuilder
PropertyUpdateBuilder.forEntityId
(PropertyIdValue propertyId) Creates new builder object for constructing update of property entity with given ID.static PropertyDocumentBuilder
PropertyDocumentBuilder.forPropertyIdAndDatatype
(PropertyIdValue propertyIdValue, String datatypeId) Deprecated.static PropertyDocumentBuilder
PropertyDocumentBuilder.forPropertyIdAndDatatype
(PropertyIdValue propertyIdValue, DatatypeIdValue datatype) Starts the construction of anPropertyDocument
with the given id.static PropertyDocumentBuilder
PropertyDocumentBuilder.forPropertyIdAndJsonDatatype
(PropertyIdValue propertyIdValue, String datatypeId) Starts the construction of anPropertyDocument
with the given id.static StatementBuilder
StatementBuilder.forSubjectAndProperty
(EntityIdValue subject, PropertyIdValue property) Starts the construction of aStatement
with the given subject.StatementBuilder.getQualifierList
(PropertyIdValue propertyIdValue) Returns the list ofSnak
objects for a given qualifier property.ReferenceBuilder.getSnakList
(PropertyIdValue propertyIdValue) Returns the list ofSnak
objects for a given property.static NoValueSnak
Datamodel.makeNoValueSnak
(PropertyIdValue propertyId) Creates aNoValueSnak
.static PropertyDocument
Datamodel.makePropertyDocument
(PropertyIdValue propertyId, List<MonolingualTextValue> labels, List<MonolingualTextValue> descriptions, List<MonolingualTextValue> aliases, List<StatementGroup> statementGroups, DatatypeIdValue datatypeId) Creates aPropertyDocument
with empty revision id.static PropertyDocument
Datamodel.makePropertyDocument
(PropertyIdValue propertyId, List<MonolingualTextValue> labels, List<MonolingualTextValue> descriptions, List<MonolingualTextValue> aliases, List<StatementGroup> statementGroups, DatatypeIdValue datatypeId, long revisionId) Creates aPropertyDocument
.static PropertyDocument
Datamodel.makePropertyDocument
(PropertyIdValue propertyId, DatatypeIdValue datatypeId) Creates an emptyPropertyDocument
.static PropertyUpdate
Datamodel.makePropertyUpdate
(PropertyIdValue entityId, long revisionId, TermUpdate labels, TermUpdate descriptions, Map<String, AliasUpdate> aliases, StatementUpdate statements) Creates newPropertyUpdate
.static SomeValueSnak
Datamodel.makeSomeValueSnak
(PropertyIdValue propertyId) Creates aSomeValueSnak
.static ValueSnak
Datamodel.makeValueSnak
(PropertyIdValue propertyId, Value value) Creates aValueSnak
.static String
ToString.toString
(PropertyIdValue o) Returns a human-readable string representation of the given object.ReferenceBuilder.withNoValue
(PropertyIdValue propertyIdValue) Adds aNoValueSnak
with the given property to the constructed reference.ReferenceBuilder.withPropertyValue
(PropertyIdValue propertyIdValue, Value value) Adds the given property and value to the constructed reference.StatementBuilder.withQualifierNoValue
(PropertyIdValue propertyIdValue) Adds aNoValueSnak
qualifier with the given property to the constructed statement.StatementBuilder.withQualifierSomeValue
(PropertyIdValue propertyIdValue) Adds aSomeValueSnak
qualifier with the given property to the constructed statement.StatementBuilder.withQualifierValue
(PropertyIdValue propertyIdValue, Value value) Adds a qualifier with the given property and value to the constructed statement.ReferenceBuilder.withSomeValue
(PropertyIdValue propertyIdValue) Adds aSomeValueSnak
with the given property to the constructed reference.ModifierConstructorDescriptionprotected
PropertyDocumentBuilder
(PropertyIdValue propertyIdValue, DatatypeIdValue datatype) Constructor when building the property document from scratch.protected
StatementBuilder
(EntityIdValue subject, PropertyIdValue property) Constructor. -
Uses of PropertyIdValue in org.wikidata.wdtk.datamodel.implementation
Modifier and TypeMethodDescriptionPropertyDocumentImpl.getEntityId()
PropertyUpdateImpl.getEntityId()
SnakGroupImpl.getProperty()
StatementGroupImpl.getProperty()
SnakImpl.getPropertyId()
DataObjectFactoryImpl.getPropertyIdValue
(String id, String siteIri) Modifier and TypeMethodDescriptionDataObjectFactoryImpl.getNoValueSnak
(PropertyIdValue propertyId) DataObjectFactoryImpl.getPropertyDocument
(PropertyIdValue propertyId, List<MonolingualTextValue> labels, List<MonolingualTextValue> descriptions, List<MonolingualTextValue> aliases, List<StatementGroup> statementGroups, DatatypeIdValue datatypeId, long revisionId) DataObjectFactoryImpl.getPropertyUpdate
(PropertyIdValue entityId, long revisionId, TermUpdate labels, TermUpdate descriptions, Map<String, AliasUpdate> aliases, StatementUpdate statements) DataObjectFactoryImpl.getSomeValueSnak
(PropertyIdValue propertyId) DataObjectFactoryImpl.getValueSnak
(PropertyIdValue propertyId, Value value) Creates aValueSnakImpl
.PropertyDocumentImpl.withEntityId
(PropertyIdValue newEntityId) ModifierConstructorDescriptionNoValueSnakImpl
(PropertyIdValue property) Constructor.PropertyDocumentImpl
(PropertyIdValue id, List<MonolingualTextValue> labels, List<MonolingualTextValue> descriptions, List<MonolingualTextValue> aliases, List<StatementGroup> statements, DatatypeIdValue datatype, long revisionId) Constructor for instances that are built manually, rather than from JSON.PropertyUpdateImpl
(PropertyIdValue entityId, long revisionId, TermUpdate labels, TermUpdate descriptions, Map<String, AliasUpdate> aliases, StatementUpdate statements) Initializes new property update.SnakImpl
(PropertyIdValue property) Constructor.SomeValueSnakImpl
(PropertyIdValue property) Constructor.ValueSnakImpl
(PropertyIdValue property, Value value) Constructor. -
Uses of PropertyIdValue in org.wikidata.wdtk.datamodel.interfaces
Modifier and TypeFieldDescriptionstatic final PropertyIdValue
PropertyIdValue.NULL
FixedPropertyIdValue
that refers to a non-existing property.Modifier and TypeMethodDescriptiondefault PropertyIdValue
StatementDocument.findStatementPropertyIdValue
(String propertyId) Returns the uniquePropertyIdValue
for the given property, or null if there are zero or many such values given in statements for this property.default PropertyIdValue
StatementDocument.findStatementPropertyIdValue
(PropertyIdValue propertyIdValue) Returns the uniquePropertyIdValue
for the given property, or null if there are zero or many such values given in statements for this property.PropertyDocument.getEntityId()
Return the ID of the item that the data refers to.PropertyUpdate.getEntityId()
SnakGroup.getProperty()
Get the property used by each snak in this group.StatementGroup.getProperty()
Get the property used in the main snak of theClaim
of each statement in this group.Snak.getPropertyId()
Get the id of the property that this snak refers to.DataObjectFactory.getPropertyIdValue
(String id, String siteIri) Creates aPropertyIdValue
.Modifier and TypeMethodDescriptionDocumentDataFilter.getPropertyFilter()
Returns the (possibly empty) set ofPropertyIdValue
objects that are used to filter statements, or null if no such filter is configured (default).Modifier and TypeMethodDescriptiondefault Statement
StatementDocument.findStatement
(PropertyIdValue propertyIdValue) Returns the uniqueStatement
for the given property, or null if there are zero or many statements for this property.default EntityIdValue
StatementDocument.findStatementEntityIdValue
(PropertyIdValue propertyIdValue) Returns the uniqueEntityIdValue
for the given property, or null if there are zero or many such values given in statements for this property.default GlobeCoordinatesValue
StatementDocument.findStatementGlobeCoordinatesValue
(PropertyIdValue propertyIdValue) Returns the uniqueGlobeCoordinatesValue
for the given property, or null if there are zero or many such values given in statements for this property.default StatementGroup
StatementDocument.findStatementGroup
(PropertyIdValue propertyIdValue) Returns theStatementGroup
for the given property, or null if there are no statements for this property.default ItemIdValue
StatementDocument.findStatementItemIdValue
(PropertyIdValue propertyIdValue) Returns the uniqueItemIdValue
for the given property, or null if there are zero or many such values given in statements for this property.default MonolingualTextValue
StatementDocument.findStatementMonolingualTextValue
(PropertyIdValue propertyIdValue) Returns the uniqueMonolingualTextValue
for the given property, or null if there are zero or many such values given in statements for this property.default PropertyIdValue
StatementDocument.findStatementPropertyIdValue
(PropertyIdValue propertyIdValue) Returns the uniquePropertyIdValue
for the given property, or null if there are zero or many such values given in statements for this property.default QuantityValue
StatementDocument.findStatementQuantityValue
(PropertyIdValue propertyIdValue) Returns the uniqueQuantityValue
for the given property, or null if there are zero or many such values given in statements for this property.default StringValue
StatementDocument.findStatementStringValue
(PropertyIdValue propertyIdValue) Returns the uniqueStringValue
for the given property, or null if there are zero or many such values given in statements for this property.default TimeValue
StatementDocument.findStatementTimeValue
(PropertyIdValue propertyIdValue) Returns the uniqueTimeValue
for the given property, or null if there are zero or many such values given in statements for this property.default Value
StatementDocument.findStatementValue
(PropertyIdValue propertyIdValue) Returns the uniqueValue
for the given property, or null if there are zero or many values given in statements for this property.DataObjectFactory.getNoValueSnak
(PropertyIdValue propertyId) Creates aNoValueSnak
.DataObjectFactory.getPropertyDocument
(PropertyIdValue propertyId, List<MonolingualTextValue> labels, List<MonolingualTextValue> descriptions, List<MonolingualTextValue> aliases, List<StatementGroup> statementGroups, DatatypeIdValue datatypeId, long revisionId) Creates aPropertyDocument
.DataObjectFactory.getPropertyUpdate
(PropertyIdValue entityId, long revisionId, TermUpdate labels, TermUpdate descriptions, Map<String, AliasUpdate> aliases, StatementUpdate statements) Creates newPropertyUpdate
.DataObjectFactory.getSomeValueSnak
(PropertyIdValue propertyId) Creates aSomeValueSnak
.DataObjectFactory.getValueSnak
(PropertyIdValue propertyId, Value value) Creates aValueSnak
.default boolean
StatementDocument.hasStatement
(PropertyIdValue propertyIdValue) Returns true if there is a statement for the given property.default boolean
StatementDocument.hasStatementValue
(PropertyIdValue propertyIdValue, Set<? extends Value> values) Returns true if there is a statement for the given property and one of the given values.default boolean
StatementDocument.hasStatementValue
(PropertyIdValue propertyIdValue, Value value) Returns true if there is a statement for the given property and value.boolean
DocumentDataFilter.includePropertyId
(PropertyIdValue propertyIdValue) Returns true if the given property is included (not filtered).PropertyDocument.withEntityId
(PropertyIdValue newEntityId) Returns a new version of this document with updated ID.Modifier and TypeMethodDescriptionvoid
DocumentDataFilter.setPropertyFilter
(Set<PropertyIdValue> propertyFilter) Sets the (possibly empty) set ofPropertyIdValue
objects that are used to filter statements. -
Uses of PropertyIdValue in org.wikidata.wdtk.dumpfiles
Modifier and TypeMethodDescriptionvoid
DumpProcessingController.setPropertyFilter
(Set<PropertyIdValue> propertyFilter) Sets a property filter. -
Uses of PropertyIdValue in org.wikidata.wdtk.examples
Modifier and TypeMethodDescriptionprotected static StatementGroup
EditOnlineDataExample.findStatementGroup
(PropertyIdValue pid, StatementDocument document) Finds theStatementGroup
for the given property in a document. -
Uses of PropertyIdValue in org.wikidata.wdtk.rdf
Modifier and TypeMethodDescriptionvoid
OwlDeclarationBuffer.addDatatypeProperty
(PropertyIdValue propertyIdValue) Adds the given property id value to the list of properties that should be declared as OWL datatype properties.void
OwlDeclarationBuffer.addObjectProperty
(PropertyIdValue propertyIdValue) Adds the given property id value to the list of properties that should be declared as OWL object properties.protected void
PropertyRegister.fetchPropertyInformation
(PropertyIdValue property) Fetches the information of the given property from the Web API.PropertyRegister.getPropertyType
(PropertyIdValue propertyIdValue) Returns the IRI of the primitive type of anPropertyIdValue
.static String
Vocabulary.getPropertyUri
(PropertyIdValue propertyIdValue, PropertyContext propertyContext) Get the URI for the given property in the given context.PropertyRegister.getPropertyUriPattern
(PropertyIdValue propertyIdValue) Returns the URI Pattern of aPropertyIdValue
that should be used to create URIs of external resources from statement values for the property.void
PropertyRegister.setPropertyType
(PropertyIdValue propertyIdValue, String datatypeIri) Sets datatypeIri an IRI of the primitive type of an Property forPropertyIdValue
.PropertyRegister.setPropertyTypeFromEntityIdValue
(PropertyIdValue propertyIdValue, EntityIdValue value) Returns the IRI of the primitive Type of an Property forEntityIdValue
objects.PropertyRegister.setPropertyTypeFromGlobeCoordinatesValue
(PropertyIdValue propertyIdValue, GlobeCoordinatesValue value) Returns the IRI of the primitive Type of an Property forGlobeCoordinatesValue
objects.PropertyRegister.setPropertyTypeFromMonolingualTextValue
(PropertyIdValue propertyIdValue, MonolingualTextValue value) Returns the IRI of the primitive Type of an Property forMonolingualTextValue
objects.PropertyRegister.setPropertyTypeFromQuantityValue
(PropertyIdValue propertyIdValue, QuantityValue value) Returns the IRI of the primitive Type of an Property forQuantityValue
objects.PropertyRegister.setPropertyTypeFromStringValue
(PropertyIdValue propertyIdValue, StringValue value) Returns the IRI of the primitive Type of an Property forStringValue
objects.PropertyRegister.setPropertyTypeFromTimeValue
(PropertyIdValue propertyIdValue, TimeValue value) Returns the IRI of the primitive Type of an Property forTimeValue
objects. -
Uses of PropertyIdValue in org.wikidata.wdtk.rdf.values
Modifier and TypeMethodDescriptionorg.eclipse.rdf4j.model.Value
AnyValueConverter.getRdfValue
(Value value, PropertyIdValue propertyIdValue, boolean simple) org.eclipse.rdf4j.model.Value
EntityIdValueConverter.getRdfValue
(EntityIdValue value, PropertyIdValue propertyIdValue, boolean simple) org.eclipse.rdf4j.model.Value
GlobeCoordinatesValueConverter.getRdfValue
(GlobeCoordinatesValue value, PropertyIdValue propertyIdValue, boolean simple) org.eclipse.rdf4j.model.Value
MonolingualTextValueConverter.getRdfValue
(MonolingualTextValue value, PropertyIdValue propertyIdValue, boolean simple) org.eclipse.rdf4j.model.Value
QuantityValueConverter.getRdfValue
(QuantityValue value, PropertyIdValue propertyIdValue, boolean simple) org.eclipse.rdf4j.model.Value
StringValueConverter.getRdfValue
(StringValue value, PropertyIdValue propertyIdValue, boolean simple) org.eclipse.rdf4j.model.Value
TimeValueConverter.getRdfValue
(TimeValue value, PropertyIdValue propertyIdValue, boolean simple) org.eclipse.rdf4j.model.Value
ValueConverter.getRdfValue
(V value, PropertyIdValue propertyIdValue, boolean simple) Returns an RDF value that should be used to represent the given Wikibase data value in RDF.protected void
AbstractValueConverter.logIncompatibleValueError
(PropertyIdValue propertyIdValue, String datatype, String valueType) Logs a message for a case where the value of a property does not fit to its declared datatype. -
Uses of PropertyIdValue in org.wikidata.wdtk.wikibaseapi
Modifier and TypeMethodDescription<T extends StatementDocument>
voidWikibaseDataEditor.nullEdit
(PropertyIdValue propertyId) Deprecated.UseWikibaseDataEditor.nullEdit(EntityIdValue)
instead.WikibaseDataEditor.updateStatements
(PropertyIdValue propertyIdValue, List<Statement> addStatements, List<Statement> deleteStatements, String summary, List<String> tags) Deprecated.
PropertyDocumentBuilder.forPropertyIdAndJsonDatatype(PropertyIdValue, String)