Convenience tool for creating FnO function & parameter descriptions from Python functions.
Manually describing functions can be time-consuming and error-prone.
The fno-descriptor-python enables you to quickly define a function signature
in Python,
and generates its corresponding FnO descriptions by leveraging Python
type-hinting.
rdflibpyshacl
-
fno:Parameter -
fno:ParameterMapping -
fno:Output -
fno:ReturnMapping -
fno:Function -
fno:Mapping -
fno:MethodMapping - Add
func.__doc__asdoap:description - SHACL validation of generated FnO descriptions 🚧 WIP
- currently,
ListNodeShapeis commented out inshapes/all.ttl
- currently,
- Use default type map
A usage example is given in main.py.
You can run the example as follows:
python src/main.py