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.
rdflib
pyshacl
-
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,
ListNodeShape
is 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