Class QSValuePrinter
- java.lang.Object
-
- org.openrefine.wikibase.exporters.QSValuePrinter
-
- All Implemented Interfaces:
org.wikidata.wdtk.datamodel.interfaces.ValueVisitor<String>
public class QSValuePrinter extends Object implements org.wikidata.wdtk.datamodel.interfaces.ValueVisitor<String>
Prints a Wikibase value as a string as required by QuickStatements. Format documentation: https://www.wikidata.org/wiki/Help:QuickStatements Any new entity id will be assumed to be the last one created, represented with "LAST". It is fine to do this assumption because we are working on edit batches previously scheduled byQuickStatementsUpdateScheduler
.- Author:
- Antonin Delpeuch
-
-
Constructor Summary
Constructors Constructor Description QSValuePrinter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
visit(org.wikidata.wdtk.datamodel.interfaces.EntityIdValue value)
String
visit(org.wikidata.wdtk.datamodel.interfaces.GlobeCoordinatesValue value)
String
visit(org.wikidata.wdtk.datamodel.interfaces.MonolingualTextValue value)
String
visit(org.wikidata.wdtk.datamodel.interfaces.QuantityValue value)
String
visit(org.wikidata.wdtk.datamodel.interfaces.StringValue value)
String
visit(org.wikidata.wdtk.datamodel.interfaces.TimeValue value)
String
visit(org.wikidata.wdtk.datamodel.interfaces.UnsupportedValue value)
-
-
-
Method Detail
-
visit
public String visit(org.wikidata.wdtk.datamodel.interfaces.EntityIdValue value)
- Specified by:
visit
in interfaceorg.wikidata.wdtk.datamodel.interfaces.ValueVisitor<String>
-
visit
public String visit(org.wikidata.wdtk.datamodel.interfaces.GlobeCoordinatesValue value)
- Specified by:
visit
in interfaceorg.wikidata.wdtk.datamodel.interfaces.ValueVisitor<String>
-
visit
public String visit(org.wikidata.wdtk.datamodel.interfaces.MonolingualTextValue value)
- Specified by:
visit
in interfaceorg.wikidata.wdtk.datamodel.interfaces.ValueVisitor<String>
-
visit
public String visit(org.wikidata.wdtk.datamodel.interfaces.QuantityValue value)
- Specified by:
visit
in interfaceorg.wikidata.wdtk.datamodel.interfaces.ValueVisitor<String>
-
visit
public String visit(org.wikidata.wdtk.datamodel.interfaces.StringValue value)
- Specified by:
visit
in interfaceorg.wikidata.wdtk.datamodel.interfaces.ValueVisitor<String>
-
visit
public String visit(org.wikidata.wdtk.datamodel.interfaces.TimeValue value)
- Specified by:
visit
in interfaceorg.wikidata.wdtk.datamodel.interfaces.ValueVisitor<String>
-
-