Metadata-Version: 2.4
Name: pyrcelib
Version: 2026.0.6
Summary: Collection of Linked Data modules used by the Cultural Heritage Agency of the Netherlands.
Author-email: Jonathan Blok <j.s.blok@cultureelerfgoed.nl>
Maintainer-email: thesauri@cultureelerfgoed.nl
License-Expression: GPL-3.0
Project-URL: Homepage, https://linkeddata.cultureelerfgoed.nl/
Project-URL: Repository, https://www.github.com/cultureelerfgoed/pyrcelib
Keywords: triply,CHT,RDF,Linked Data
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: rdflib>=7.6.0
Requires-Dist: pyparsing>=3.3.2
Requires-Dist: requests==2.33.1
Requires-Dist: six>=1.17.0
Requires-Dist: tqdm>=4.67.3
Requires-Dist: typing_extensions>=4.15.0
Requires-Dist: tzdata>=2026.1
Requires-Dist: urllib3>=2.6.3
Provides-Extra: test
Requires-Dist: pytest; extra == "test"
Dynamic: license-file

# pyrcelib
Library of Python modules related to Linked Data used by the Cultural Heritage Agency of The Netherlands (RCE). The ```uritools``` module contains a number of methods relating to URI definition and API access.  

## get_term_uri_from_cht(term_label: str)

returns a URI for a provided term, if found.

## get_memorix_uri_from_reference(ref: str)

returns relevant memorix URI based on reproduction reference from Adlib.

## get_object_uri(base_uri: str, obj_id: str, obj_type=SDO.Thing)

return URI for a given base URI, object ID, and object type according to RCE URI strategy. 

## get_organization(org_uri: str, name: str, same_as_uri: str, c_name: str, c_email: str, isil: str, altname: str)

returns a graph containing an organization description according to the AP-DCAT-NL.

## get_logstring_from_shacl(targetgraph: Graph, validationgraph: Graph, subject_node: Node)

returns a string for nice logging of SHACL validation.
