A python library that can assess the quality of an RDF mapping.
Installation in a virtualenv is recommended.
Assuming you already have python 3 and pip installed
pip install EvaMapFirst, instantiation of an EvaMap object takes three parameters:
- rdf_ontology: The ontology used in the yarrrml_mapping in RDF (turtle, xml or n3)
- yarrrml_mapping: The RDF mapping of the json_data in YARRRML
- json_data: The dataset in JSON format
from EvaMap.EvaMap import EvaMap
evamap = EvaMap(rdf_ontology, yarrrml_mapping, json_data)You can assess the quality of the yarrrml_mapping by using the evaluate_mapping method:
evamap.evaluate_mapping()After evaluation, you can retrieve the total score of the yarrrml_mapping with get_total_score() method:
evamap.get_total_score() # e.g., 0.6805555555555557or, a list of Dict representing score for each dimensions, metrics and feedbacks with get_complet_result() method:
evamap.get_complet_result()