Search in sources :

Example 1 with FullyPropertySerializingValueSnak

use of org.openrefine.wikidata.schema.entityvalues.FullyPropertySerializingValueSnak in project OpenRefine by OpenRefine.

the class WbSnakExpr method evaluate.

@Override
public Snak evaluate(ExpressionContext ctxt) throws SkipSchemaExpressionException {
    PropertyIdValue propertyId = getProp().evaluate(ctxt);
    Value evaluatedValue = value.evaluate(ctxt);
    return new FullyPropertySerializingValueSnak(propertyId, evaluatedValue);
}
Also used : PropertyIdValue(org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue) FullyPropertySerializingValueSnak(org.openrefine.wikidata.schema.entityvalues.FullyPropertySerializingValueSnak) PropertyIdValue(org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue) Value(org.wikidata.wdtk.datamodel.interfaces.Value)

Aggregations

FullyPropertySerializingValueSnak (org.openrefine.wikidata.schema.entityvalues.FullyPropertySerializingValueSnak)1 PropertyIdValue (org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue)1 Value (org.wikidata.wdtk.datamodel.interfaces.Value)1