Published November 22, 2022
| Version v0.1.3
Software
Open
acdh-oeaw/rdf-fastapi-utils: callback function
Description
adds the possibility to add a callback function that gets the value of a field and should return a value
citation: str = Field(..., rdfconfig=FieldConfigurationRDF(path="person", callback_function=get_source_mapping))
ef get_source_mapping(source):
for key, value in source_mapping.items():
if key in source:
return value
return None
Files
acdh-oeaw/rdf-fastapi-utils-v0.1.3.zip
Files
(12.3 kB)
| Name | Size | Download all |
|---|---|---|
|
md5:76f5f6fd94e59c921b5e3fc0637c092a
|
12.3 kB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/acdh-oeaw/rdf-fastapi-utils/tree/v0.1.3 (URL)