Class FullyPropertySerializingValueSnak
java.lang.Object
org.wikidata.wdtk.datamodel.implementation.SnakImpl
org.wikidata.wdtk.datamodel.implementation.ValueSnakImpl
org.openrefine.wikidata.schema.entityvalues.FullyPropertySerializingValueSnak
- All Implemented Interfaces:
org.wikidata.wdtk.datamodel.interfaces.Snak,org.wikidata.wdtk.datamodel.interfaces.ValueSnak
public class FullyPropertySerializingValueSnak
extends org.wikidata.wdtk.datamodel.implementation.ValueSnakImpl
A tweaked version of
SnakImpl that serializes
the full property (not just its PID), so that we can also
get the label for that property and display it in the UI
without having to query the remote server.- Author:
- Antonin Delpeuch
-
Field Summary
Fields inherited from class org.wikidata.wdtk.datamodel.implementation.SnakImpl
JSON_SNAK_TYPE_NOVALUE, JSON_SNAK_TYPE_SOMEVALUE, JSON_SNAK_TYPE_VALUE -
Constructor Summary
ConstructorsConstructorDescriptionFullyPropertySerializingValueSnak(org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue property, org.wikidata.wdtk.datamodel.interfaces.Value value) -
Method Summary
Modifier and TypeMethodDescriptionorg.wikidata.wdtk.datamodel.interfaces.PropertyIdValueMethods inherited from class org.wikidata.wdtk.datamodel.implementation.ValueSnakImpl
accept, equals, getDatatype, getDatavalue, getJsonPropertyTypeForValueType, getSnakType, getValue, hashCode, toStringMethods inherited from class org.wikidata.wdtk.datamodel.implementation.SnakImpl
getProperty, getPropertyIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.wikidata.wdtk.datamodel.interfaces.Snak
getPropertyId
-
Constructor Details
-
FullyPropertySerializingValueSnak
public FullyPropertySerializingValueSnak(org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue property, org.wikidata.wdtk.datamodel.interfaces.Value value)
-
-
Method Details
-
getFullPropertyId
public org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue getFullPropertyId()
-