Uses of Interface
org.wikidata.wdtk.datamodel.interfaces.TimeValue
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.
Serializer for RDF
Package for code related to the conversion of data values to RDF in various ways.
-
Uses of TimeValue in org.wikidata.wdtk.datamodel.helpers
Modifier and TypeMethodDescriptionCopies aTimeValue
.static TimeValue
Datamodel.makeTimeValue
(long year, byte month, byte day, byte hour, byte minute, byte second, byte precision, int beforeTolerance, int afterTolerance, int timezoneOffset, String calendarModel) Creates aTimeValue
.static TimeValue
Datamodel.makeTimeValue
(long year, byte month, byte day, byte hour, byte minute, byte second, int timezoneOffset, String calendarModel) Creates aTimeValue
for a given date and time.static TimeValue
Datamodel.makeTimeValue
(long year, byte month, byte day, String calendarModel) Creates aTimeValue
for a given date.Modifier and TypeMethodDescriptionCopies aTimeValue
.static boolean
Equality.equalsTimeValue
(TimeValue o1, Object o2) Returnstrue
if the parameters are twoTimeValue
objects with exactly the same data.static String
DataFormatter.formatTimeISO8601
(TimeValue value) Returns a representation of the date from the value attributes as ISO 8601 encoding.static int
Returns a hash code for the given object.static String
Returns a human-readable string representation of the given object. -
Uses of TimeValue in org.wikidata.wdtk.datamodel.implementation
Modifier and TypeMethodDescriptionDataObjectFactoryImpl.getTimeValue
(long year, byte month, byte day, byte hour, byte minute, byte second, byte precision, int beforeTolerance, int afterTolerance, int timezoneOffset, String calendarModel) TimeValueImpl.toGregorian()
-
Uses of TimeValue in org.wikidata.wdtk.datamodel.interfaces
Modifier and TypeMethodDescriptiondefault TimeValue
StatementDocument.findStatementTimeValue
(String propertyId) Returns the uniqueTimeValue
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.DataObjectFactory.getTimeValue
(long year, byte month, byte day, byte hour, byte minute, byte second, byte precision, int beforeTolerance, int afterTolerance, int timezoneOffset, String calendarModel) Creates aTimeValue
.TimeValue.toGregorian()
Convert the value to the Gregorian calendar, if possible. -
Uses of TimeValue in org.wikidata.wdtk.rdf
Modifier and TypeMethodDescriptionstatic String
Vocabulary.getTimeValueUri
(TimeValue value) PropertyRegister.setPropertyTypeFromTimeValue
(PropertyIdValue propertyIdValue, TimeValue value) Returns the IRI of the primitive Type of an Property forTimeValue
objects. -
Uses of TimeValue in org.wikidata.wdtk.rdf.values
Modifier and TypeMethodDescriptionorg.eclipse.rdf4j.model.Value
TimeValueConverter.getRdfValue
(TimeValue value, PropertyIdValue propertyIdValue, boolean simple) org.eclipse.rdf4j.model.Value
void
TimeValueConverter.writeValue
(TimeValue value, org.eclipse.rdf4j.model.Resource resource) Write the auxiliary RDF data for encoding the given value.