org.wikidata.wdtk.datamodel.interfaces.ValueVisitor<org.openrdf.model.Value>, ValueConverter<org.wikidata.wdtk.datamodel.interfaces.Value>public class AnyValueConverter extends java.lang.Object implements ValueConverter<org.wikidata.wdtk.datamodel.interfaces.Value>, org.wikidata.wdtk.datamodel.interfaces.ValueVisitor<org.openrdf.model.Value>
| Constructor | Description |
|---|---|
AnyValueConverter(RdfWriter rdfWriter,
OwlDeclarationBuffer rdfConversionBuffer,
PropertyRegister propertyRegister) |
| Modifier and Type | Method | Description |
|---|---|---|
org.openrdf.model.Value |
getRdfValue(org.wikidata.wdtk.datamodel.interfaces.Value value,
org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue propertyIdValue,
boolean simple) |
Returns an RDF value that should be used to represent the given Wikibase
data value in RDF.
|
org.openrdf.model.Value |
visit(org.wikidata.wdtk.datamodel.interfaces.DatatypeIdValue value) |
|
org.openrdf.model.Value |
visit(org.wikidata.wdtk.datamodel.interfaces.EntityIdValue value) |
|
org.openrdf.model.Value |
visit(org.wikidata.wdtk.datamodel.interfaces.GlobeCoordinatesValue value) |
|
org.openrdf.model.Value |
visit(org.wikidata.wdtk.datamodel.interfaces.MonolingualTextValue value) |
|
org.openrdf.model.Value |
visit(org.wikidata.wdtk.datamodel.interfaces.QuantityValue value) |
|
org.openrdf.model.Value |
visit(org.wikidata.wdtk.datamodel.interfaces.StringValue value) |
|
org.openrdf.model.Value |
visit(org.wikidata.wdtk.datamodel.interfaces.TimeValue value) |
|
void |
writeAuxiliaryTriples() |
Writes auxiliary triples that might be needed to encode a Wikibase value
in RDF.
|
public AnyValueConverter(RdfWriter rdfWriter, OwlDeclarationBuffer rdfConversionBuffer, PropertyRegister propertyRegister)
public org.openrdf.model.Value getRdfValue(org.wikidata.wdtk.datamodel.interfaces.Value value,
org.wikidata.wdtk.datamodel.interfaces.PropertyIdValue propertyIdValue,
boolean simple)
ValueConvertergetRdfValue in interface ValueConverter<org.wikidata.wdtk.datamodel.interfaces.Value>value - the value to convertpropertyIdValue - the property for which this value was used; this provides
important context information for the conversionsimple - if true, use a simplified conversion to RDF and do not convert
values that are inherently complexpublic org.openrdf.model.Value visit(org.wikidata.wdtk.datamodel.interfaces.DatatypeIdValue value)
visit in interface org.wikidata.wdtk.datamodel.interfaces.ValueVisitor<org.openrdf.model.Value>public org.openrdf.model.Value visit(org.wikidata.wdtk.datamodel.interfaces.EntityIdValue value)
visit in interface org.wikidata.wdtk.datamodel.interfaces.ValueVisitor<org.openrdf.model.Value>public org.openrdf.model.Value visit(org.wikidata.wdtk.datamodel.interfaces.GlobeCoordinatesValue value)
visit in interface org.wikidata.wdtk.datamodel.interfaces.ValueVisitor<org.openrdf.model.Value>public org.openrdf.model.Value visit(org.wikidata.wdtk.datamodel.interfaces.MonolingualTextValue value)
visit in interface org.wikidata.wdtk.datamodel.interfaces.ValueVisitor<org.openrdf.model.Value>public org.openrdf.model.Value visit(org.wikidata.wdtk.datamodel.interfaces.QuantityValue value)
visit in interface org.wikidata.wdtk.datamodel.interfaces.ValueVisitor<org.openrdf.model.Value>public org.openrdf.model.Value visit(org.wikidata.wdtk.datamodel.interfaces.StringValue value)
visit in interface org.wikidata.wdtk.datamodel.interfaces.ValueVisitor<org.openrdf.model.Value>public org.openrdf.model.Value visit(org.wikidata.wdtk.datamodel.interfaces.TimeValue value)
visit in interface org.wikidata.wdtk.datamodel.interfaces.ValueVisitor<org.openrdf.model.Value>public void writeAuxiliaryTriples()
throws org.openrdf.rio.RDFHandlerException
ValueConverterwriteAuxiliaryTriples in interface ValueConverter<org.wikidata.wdtk.datamodel.interfaces.Value>org.openrdf.rio.RDFHandlerException - if there is a problem writing the triplesCopyright © 2014–2017 Wikidata Toolkit Developers. Generated from source code published under the Apache License 2.0. For more information, see the Wikidata Toolkit homepage