Skip to main content

A python library that can assess the quality of an RDF mapping

Project description

LibraryEvaMap

A python library that can assess the quality of an RDF mapping.

Installation

Installation in a virtualenv is recommended.

Assuming you already have python 3 and pip installed

pip install pycali

Initialize EvaMap

First, instantiation of an EvaMap object takes three parameters:

  1. rdf_ontology: The ontology used in the yarrrml_mapping in RDF (turtle, xml or n3)
  2. yarrrml_mapping: The RDF mapping of the json_data in YARRRML
  3. json_data: The dataset in JSON format
from pyevamap.EvaMap import EvaMap

evamap = EvaMap(rdf_ontology, yarrrml_mapping, json_data)

Assess the mapping

You can assess the quality of the yarrrml_mapping by using the evaluate_mapping method:

evamap.evaluate_mapping()

Retrieve results

After evaluation, you can retrieve the total score of the yarrrml_mapping with get_total_score() method:

evamap.get_total_score() # e.g., 0.6805555555555557

or, a list of Dict representing score for each dimensions, metrics and feedbacks with get_complet_result() method:

evamap.get_complet_result()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

EvaMap-1.0.0.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

EvaMap-1.0.0-py3-none-any.whl (27.0 kB view details)

Uploaded Python 3

File details

Details for the file EvaMap-1.0.0.tar.gz.

File metadata

  • Download URL: EvaMap-1.0.0.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2

File hashes

Hashes for EvaMap-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c2659ee77f4e4b5b76a889f7d276a9d1c2323ceb93eb3129a14c5522a9fbc3ce
MD5 46128dc3fea28b9288b71cff4254af26
BLAKE2b-256 46ac43350f581d83ee7f427110b7148481cc082bc6d28ab5ab9cabfa842bc9ac

See more details on using hashes here.

File details

Details for the file EvaMap-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: EvaMap-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 27.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2

File hashes

Hashes for EvaMap-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bcb3dbb1aef0df2e9a09f9f287aca57e8b328b7281deb557e8ad088f2ae64196
MD5 8406e3e44b027d35b38b37bdb848f98c
BLAKE2b-256 3f8811d7aa42b831e6a20d4bf8b7dc8d0c061cc53bbc5128253604d0b87dff79

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page