curies icon indicating copy to clipboard operation
curies copied to clipboard

🐸 Idiomatic conversion between URIs and compact URIs (CURIEs) in Python

Results 10 curies issues
Sort by recently updated
recently updated
newest added

References #103. This PR adds a ``w3c_validation`` flag to instantiation of a converter and to `Converter.expand()` that turns on W3C CURIE specification validation. For now, it's not a "true" implementation...

There are some cases of bioregistry "CURIEs" allowing square brackets in the local id. This is questionable if we follow the (IMO frustratingly opaque) W3C specs. Here are some examples...

Add tests to check if federated queries between the curies mapping service and popular triplestores properly work. Triplestores need to be deployed locally before running the tests with docker compose,...

https://github.com/monarch-initiative/monarch-gene-mapping/pull/34#discussion_r1416026076

```python r1 = Record( prefix="geo", prefix_synonyms=["GEO"], uri_prefix="https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=", pattern="^G(PL|SM|SE|DS)\\d+$", ) r2 = Record( prefix="geogeo", uri_prefix="http://purl.obolibrary.org/obo/GEO_", pattern="^\\d{9}$" ) c1 = Converter([r1, r2]) remapping = {"GEO": "ncbi.geo", "geogeo": "GEO"} c2 = remap_curie_prefixes(c1, remapping)...

bug

References #63 This pull request does the following: - [x] Make strictness configurable for pandas expansion, compression, and standardization functions - [ ] When not strict, report a summary of...

It might be worth having a way to hash an EPM so they can be quickly indexed / compared for equality ``` def get_hash(self) -> str: import hashlib from operator...

I've excerpted this from #49 - this code tests public SPARQL interfaces are able to use the Bioregistry. I'm not sure if this belongs in this package, though ```python """Tests...

Add the following else clause: ```python elif subj_query is not None and obj_query is not None: if obj_query in self._expand_pair_all(subj_query): yield subj_query, pred_query, obj_query ```