Skip to content

Conversation

@larsgsvensson
Copy link

Main addition

This PR introduces a new statistic LinkSets.py that creates creates void:LinkSet entries when running --void.
The dataset names and a mapping from property URIs to property names (in order to create the link set name) are in the /config directory

Further changes

/stats/ClassesDefined.py

Removed generation of void:classes since that property is not about the number of defined classes but about number of classes used in the dataset. The generation of void:classes is moved to /stats/UsedClasses.py

/stats/UsedClasses.py

Added generation of void:classes. That code was moved here from /stats/ClassesDefined.py

Adapted Documentation so that when someone wants to use the LinkSets etc they don't clone the original repository but this one...
removed generation of void:class since that property is not about defined classes but about used classes. Moved that to /stats/UsedClasses.py

/stats/UsedClasses.py
Added generation of void:class (moved here from /stats/ClassesDefined.py

/stats/LinkSets.py
Refactored so that the dictionaries "link-properties" and "targets" are now externalised (in /config)

/util/namespace.py
Changed order of separators to # / : in order to get correct namespace for data.bnf.fr-URIs (à la http://data.bnf.fr/ark:/12148/cb16577733w where the namespace is http://data.bnf.fr/ark:/12148/)

/util/rdf_namespaces.py
Added namespaces skos: and gndo:
rdffile.py now sets proper rdf_format after conversion from .ttl to .nt (thus avoiding incorrect error message)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant