-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* develop: Add orcid for BG Update docs. Add an example for ULAN. Remove sudo key. Prepare for release. Add local copies of conceptschemes (#100) Update README Fix RTD config Reconfigure docs. Fix warning Updat dependencies and drop python 3.8 support
- Loading branch information
Showing
16 changed files
with
240 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# .readthedocs.yaml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Set the version of Python and other tools you might need | ||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.11" | ||
|
||
# Build documentation in the docs/ directory with Sphinx | ||
sphinx: | ||
configuration: docs/source/conf.py | ||
|
||
# We recommend specifying your dependencies to enable reproducible builds: | ||
# https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html | ||
python: | ||
install: | ||
- requirements: requirements-dev.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,30 @@ | ||
skosprovider_getty | ||
================== | ||
|
||
.. image:: https://img.shields.io/pypi/v/skosprovider_getty.svg | ||
:target: https://pypi.python.org/pypi/skosprovider_getty | ||
.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.7003715.svg | ||
:target: https://doi.org/10.5281/zenodo.7003715 | ||
.. image:: https://app.travis-ci.com/OnroerendErfgoed/skosprovider_getty.svg?branch=develop | ||
:target: https://app.travis-ci.com/OnroerendErfgoed/skosprovider_getty | ||
.. image:: https://coveralls.io/repos/github/OnroerendErfgoed/skosprovider_getty/badge.svg?branch=develop | ||
:target: https://coveralls.io/github/OnroerendErfgoed/skosprovider_getty?branch=develop | ||
|
||
---- | ||
|
||
.. image:: https://readthedocs.org/projects/skosprovider_getty/badge/?version=latest | ||
:target: http://skosprovider-getty.readthedocs.io/en/latest/?badge=latest | ||
:alt: Documentation Status | ||
.. image:: https://joss.theoj.org/papers/10.21105/joss.05040/status.svg | ||
:target: https://doi.org/10.21105/joss.05040 | ||
|
||
`Skosprovider <http://skosprovider.readthedocs.org>`_ implementation of the | ||
`Getty Vocabularies <http://vocab.getty.edu>`_. | ||
`Getty Vocabularies <http://vocab.getty.edu>`_, can be used in conjunction with the | ||
`Atramhasis SKOS editor <https://github.com/OnroerendErfgoed/atramhasis>`_ to allow | ||
linking your own vocabularies to the Getty thesauri and importing from them. | ||
|
||
Supported Getty thesauri: | ||
|
||
* `Art & Architecture Thesaurus (AAT) <http://vocab.getty.edu/aat>`_ | ||
* `The Getty Thesaurus of Geographic Names (TGN) <http://vocab.getty.edu/tgn>`_ | ||
* `Union List of Artist Names (ULAN) <http://vocab.getty.edu/ulan>`_ | ||
|
||
.. image:: https://travis-ci.org/OnroerendErfgoed/skosprovider_getty.png?branch=master | ||
:target: https://travis-ci.org/OnroerendErfgoed/skosprovider_getty | ||
.. image:: https://coveralls.io/repos/OnroerendErfgoed/skosprovider_getty/badge.png?branch=master | ||
:target: https://coveralls.io/r/OnroerendErfgoed/skosprovider_getty | ||
|
||
.. image:: https://readthedocs.org/projects/skosprovider-getty/badge/?version=latest | ||
:target: https://readthedocs.org/projects/skosprovider-getty/?badge=latest | ||
.. image:: https://badge.fury.io/py/skosprovider_getty.png | ||
:target: http://badge.fury.io/py/skosprovider_getty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/python | ||
''' | ||
This script demonstrates using the ULANProvider to get the concept of | ||
J.R.R. Tolkien. | ||
''' | ||
|
||
from skosprovider_getty.providers import ULANProvider | ||
|
||
ulan = ULANProvider(metadata={'id': 'ULAN'}) | ||
|
||
tolkien = ulan.get_by_id(500112201) | ||
|
||
langs = ['en', 'nl', 'und'] | ||
|
||
print('Label per language') | ||
print('------------------') | ||
for lang in langs: | ||
label = tolkien.label(lang) | ||
print(lang + ' --> ' + label.language + ': ' + label.label + ' [' + label.type + ']') | ||
|
||
print('Labels') | ||
print('------') | ||
for lang in tolkien.labels: | ||
print(lang.language + ': ' + lang.label + ' [' + lang.type + ']') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
requests==2.26.0 | ||
requests==2.31.0 | ||
skosprovider==1.2.0 | ||
rdflib==6.2.0 | ||
rdflib==6.3.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
|
||
setup( | ||
name='skosprovider_getty', | ||
version='1.1.0', | ||
version='1.2.0', | ||
description='Skosprovider implementation of the Getty Vocabularies', | ||
long_description=README + '\n\n' + CHANGES, | ||
long_description_content_type='text/x-rst', | ||
|
@@ -32,9 +32,9 @@ | |
'Natural Language :: English', | ||
'License :: OSI Approved :: MIT License', | ||
'Programming Language :: Python', | ||
'Programming Language :: Python :: 3.8', | ||
'Programming Language :: Python :: 3.9', | ||
'Programming Language :: Python :: 3.10', | ||
'Programming Language :: Python :: 3.11', | ||
], | ||
author='Flanders Heritage Agency', | ||
author_email='[email protected]', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.