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 EvaMap

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 EvaMap.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-2.0.6.tar.gz (17.4 kB view details)

Uploaded Source

Built Distribution

EvaMap-2.0.6-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: EvaMap-2.0.6.tar.gz
  • Upload date:
  • Size: 17.4 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-2.0.6.tar.gz
Algorithm Hash digest
SHA256 630898bec14c76e62275f4453e445f1511eb8ce7339505fea4fd5b77e221d663
MD5 5e7a705451c31b9639ae8accc4b5f5ed
BLAKE2b-256 1686b6ec3e730028d3efa8829d8c72ba12212cde2dfb82ef58be6f88c38163bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: EvaMap-2.0.6-py3-none-any.whl
  • Upload date:
  • Size: 28.7 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-2.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 617527a679922e6d6ad75610b98a3daa09c9921755d1e3c50709bf420af8c52a
MD5 0b09beb695112fafb0563539fee45105
BLAKE2b-256 c5ffffc028644a78e286e9c21f528d333d6899a2c524b76924d4238976889580

See more details on using hashes here.

Supported by

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