https://github.com/clariah/iribaker
Safely convert IRI-like string to IRI.
Science Score: 23.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
✓Committers with academic emails
1 of 4 committers (25.0%) from academic institutions -
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (6.2%) to scientific vocabulary
Keywords from Contributors
Repository
Safely convert IRI-like string to IRI.
Basic Info
- Host: GitHub
- Owner: CLARIAH
- License: mit
- Language: Python
- Default Branch: master
- Size: 12.7 KB
Statistics
- Stars: 3
- Watchers: 5
- Forks: 2
- Open Issues: 4
- Releases: 3
Metadata Files
readme.md
IRI Baker
Simple library for baking RFC3987 compliant IRIs from IRI-like strings.
Installation
Simply do pip3 install iribaker
Or, download this package and run python setup.py install
Usage
- Import the package (
import iribaker) - Call
iribaker.to_iri(string)with the string you want to check (utf-8 and unicode supported) - For example:
iri = iribaker.to_iri('http://example.com/€eéf') - The function returns:
- The same (unicode) string, if it is a valid IRI
- A string where each invalid character is replaced with an underscore (
_). This means no roundtripping! - A quoted version of the string (using the standard
urllib.parse.quote)
E.g. in Python Pandas you could create IRI's for a column with places and have schema:name's for them:
g.add((URIRef(iribaker.to_iri('https://example.com/'+str(row['places']))), SDO.name, Literal(str(row['places']), datatype=XSD.string)))
License
This software is made available under the MIT license (see LICENSE for details)
Owner
- Name: CLARIAH
- Login: CLARIAH
- Kind: organization
- Website: http://www.clariah.nl
- Repositories: 65
- Profile: https://github.com/CLARIAH
CLARIAH offers humanities scholars a Common Lab providing access to large collections of digital resources and innovative tools for research
GitHub Events
Total
Last Year
Committers
Last synced: about 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| Rinke Hoekstra | r****a@v****l | 12 |
| Hoekstra, Rinke (ELS-AMS) | r****a@e****m | 5 |
| Melvin Roest | m****t@g****m | 4 |
| Richard Zijdeman | r****n@i****l | 1 |
Committer Domains (Top 20 + Academic)
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 5
- Total pull requests: 1
- Average time to close issues: 4 minutes
- Average time to close pull requests: N/A
- Total issue authors: 4
- Total pull request authors: 1
- Average comments per issue: 0.2
- Average comments per pull request: 0.0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- rlzijdeman (2)
- Sozialarchiv (1)
- RinkeHoekstra (1)
Pull Request Authors
- rlzijdeman (1)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- rfc3987 *