1. Utilities for semantic comparison of JSON-LD-schemas¶
-
class
compareEntities.
EntityCoverage
(schema_a, context_a, schema_b, context_b)[source]¶ A class that compute the overlap between two JSON schemas semantic values taken from context files. This operation is not commutative. Thus, to find out if the schema/context pairs are equivalent, we need to run both semDiff(s_a, c_a, s_b, c_b) and semDiff(s_b, c_b, s_a, c_a)
Parameters: - schema_a – the content of the first schema
- context_a – the context content bound to the first schema
- schema_b – the content of the second schema
- context_b – the context content bound to the second schema
-
class
compareNetwork.
NetworkCoverage
(networks_array)[source]¶ This class compute the coverage of entities (schemas) among two networks (set of schemas) by comparing the semantic base type of each schema. :param networks_array: an array containing the two networks to compare