custom_eval
This example shows how a custom evaluation function can be added to handle certain SPARQL Algebra elements.
A custom function is added that adds rdfs:subClassOf “inference” when
asking for rdf:type triples.
Here the custom eval function is added manually, normally you would use setuptools and entry_points to do it: i.e. in your setup.py::
Functions:
-
customEval–Rewrite triple patterns to get super-classes
Attributes:
-
EXAMPLES_DIR– -
g– -
inferred_sub_class–
customEval
Rewrite triple patterns to get super-classes