{% import "macros.html" as mc %}

Added concept change notes

The table below lists the added concept skos:changeNote values

{% set select_query = "prefix owl: prefix rdf: prefix rdfs: prefix xsd: prefix vb: prefix eurovoc: prefix euvoc: prefix label: prefix status: prefix align: prefix skos: prefix skosxl: prefix dct: prefix dc: prefix prov: prefix lemon: prefix lexinfo: prefix lexvo: prefix oldevo: prefix thes: PREFIX dsv: PREFIX sd: PREFIX sh: PREFIX xhv: SELECT DISTINCT ?instance (str(?prefLabel) as ?instanceLabel) (?value AS ?addedValue) WHERE { GRAPH ?versionHistoryGraph { VALUES ( ?versionHistoryGraph ?oldVersion ?newVersion ?class ?property ?language) { ( undef undef undef skos:Concept skos:changeNote 'en' ) } ?versionset dsv:currentVersionRecord/xhv:prev/dc:identifier ?previousVersion . ?versionset dsv:currentVersionRecord/dc:identifier ?latestVersion . BIND(coalesce(?oldVersion, ?previousVersion) AS ?oldVersionSelected) BIND(coalesce(?newVersion, ?latestVersion) AS ?newVersionSelected) ?delta a sh:SchemeDelta ; sh:deltaFrom/dc:identifier ?oldVersionSelected ; sh:deltaTo/dc:identifier ?newVersionSelected ; sh:deltaFrom/sh:usingNamedGraph/sd:name ?oldVersionGraph ; sh:deltaTo/sh:usingNamedGraph/sd:name ?newVersionGraph ; dct:hasPart ?insertions ; dct:hasPart ?deletions . ?deletions a sh:SchemeDeltaDeletions ; sh:usingNamedGraph/sd:name ?deletionsGraph . ?insertions a sh:SchemeDeltaInsertions ; sh:usingNamedGraph/sd:name ?insertionsGraph . } GRAPH ?insertionsGraph { [] ?property ?value . } FILTER NOT EXISTS { GRAPH ?deletionsGraph { [] ?property ?value . } } GRAPH ?newVersionGraph { ?instance a ?class . ?instance ?property ?value . optional { ?instance skos:prefLabel ?prefLabel . FILTER (lang(?prefLabel) = 'en') } } } ORDER BY ?instance ?value" %} {% set content, error = from_endpoint(conf.default_endpoint).with_query(select_query).fetch_tabular() %} {% call mc.render_fetch_results(content, error) %} {# TODO: need a function that adds a relative count column, so that we can see the percentage of classes #} {# {{ content["percentage"] = content["instances"] / content["instances"].sum() }}#} {{ mc.pandas_table(content, "Added change notes") }} {% endcall %} {# TODO: class instiatiation overlaps and # shared instances #} {# TODO: need for an agregation function over selected columns in a dataframe #}