Package org.wikidata.wdtk.rdf.values
Class EntityIdValueConverter
java.lang.Object
org.wikidata.wdtk.rdf.values.AbstractValueConverter<EntityIdValue>
org.wikidata.wdtk.rdf.values.EntityIdValueConverter
- All Implemented Interfaces:
ValueConverter<EntityIdValue>
-
Constructor Summary
ConstructorsConstructorDescriptionEntityIdValueConverter(RdfWriter rdfWriter, PropertyRegister propertyRegister, OwlDeclarationBuffer rdfConversionBuffer) -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.rdf4j.model.ValuegetRdfValue(EntityIdValue value, PropertyIdValue propertyIdValue, boolean simple) Returns an RDF value that should be used to represent the given Wikibase data value in RDF.Methods inherited from class org.wikidata.wdtk.rdf.values.AbstractValueConverter
logIncompatibleValueError, writeAuxiliaryTriples
-
Constructor Details
-
EntityIdValueConverter
public EntityIdValueConverter(RdfWriter rdfWriter, PropertyRegister propertyRegister, OwlDeclarationBuffer rdfConversionBuffer)
-
-
Method Details
-
getRdfValue
public org.eclipse.rdf4j.model.Value getRdfValue(EntityIdValue value, PropertyIdValue propertyIdValue, boolean simple) Description copied from interface:ValueConverterReturns an RDF value that should be used to represent the given Wikibase data value in RDF.- Parameters:
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 complex- Returns:
- the RDF value to use for representing the data value in RDF
-